POST IssueDocument?id={id}&reason={reason}

Enviar Documento al SRI (Emision de Documentos)

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

reason

string

Required

Body Parameters

None.

Response Information

Resource Description

Document
NameDescriptionTypeAdditional information
Id

integer

Required

RUC

string

Required

Max length: 13

DocumentTypeCode

string

String length: inclusive between 0 and 2

EstablishmentCode

string

String length: inclusive between 0 and 5

IssuePointCode

string

String length: inclusive between 0 and 5

Sequential

string

String length: inclusive between 0 and 9

Emails

string

String length: inclusive between 0 and 500

CreatedOn

date

None.

BussinesName

string

Required

Max length: 300

TradeName

string

Max length: 300

MainAddress

string

Max length: 300

EstablishmentAddress

string

Max length: 300

IssuedOn

date

None.

ContributorId

integer

None.

ContributorIdentificationType

string

None.

ContributorName

string

Max length: 300

ContributorIdentification

string

Max length: 15

ContributorAddress

string

Max length: 300

Currency

string

Max length: 50

Reason

string

Max length: 300

Total

decimal number

None.

IsEnabled

boolean

None.

InvoiceInfo

InvoiceInfo

None.

RetentionInfo

RetentionInfo

None.

CreditNoteInfo

CreditNoteInfo

None.

ReferralGuideInfo

ReferralGuideInfo

None.

AdditionalFields

Collection of AdditionalField

None.

IssuerId

integer

Required

AccessKey

string

None.

AuthorizationDate

string

None.

AuthorizationNumber

string

None.

PDF

string

None.

XML

string

None.

Status

DocumentStatusEnum

None.

StatusMsg

string

None.

LastModifiedOn

date

None.

DocumentNumber

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "RUC": "sample string 2",
  "DocumentTypeCode": "sample string 3",
  "EstablishmentCode": "sample string 4",
  "IssuePointCode": "sample string 5",
  "Sequential": "sample string 6",
  "Emails": "sample string 7",
  "CreatedOn": "2025-06-14T11:18:03.9649595-05:00",
  "BussinesName": "sample string 9",
  "TradeName": "sample string 10",
  "MainAddress": "sample string 11",
  "EstablishmentAddress": "sample string 12",
  "IssuedOn": "2025-06-14T11:18:03.9649595-05:00",
  "ContributorId": 1,
  "ContributorIdentificationType": "sample string 14",
  "ContributorName": "sample string 15",
  "ContributorIdentification": "sample string 16",
  "ContributorAddress": "sample string 17",
  "Currency": "sample string 18",
  "Reason": "sample string 19",
  "Total": 20.0,
  "IsEnabled": true,
  "InvoiceInfo": {
    "InvoiceInfoId": 1,
    "IssuedOn": "sample string 2",
    "EstablishmentAddress": "sample string 3",
    "IdentificationType": "sample string 4",
    "Identification": "sample string 5",
    "BussinesName": "sample string 6",
    "Currency": "sample string 7",
    "SubtotalVat": 8.0,
    "SubtotalVatZero": 9.0,
    "SubtotalNotSubject": 10.0,
    "SubtotalExempt": 11.0,
    "Subtotal": 12.0,
    "TotalDiscount": 13.0,
    "SpecialConsumTax": 14.0,
    "ValueAddedTax": 15.0,
    "Tip": 16.0,
    "Total": 17.0,
    "ReferralGuide": "sample string 18",
    "Address": "sample string 19",
    "InvoiceIncoTerm": "sample string 20",
    "PlaceIncoTerm": "sample string 21",
    "OriginCountry": "sample string 22",
    "PortBoarding": "sample string 23",
    "DestinationPort": "sample string 24",
    "DestinationCountry": "sample string 25",
    "CountryAcquisition": "sample string 26",
    "TotalWithoutTaxesIncoTerm": "sample string 27",
    "Details": [
      {
        "Id": 1,
        "ProductId": 1,
        "MainCode": "sample string 2",
        "AuxCode": "sample string 3",
        "Description": "sample string 4",
        "Amount": 5.0,
        "UnitPrice": 6.0,
        "Discount": 7.0,
        "SubTotal": 8.0,
        "Taxes": [
          {
            "Id": 1,
            "Code": "sample string 2",
            "PercentageCode": "sample string 3",
            "Rate": 4.0,
            "TaxableBase": 5.0,
            "TaxValue": 6.0,
            "DocumentDetailId": 7
          },
          {
            "Id": 1,
            "Code": "sample string 2",
            "PercentageCode": "sample string 3",
            "Rate": 4.0,
            "TaxableBase": 5.0,
            "TaxValue": 6.0,
            "DocumentDetailId": 7
          }
        ],
        "Name1": "sample string 9",
        "Value1": "sample string 10",
        "Name2": "sample string 11",
        "Value2": "sample string 12",
        "Name3": "sample string 13",
        "Value3": "sample string 14",
        "DocumentId": 15,
        "InvoiceInfoId": 1,
        "CreditNoteInfoId": 1
      },
      {
        "Id": 1,
        "ProductId": 1,
        "MainCode": "sample string 2",
        "AuxCode": "sample string 3",
        "Description": "sample string 4",
        "Amount": 5.0,
        "UnitPrice": 6.0,
        "Discount": 7.0,
        "SubTotal": 8.0,
        "Taxes": [
          {
            "Id": 1,
            "Code": "sample string 2",
            "PercentageCode": "sample string 3",
            "Rate": 4.0,
            "TaxableBase": 5.0,
            "TaxValue": 6.0,
            "DocumentDetailId": 7
          },
          {
            "Id": 1,
            "Code": "sample string 2",
            "PercentageCode": "sample string 3",
            "Rate": 4.0,
            "TaxableBase": 5.0,
            "TaxValue": 6.0,
            "DocumentDetailId": 7
          }
        ],
        "Name1": "sample string 9",
        "Value1": "sample string 10",
        "Name2": "sample string 11",
        "Value2": "sample string 12",
        "Name3": "sample string 13",
        "Value3": "sample string 14",
        "DocumentId": 15,
        "InvoiceInfoId": 1,
        "CreditNoteInfoId": 1
      }
    ],
    "Payments": [
      {
        "Id": 1,
        "PaymentMethodCode": "sample string 2",
        "Name": "sample string 3",
        "Total": 1.0,
        "Term": 1,
        "TimeUnit": "sample string 4",
        "DocumentId": 5,
        "InvoiceInfoId": 1,
        "CreditNoteInfoId": 1
      },
      {
        "Id": 1,
        "PaymentMethodCode": "sample string 2",
        "Name": "sample string 3",
        "Total": 1.0,
        "Term": 1,
        "TimeUnit": "sample string 4",
        "DocumentId": 5,
        "InvoiceInfoId": 1,
        "CreditNoteInfoId": 1
      }
    ],
    "TotalTaxes": [
      {
        "Id": 1,
        "TaxCode": "sample string 2",
        "PercentageTaxCode": "sample string 3",
        "TaxableBase": 4.0,
        "TaxValue": 5.0,
        "TaxRate": 6.0,
        "AditionalDiscount": 7.0,
        "DocumentId": 8,
        "InvoiceInfoId": 1,
        "CreditNoteInfoId": 1
      },
      {
        "Id": 1,
        "TaxCode": "sample string 2",
        "PercentageTaxCode": "sample string 3",
        "TaxableBase": 4.0,
        "TaxValue": 5.0,
        "TaxRate": 6.0,
        "AditionalDiscount": 7.0,
        "DocumentId": 8,
        "InvoiceInfoId": 1,
        "CreditNoteInfoId": 1
      }
    ]
  },
  "RetentionInfo": {
    "RetentionInfoId": 1,
    "IssuedOn": "sample string 2",
    "ContributorId": 1,
    "IdentificationType": "sample string 3",
    "Identification": "sample string 4",
    "BusinessName": "sample string 5",
    "Currency": "sample string 6",
    "Reason": "sample string 7",
    "FiscalPeriod": "sample string 8",
    "FiscalAmount": 9.0,
    "Details": [
      {
        "RetentionTaxId": 2,
        "TaxTypeCode": "sample string 3",
        "RetentionTaxCode": "sample string 4",
        "TaxBase": 5.0,
        "TaxRate": 6.0,
        "TaxValue": 7.0,
        "ReferenceDocumentCode": "sample string 8",
        "ReferenceDocumentNumber": "sample string 9",
        "ReferenceDocumentDate": "sample string 10",
        "RetentionInfoId": 11
      },
      {
        "RetentionTaxId": 2,
        "TaxTypeCode": "sample string 3",
        "RetentionTaxCode": "sample string 4",
        "TaxBase": 5.0,
        "TaxRate": 6.0,
        "TaxValue": 7.0,
        "ReferenceDocumentCode": "sample string 8",
        "ReferenceDocumentNumber": "sample string 9",
        "ReferenceDocumentDate": "sample string 10",
        "RetentionInfoId": 11
      }
    ],
    "ReferenceDocumentCode": "sample string 10",
    "ReferenceDocumentNumber": "sample string 11",
    "ReferenceDocumentDate": "sample string 12",
    "ReferenceDocumentAuth": "sample string 13",
    "ReferenceDocumentAmount": 14.0,
    "ReferenceDocumentVat": 15.0
  },
  "CreditNoteInfo": {
    "CreditNoteInfoId": 1,
    "IssuedOn": "sample string 2",
    "IdentificationType": "sample string 3",
    "Identification": "sample string 4",
    "BussinesName": "sample string 5",
    "Address": "sample string 6",
    "Currency": "sample string 7",
    "SubtotalVat": 8.0,
    "SubtotalVatZero": 9.0,
    "SubtotalNotSubject": 10.0,
    "SubtotalExempt": 11.0,
    "Subtotal": 12.0,
    "TotalDiscount": 13.0,
    "SpecialConsumTax": 14.0,
    "ValueAddedTax": 15.0,
    "Tip": 16.0,
    "Total": 17.0,
    "ReferenceDocumentId": 1,
    "ReferenceDocumentCode": "sample string 18",
    "ReferenceDocumentNumber": "sample string 19",
    "ReferenceDocumentDate": "sample string 20",
    "ReferenceDocumentAuth": "sample string 21",
    "ModifiedValue": 22.0,
    "Reason": "sample string 23",
    "Details": [
      {
        "Id": 1,
        "ProductId": 1,
        "MainCode": "sample string 2",
        "AuxCode": "sample string 3",
        "Description": "sample string 4",
        "Amount": 5.0,
        "UnitPrice": 6.0,
        "Discount": 7.0,
        "SubTotal": 8.0,
        "Taxes": [
          {
            "Id": 1,
            "Code": "sample string 2",
            "PercentageCode": "sample string 3",
            "Rate": 4.0,
            "TaxableBase": 5.0,
            "TaxValue": 6.0,
            "DocumentDetailId": 7
          },
          {
            "Id": 1,
            "Code": "sample string 2",
            "PercentageCode": "sample string 3",
            "Rate": 4.0,
            "TaxableBase": 5.0,
            "TaxValue": 6.0,
            "DocumentDetailId": 7
          }
        ],
        "Name1": "sample string 9",
        "Value1": "sample string 10",
        "Name2": "sample string 11",
        "Value2": "sample string 12",
        "Name3": "sample string 13",
        "Value3": "sample string 14",
        "DocumentId": 15,
        "InvoiceInfoId": 1,
        "CreditNoteInfoId": 1
      },
      {
        "Id": 1,
        "ProductId": 1,
        "MainCode": "sample string 2",
        "AuxCode": "sample string 3",
        "Description": "sample string 4",
        "Amount": 5.0,
        "UnitPrice": 6.0,
        "Discount": 7.0,
        "SubTotal": 8.0,
        "Taxes": [
          {
            "Id": 1,
            "Code": "sample string 2",
            "PercentageCode": "sample string 3",
            "Rate": 4.0,
            "TaxableBase": 5.0,
            "TaxValue": 6.0,
            "DocumentDetailId": 7
          },
          {
            "Id": 1,
            "Code": "sample string 2",
            "PercentageCode": "sample string 3",
            "Rate": 4.0,
            "TaxableBase": 5.0,
            "TaxValue": 6.0,
            "DocumentDetailId": 7
          }
        ],
        "Name1": "sample string 9",
        "Value1": "sample string 10",
        "Name2": "sample string 11",
        "Value2": "sample string 12",
        "Name3": "sample string 13",
        "Value3": "sample string 14",
        "DocumentId": 15,
        "InvoiceInfoId": 1,
        "CreditNoteInfoId": 1
      }
    ],
    "TotalTaxes": [
      {
        "Id": 1,
        "TaxCode": "sample string 2",
        "PercentageTaxCode": "sample string 3",
        "TaxableBase": 4.0,
        "TaxValue": 5.0,
        "TaxRate": 6.0,
        "AditionalDiscount": 7.0,
        "DocumentId": 8,
        "InvoiceInfoId": 1,
        "CreditNoteInfoId": 1
      },
      {
        "Id": 1,
        "TaxCode": "sample string 2",
        "PercentageTaxCode": "sample string 3",
        "TaxableBase": 4.0,
        "TaxValue": 5.0,
        "TaxRate": 6.0,
        "AditionalDiscount": 7.0,
        "DocumentId": 8,
        "InvoiceInfoId": 1,
        "CreditNoteInfoId": 1
      }
    ],
    "Payments": [
      {
        "Id": 1,
        "PaymentMethodCode": "sample string 2",
        "Name": "sample string 3",
        "Total": 1.0,
        "Term": 1,
        "TimeUnit": "sample string 4",
        "DocumentId": 5,
        "InvoiceInfoId": 1,
        "CreditNoteInfoId": 1
      },
      {
        "Id": 1,
        "PaymentMethodCode": "sample string 2",
        "Name": "sample string 3",
        "Total": 1.0,
        "Term": 1,
        "TimeUnit": "sample string 4",
        "DocumentId": 5,
        "InvoiceInfoId": 1,
        "CreditNoteInfoId": 1
      }
    ]
  },
  "ReferralGuideInfo": {
    "ReferralGuideInfoId": 1,
    "IssuedOn": "sample string 2",
    "ContributorId": 1,
    "IdentificationType": "sample string 3",
    "Identification": "sample string 4",
    "BusinessName": "sample string 5",
    "SenderAddress": "sample string 6",
    "OriginAddress": "sample string 7",
    "DestinationAddress": "sample string 8",
    "DriverId": 9,
    "DriverIdentificationType": "sample string 10",
    "DriverIdentification": "sample string 11",
    "DriverName": "sample string 12",
    "CarPlate": "sample string 13",
    "ShippingStartDate": "sample string 14",
    "ShippingEndDate": "sample string 15",
    "RecipientId": 16,
    "RecipientIdentificationType": "sample string 17",
    "RecipientIdentification": "sample string 18",
    "RecipientName": "sample string 19",
    "RecipientAddress": "sample string 20",
    "Reason": "sample string 21",
    "DAU": "sample string 22",
    "RecipientEstablishment": "sample string 23",
    "ShipmentRoute": "sample string 24",
    "ReferenceDocumentId": 1,
    "ReferenceDocumentCode": "sample string 25",
    "ReferenceDocumentNumber": "sample string 26",
    "ReferenceDocumentDate": "sample string 27",
    "ReferenceDocumentAuth": "sample string 28",
    "Details": [
      {
        "Id": 1,
        "ReferralGuideInfoId": 2,
        "ProductId": 3,
        "MainCode": "sample string 4",
        "AuxCode": "sample string 5",
        "Description": "sample string 6",
        "Quantity": 7
      },
      {
        "Id": 1,
        "ReferralGuideInfoId": 2,
        "ProductId": 3,
        "MainCode": "sample string 4",
        "AuxCode": "sample string 5",
        "Description": "sample string 6",
        "Quantity": 7
      }
    ]
  },
  "AdditionalFields": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Value": "sample string 3",
      "LineNumber": 4,
      "DocumentId": 5
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Value": "sample string 3",
      "LineNumber": 4,
      "DocumentId": 5
    }
  ],
  "IssuerId": 22,
  "AccessKey": "sample string 23",
  "AuthorizationDate": "sample string 24",
  "AuthorizationNumber": "sample string 25",
  "PDF": "sample string 26",
  "XML": "sample string 27",
  "Status": 0,
  "StatusMsg": "sample string 28",
  "LastModifiedOn": "2025-06-14T11:18:03.9659586-05:00",
  "DocumentNumber": "sample string 4-sample string 5-sample string 6"
}