Skip to main content
POST

Overview

Create an invoice (factura) from a receipt image within an organization context. This endpoint allows you to specify which member’s RFC to use for the invoice.
This operation requires 1 credit. Credits are deducted from the organization’s balance.

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: Compra de equipo
string
required
The RFC (Mexican tax ID) of the organization member to generate the invoice for

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
RFC of the member the invoice was generated for
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)