Skip to main content
POST

Overview

Create an invoice (factura) from a receipt image. The system will process the image, extract the relevant information, and generate a CFDI-compliant invoice.
This operation requires 1 credit. Make sure you have sufficient credits before calling this endpoint.

Request Body

string
required
Imagen del ticket codificada en Base64. Formatos soportados: JPEG, PNG.
string
required
Código de uso CFDI. Valores comunes:
  • G01 - Adquisición de mercancías
  • G02 - Devoluciones, descuentos o bonificaciones
  • G03 - Gastos en general
  • P01 - Por definir
string
Descripción opcional del gasto. Ejemplo: Comida de negocios

Response

string
Unique invoice identifier
string
Invoice status. Values: pending, processing, completed, failed
number
Invoice total amount (extracted from receipt)
string
Currency code (e.g., MXN)
string
Vendor name (extracted from receipt)
string
ISO 8601 timestamp of creation
string
URL to download the invoice PDF (available when status is completed)
string
URL to download the invoice XML/CFDI (available when status is completed)

Processing Status

After creating an invoice, the status will be processing. You can poll the Get Invoice Details endpoint to check when processing is complete.