idstringRequiredCT-e access key; it is the resource's public identifier.
pattern"^\\d{44}$"Technical descriptions are translated from the versioned contract. Original identifiers and JSON are preserved; data examples are omitted.
idstringRequiredCT-e access key; it is the resource's public identifier.
pattern"^\\d{44}$"access_keystringRequiredpattern"^\\d{44}$"document_idinteger | nullOptionalInternal identifier of the document created in FleetPay.
service_datestring | null · dateOptionalCT-e issue date, read from ide/dhEmi.
service_costnumber | nullOptionalTotal service amount, read from vPrest/vTPrest.
shipperobjectOptionalFreight service payer, resolved using the XML toma code.
carrierobjectOptionalYour carrier — the XML emit element.
nfe_access_keystring | nullOptionalKey of the NF-e covering the cargo, when the CT-e references one.
first_receptionbooleanRequiredtrue for the first delivery of this document (response 201). On subsequent deliveries it is false and nothing is reprocessed.
{
"type": "object",
"required": [
"id",
"access_key",
"first_reception"
],
"properties": {
"id": {
"type": "string",
"pattern": "^\\d{44}$",
"description": "Chave de acesso do CT-e; é o identificador público do recurso."
},
"access_key": {
"type": "string",
"pattern": "^\\d{44}$"
},
"document_id": {
"type": [
"integer",
"null"
],
"description": "Identificador interno do documento criado na FleetPay."
},
"service_date": {
"type": [
"string",
"null"
],
"format": "date",
"description": "Data de emissão do CT-e, lida de `ide/dhEmi`."
},
"service_cost": {
"type": [
"number",
"null"
],
"description": "Valor total da prestação, lido de `vPrest/vTPrest`."
},
"shipper": {
"type": "object",
"description": "O TOMADOR do frete, resolvido pelo código `toma` do XML.",
"properties": {
"document": {
"type": [
"string",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
}
}
},
"carrier": {
"type": "object",
"description": "A sua transportadora — o `emit` do XML.",
"properties": {
"document": {
"type": [
"string",
"null"
]
}
}
},
"nfe_access_key": {
"type": [
"string",
"null"
],
"description": "Chave da NF-e transportada, quando o CT-e referencia uma."
},
"first_reception": {
"type": "boolean",
"description": "`true` quando esta foi a primeira entrega deste documento (resposta `201`). Nos\nreenvios é `false` e nada é reprocessado.\n"
}
}
}