mdfe_uuidpath · stringRequiredPublic MDF-e UUID.
Constraints
{
"type": "string",
"format": "uuid"
}Parameters, data structure and responses from the versioned contract.
/fiscal/mdfe/{mdfe_uuid}Technical descriptions are translated from the versioned contract. Original identifiers and JSON are preserved; data examples are omitted.
Replaces editable draft data. Documents already submitted are immutable.
[
{
"oauth2": []
},
{
"chaveApi": []
}
]mdfe_uuidpath · stringRequiredPublic MDF-e UUID.
{
"type": "string",
"format": "uuid"
}Required
application/jsoncte_uuidsarrayRequiredPublic UUIDs of authorized and available CT-e documents.
minItems1vehicle_idintegerRequiredminimum1trailersarray | nullOptionalmaxItems3driver_user_idinteger | nullOptionalminimum1starts_atstring | null · dateOptionalends_atstring | null · dateOptionalorigin_city_codestring | nullOptionalpattern"^\\d{7}$"origin_citystring | nullOptionalmaxLength80origin_statestringRequiredminLength2maxLength2destination_city_codestring | nullOptionalpattern"^\\d{7}$"destination_citystring | nullOptionalmaxLength80destination_statestringRequiredminLength2maxLength2seguroobjectOptionalsalvar_seguro_padraoboolean | nullOptionalinfo_fiscostring | nullOptionalmaxLength2000observacoesstring | nullOptionalmaxLength5000resp_tecobjectOptionalseriestring | nullOptionalmaxLength3200 HTTP ResponseMDF-e found.
X-Request-IdCall correlation identifier.
401 HTTP ResponseFleetPay API key missing or invalid.
X-Request-IdCall correlation identifier.
403 HTTP ResponseFiscal scope disabled for the key, or no active carrier associated with the key.
X-Request-IdCall correlation identifier.
404 HTTP ResponseResource not found in the authenticated tenant.
X-Request-IdCall correlation identifier.
422 HTTP ResponseInvalid payload, outstanding requirement or business rule.
X-Request-IdCall correlation identifier.
429 HTTP ResponsePer-carrier limit exceeded.
X-Request-IdCall correlation identifier.
Retry-AfterSeconds until another attempt.
500 HTTP ResponseInternal failure without operational integration details.
X-Request-IdCall correlation identifier.
{
"tags": [
"MDF-e"
],
"summary": "Atualizar rascunho de MDF-e",
"description": "Substitui os dados editáveis do rascunho. Documentos já enviados são imutáveis.",
"operationId": "updateMdfe",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MdfeDraftInput"
}
}
}
},
"responses": {
"200": {
"$ref": "#/components/responses/MdfeOk"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"422": {
"$ref": "#/components/responses/ValidationOrBusinessRuleFailed"
},
"429": {
"$ref": "#/components/responses/RateLimited"
},
"500": {
"$ref": "#/components/responses/InternalError"
}
},
"method": "PUT",
"path": "/fiscal/mdfe/{mdfe_uuid}",
"parameters": [
{
"$ref": "#/components/parameters/MdfeUuid"
}
]
}