post
https://api-sandbox.asaas.com/v3/invoices//cancel
Requests the cancellation of a Service Invoice (NFS-e).
Cancellation with the city hall depends on the municipality's rules and the current status of the invoice. Before the operation, check supportsCancellation in List municipal configurations to verify whether the city hall allows automatic cancellation via integration.
When cancelOnlyOnAsaas is sent as true in the request body, the invoice is canceled only in Asaas, without requesting the cancellation from the city hall.
Cancellation processingWhen the cancellation depends on the city hall, the request may remain in processing before being completed or denied.
Track the result through the
INVOICE_PROCESSING_CANCELLATION,INVOICE_CANCELEDandINVOICE_CANCELLATION_DENIEDevents.
Related content
Guides
Webhooks
404Not found
