API referenceDocumentsInvoices
Create invoice draft from sales receipts
Creates an unstamped CFDI draft from eligible sales receipts. A receipt line sold before its product had SAT data returns receipt_item_fiscal_identity_required; retry with remediation.receiptItems.
- Endpoint
POST /v1/invoices/from-sales-receipts- Authorization
- Required permissions: `invoices:manage`, `receipts:read`.
- Environments
- Production and sandbox
- Idempotency
- Required for safe retries.
- Common next step
Update invoice draft PUT
Fully replaces a CFDI draft and re-runs the same canonical tax resolution used at creation.
Stamp invoice POST
Stamps a reviewed CFDI draft. Exac refuses to stamp when the provider draft no longer matches its canonical tax snapshot. In the sandbox, these values return the PAC rejection production would, with its SAT code as the issue code, and leave the draft unstamped: issuer legal name RAZON SOCIAL NO REGISTRADA (CFDI40139), receiver postal code 00148 (CFDI40148), and on payroll receipts employee RFC XNOM010101009 (NOM9).