Skip to main content
POST
Upload Invoice

Authentication

This endpoint requires authentication. Include your access token in the Authorization header.

Request Body

This endpoint expects a multipart/form-data request with the following fields:
file
required
XML file containing the CFDI invoice. The file must be a valid Mexican CFDI XML.
string
required
Profile ID to associate the invoice with. The system automatically determines if the invoice is an income (factura) or expense (gasto) based on the RFC in the XML.

Response

string
Success message
Invoice
The created invoice object
object
Validation state of the uploaded invoice
enum
Classification of the invoice: factura (income) or gasto (expense)

Example Request

Example Response

Error Responses