Skip to main content
Mexico example. This walkthrough uses the Mexican CFDI flow. For another issuing country, start with shared fields and country rules.
Case: after issuing the consulting invoice, you grant a MXN 100 discount plus MXN 16 IVA. A credit note records the fiscal adjustment. It does not refund money through a payment processor. Use INVOICE_UUID from the invoice recipe. This example uses a CFDI E related to the original CFDI with relationship 01 (nota de crédito). The exact treatment must match the underlying transaction.
Observed in test mode: HTTP 200, a new UUID, invoice_type: "E", status: "valid", subtotal 100, taxes 16, total 116, and livemode: false. Keep both UUIDs and verify the relationship on the new document. Use the recipient and fiscal values appropriate to the credit note; do not treat these example codes as defaults. See invoice relationships and the full egress contract.

Credit note, refund, or cancellation?

Each operation has its own result and restrictions. Completing one does not establish that the others happened. In particular, requesting CFDI cancellation is not always confirmation that the cancellation is final.