correct_invoice
File an electronic correction letter (CC-e) against an NF-e.
NF-e only: there is no correction letter for an NFS-e, where a wrong document is cancelled and issued again.
It corrects wording and non-fiscal fields only. It cannot change values, taxes, the recipient or the products — those still require cancelling and issuing again, and telling the user a CC-e will fix an amount is wrong in a way they only discover at an audit.
Each letter supersedes the previous one and the SEFAZ keeps at most 20 per document. The text reaches the tax authority verbatim.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| access_key | Yes | ||
| correction | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Local id. Use it for reissue and for submissions, and when a document was rejected and has no key. | |
| status | No | issued, rejected or cancelled. | |
| protocol | No | The authorization protocol, when granted. | |
| access_key | No | The authorizer's key. Absent while the document is not authorized. |