DC-e
Cancel a DC-e
Cancel an existing DC-e (Declaração de Conteúdo Eletrônica) in the Brazilian fiscal system. The DC-e must have been previously authorized.
When to use: Call this endpoint when you need to cancel a previously issued DC-e — for example, if the shipment was cancelled or the declaration was issued in error.
Prerequisites:
- Valid JWT authentication token (Bearer)
- The 44-digit DC-e access key (dceKey) from the original DC-e authorization
Key behaviors:
- Returns the cancellation status from SEFAZ (Brazilian tax authority)
- The cStat field indicates the result: 135 means cancellation was approved
- Once cancelled, the DC-e cannot be reused
- The nProt field contains the cancellation protocol number for record-keeping
post/dce/cancelar
Request body
Example request
{
"dceKey": "35260440728044000157990010000003741101480600"
}Response
Successful DC-e cancellation
Example response
{
"tpAmb": "2",
"verAplic": "PR-v0.13.0",
"cOrgao": "35",
"cStat": "135",
"xMotivo": "Cancelamento homologado",
"chDCe": "35260440728044000157990010000003741101480600",
"tpEvento": "110111",
"xEvento": "Cancelamento",
"nSeqEvento": "1",
"dhRegEvento": "2026-04-06T20:42:03-03:00",
"nProt": "3352600000044171"
}