Emitir una factura
Inicia el proceso de emisión de una factura electrónica. La emisión es asíncrona: el endpoint retorna 202 Accepted inmediatamente con un tracking_id. El estado final se consulta por polling o webhook.
Cookies
Body
Schema for creating a document (invoice, credit note, etc.).
Types of fiscal documents supported by the SRI.
01, 04, 05, 06, 07 Subtotal before taxes and discounts
x >= 0Total tax amount
x >= 0Total amount (subtotal - discount + tax)
x >= 0Document line items
1Document tax entries
18-digit numeric code for access key generation
8^\d{8}$Total discount amount
x >= 0Buyer identification type (RUC, cedula, passport, etc.)
10Buyer identification number
20Buyer name
300Buyer email address
255Buyer address
500Original document referenced by this document
SRI type code of the modified document
2Formatted document number of the modified document
20Issue date of the modified document
Reason for the document, mainly required for credit notes
500Client-provided idempotency key to prevent duplicate submissions
255SRI payment method entries
Response
Factura aceptada. Emisión en proceso.
- DocumentAcceptedResponse
- DocumentSyncSubmitResponse
Response returned when a document emission is accepted for async processing.
Status values for document lifecycle.
DRAFT, VALIDATED, NUMBER_RESERVED, XML_GENERATED, SIGNED, RECEPTION_PENDING, SUBMITTED_TO_SRI, RECEIVED_BY_SRI, AUTHORIZATION_PENDING, AUTHORIZED, REJECTED, RECEPTION_RETRY_SCHEDULED, AUTHORIZATION_RETRY_SCHEDULED, RECEPTION_UNKNOWN, AUTHORIZATION_UNKNOWN, MANUAL_REVIEW_REQUIRED, FAILED_PERMANENT, CANCELLATION_REQUESTED, CANCELLED, VOIDED_BY_NC