Mexico example. This walkthrough uses the Mexican CFDI flow. For another
issuing country, start with shared fields and country rules.
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.
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.