mdfestringRequiredMDF-e UUID, access key (44) or number.
maxLength64Parameters, data structure and responses from the versioned contract.
/carriers/parcelas-repasse/liberar-por-mdfeTechnical descriptions are translated from the versioned contract. Original identifiers and JSON are preserved; data examples are omitted.
Batch release by manifest: provide the MDF-e (UUID, access key, or number) and the installment position, and FleetPay applies liberar to each CT-e linked to the trip — including counter-CT-e documents from a subcontracting batch — returning one result per CT-e. A rejection in one row does not prevent the others from being processed.
Three rules to know before making the request:
recusada / parcela_inexistente in its row.ignorado / motorista_divergente.evento_fora_de_ordem, parcela_cancelada...), with the same idempotency: an already released installment returns ja_liberada, not an error.The MDF-e may be a draft — it only selects the CT-e documents. A manifest that belongs to another carrier or does not exist returns 404; a manifest without CT-e documents returns 422.
[
{
"oauth2": []
},
{
"chaveApi": []
}
]No parameters declared for this operation.
Required
application/jsonmdfestringRequiredMDF-e UUID, access key (44) or number.
maxLength64posicaointegerRequiredminimum1maximum3ocorrido_emstring · dateRequiredEvent date; today or in the past.
200 HTTP ResponseMDF-e processed; read resumo and documentos[].resultado.
401 HTTP ResponseUnauthenticated (autenticacao): missing, invalid or expired credentials, including an API key used in the wrong environment. A sandbox key is not valid in production, nor a production key in the sandbox; the error message indicates the expected environment.
403 HTTP ResponseCredential does not have the operacao scope enabled.
404 HTTP ResponseMDF-e not found or belongs to another carrier (mdfe_nao_encontrado).
422 HTTP ResponseMDF-e has no linked CT-e (mdfe_sem_documentos), or the payload is invalid.
{
"tags": [
"Parcelas"
],
"summary": "Liberar a parcela N de todos os CT-e de um MDF-e",
"operationId": "liberarParcelasPorMdfe",
"description": "A liberação em **lote pelo manifesto**: informe o MDF-e (uuid, chave de acesso ou número)\ne a posição, e a FleetPay aplica `liberar` a cada CT-e vinculado à viagem — inclusive os\ncontra-CT-e de um lote de subcontratação — devolvendo **um resultado por CT-e**. Uma recusa\nnuma linha não impede as outras.\n\nTrês regras que valem a pena saber antes de chamar:\n\n- **Só parcelas que já existem.** A parcela nasce na bipagem; o MDF-e não é tratado como\n evento de coleta. CT-e do manifesto ainda sem parcela na posição responde\n `recusada / parcela_inexistente` na linha dele.\n- **Só o condutor do MDF-e.** Parcela de outro motorista é `ignorado / motorista_divergente`.\n- **Mesmas regras da liberação unitária** (`evento_fora_de_ordem`, `parcela_cancelada`...),\n e a mesma idempotência: parcela já liberada é `ja_liberada`, não erro.\n\nO MDF-e pode estar em rascunho — ele é só o seletor dos CT-e. Manifesto de outra\ntransportadora ou inexistente responde `404`; manifesto sem CT-e, `422`.\n",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LiberarParcelasPorMdfe"
}
}
}
},
"responses": {
"200": {
"description": "O MDF-e foi processado; leia `resumo` e `documentos[].resultado`.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RespostaParcelasPorMdfe"
}
}
}
},
"401": {
"$ref": "#/components/responses/Erro401"
},
"403": {
"description": "Credencial sem o escopo `operacao` habilitado.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Erro"
}
}
}
},
"404": {
"description": "MDF-e não encontrado, ou de outra transportadora (`mdfe_nao_encontrado`).",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Erro"
}
}
}
},
"422": {
"description": "MDF-e sem CT-e vinculado (`mdfe_sem_documentos`), ou payload inválido.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Erro"
}
}
}
}
},
"method": "POST",
"path": "/carriers/parcelas-repasse/liberar-por-mdfe",
"parameters": []
}