Create Document Draft
Create a document in DRAFT state without reserving a sequential.
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
Successful Response
Schema for Document response — current state and authorization info.
Types of fiscal documents supported by the SRI.
01, 04, 05, 06, 07 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 ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$SRI environment types.
TEST, PRODUCTION