Create an invoice from a receipt image in a single call, with automatic member creation
multipart/form-data (with file upload).
api_keys_enabled feature flag enabled for the organizationdata:image/jpeg;base64,/9j/4AAQ...). When using multipart/form-data, send as a file upload instead.+525512345678, 4431041040)fiscal_regimen is in the request, uses it (validated against member’s regimes)400| Status | Code | Description |
|---|---|---|
| 400 | MISSING_REQUIRED_FIELDS | Missing tax_id, cfdi_use, fiscal_regimen, taxpayer, postal_code, or receipt_image |
| 400 | INVALID_RFC_FORMAT | RFC doesn’t match Mexican format (12-13 chars) |
| 400 | INVALID_TAX_REGIME | Invalid fiscal regime code |
| 400 | INVALID_CFDI_FOR_REGIME | CFDI usage code not valid for the resolved regime |
| 400 | INVALID_REGIME | Specified regime not in the member’s registered regimes |
| 400 | INVALID_EMAIL | Email format is invalid |
| 400 | INVALID_PHONE_NUMBER | Phone number format is invalid |
| 401 | — | Missing API key |
| 401 | INVALID_API_KEY | API key not found |
| 403 | NO_ORGANIZATION | API key owner has no organization |
| 403 | FEATURE_DISABLED | api_keys_enabled not active for the organization |
| 403 | INSUFFICIENT_CREDITS | No credits remaining |
| 404 | RFC_NOT_FOUND | RFC not found in organization |
| 500 | LOOKUP_ERROR | Error looking up RFC |
| 500 | AUTH_USER_CREATION_FAILED | Failed to create auth user for new profile |
| 500 | PROFILE_CREATION_FAILED | Failed to create profile record |
| 500 | TAX_INFO_CREATION_FAILED | Failed to create tax info record |
| 500 | INTERNAL_ERROR | Unexpected server error |
| 503 | SERVICE_UNAVAILABLE | Invoicing provider is temporarily unavailable |