API Timbre (Facturas)
Create Invoice for Organization
Create invoice with organization context
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
Imagen del ticket codificada en Base64. Formatos soportados: JPEG, PNG.
Código de uso CFDI. Valores comunes:
G01- Adquisición de mercancíasG02- Devoluciones, descuentos o bonificacionesG03- Gastos en generalP01- Por definir
Descripción opcional del gasto. Ejemplo:
Compra de equipoThe RFC (Mexican tax ID) of the organization member to generate the invoice for
Response
Unique invoice identifier
Invoice status. Values:
pending, processing, completed, failedInvoice total amount (extracted from receipt)
Currency code (e.g.,
MXN)Vendor name (extracted from receipt)
RFC of the member the invoice was generated for
ISO 8601 timestamp of creation
URL to download the invoice PDF (available when status is
completed)URL to download the invoice XML/CFDI (available when status is
completed)