FacturamaCancelar
Description
Section titled “Description”Cancels a CFDI issued in Facturama with Mexico’s SAT. Supports the four cancellation motives defined by the SAT, including the ability to link the cancellation to a replacement CFDI (motive 01).
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
| credentials_id | credentials | Yes | Facturama account credentials |
| cfdi_id | text | Yes | Facturama internal CFDI ID |
| motive | select | No | SAT motive (default: 02=Without relation) |
| uuid_relation | text | Conditional | UUID of the replacement CFDI (only motive 01) |
| cfdi_type | select | No | Type: ‘issued’ (default) |
SAT cancellation motives
Section titled “SAT cancellation motives”| Code | Description |
|---|---|
| 01 | Issued with errors with relation (requires uuid_relation) |
| 02 | Issued with errors without relation (default) |
| 03 | Operation not carried out |
| 04 | Nominative operation related to global invoice |
Output
Section titled “Output”{ "success": true, "cfdi_id": "abc123def456", "cfdi_type": "issued", "motive": "02", "raw": { ... }}Usage Example
Section titled “Usage Example”Cancel with errors, no replacement (motive 02)
Section titled “Cancel with errors, no replacement (motive 02)”{ "credentials_id": "cred-facturama-prod", "cfdi_id": "abc123def456", "motive": "02"}Cancel with replacement CFDI (motive 01)
Section titled “Cancel with replacement CFDI (motive 01)”{ "credentials_id": "cred-facturama-prod", "cfdi_id": "abc123def456", "motive": "01", "uuid_relation": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"}cfdi_idis the Facturama internal ID, not the SAT UUID- For motive 01,
uuid_relationmust be the UUID of the CFDI replacing the cancelled one - Cancellations above certain amounts may require the receiver’s acceptance
Related Nodes
Section titled “Related Nodes”- FacturamaCFDI - Issue a CFDI
- FacturamaDescargar - Download XML or PDF