[EC] Sales Documents: Factura, Ticket, Export

01 · Factura

document_type: "invoice", invoice_type: "debit"

  • invoice_serie is the NNN-NNN pair: establishment and emission point. invoice_number is
    the sequential, zero-padded to 9 by Brinta.
  • The buyer is required: legal name plus one tax registration. RUC gives SRI code 04,
    CEDULA 05, passport 06.
  • discount is optional. Omit it when the line has no discount.
  • The unit of measure is optional and free text, with no catalog. Send it as a unit
    category on the line when you have one; the element is simply omitted when you do not.
{
  "supplier_company_id": "{{company_id}}",
  "invoice_type": "debit",
  "document_type": "invoice",
  "invoice_date": "2026-11-26",
  "invoice_serie": "001-001",
  "invoice_number": "000000123",
  "currency": "USD",
  "e_invoice": true,
  "payment_methods": [ { "type": "bank transfer", "amount": 677.50, "due_date": "2026-12-26" } ],
  "buyer": {
    "company": {
      "legal_name": "COMERCIAL ANDINA S.A.",
      "type": "business",
      "email": "[email protected]",
      "phone": "+593 2 298 7654",
      "address": {
        "address_line_1": "Av. República del Salvador 890",
        "city": "Quito",
        "state": "EC-P",
        "country": "EC"
      },
      "tax_registrations": [
        { "number": "1792000017001", "type": "RUC", "level": "country", "location": "EC" }
      ]
    }
  },
  "items": [
    {
      "item_external_id": "CONS-001",
      "name": "Servicio de consultoría tributaria",
      "description": "Mes de noviembre 2026",
      "quantity": 1,
      "unit_amount": 500,
      "amount": 500,
      "taxes": [
        { "name": "IVA", "type": "VAT", "code": 4, "rate": 0.15, "rate_type": "percentage",
          "amount": 75, "taxable_amount": 500 }
      ]
    },
    {
      "item_external_id": "LIB-014",
      "name": "Libro técnico impreso",
      "quantity": 4,
      "unit_amount": 25,
      "amount": 90,
      "discount": 10,
      "categories": [ { "code": "UNIDAD", "list": "unit" } ],
      "taxes": [
        { "name": "IVA", "type": "VAT", "code": 0, "rate": 0, "rate_type": "percentage",
          "amount": 0, "taxable_amount": 90 }
      ]
    }
  ],
  "purchase_order_number": "OC-2026-0455"
}

Additional information. buyer.company.email, buyer.company.phone, additional_info,
purchase_order_number and invoice_external_id are printed in the infoAdicional block, up
to 15 entries. The SRI expects the buyer's email there: it is how the document reaches them.


02 · Ticket, final consumer

document_type: "ticket", invoice_type: "debit"

  • For a buyer who does not identify itself, omit tax_registrations. Brinta sends SRI code 07
    with the literal identification 9999999999999 and the name CONSUMIDOR FINAL.
  • Allowed only below the legal amount threshold, and the buyer can claim no credit.
{
  "supplier_company_id": "{{company_id}}",
  "invoice_type": "debit",
  "document_type": "ticket",
  "invoice_date": "2026-11-26",
  "invoice_serie": "001-001",
  "invoice_number": "000000124",
  "currency": "USD",
  "e_invoice": true,
  "payment_methods": [ { "type": "cash" } ],
  "buyer": {
    "company": {
      "legal_name": "CONSUMIDOR FINAL",
      "type": "person",
      "address": { "country": "EC" }
    }
  },
  "items": [
    {
      "name": "Café en grano 500g",
      "quantity": 2,
      "unit_amount": 7.50,
      "amount": 15,
      "taxes": [
        { "name": "IVA", "type": "VAT", "code": 4, "rate": 0.15, "rate_type": "percentage",
          "amount": 2.25, "taxable_amount": 15 }
      ]
    }
  ]
}

A buyer with a CEDULA registration is also valid on a ticket and gives SRI code 05.


03 · Export

document_type: "export", invoice_type: "debit"

  • export_reason marks the document as an export.
  • The incoterm is a document-level incoterm category.
  • Ports of shipment and destination come from senders[] and beneficiaries[], through
    transportation_data.station_name.
  • International freight, insurance and customs charges ride on amounts[], each with its own
    type. They are added to the document total.
{
  "supplier_company_id": "{{company_id}}",
  "invoice_type": "debit",
  "document_type": "export",
  "export_reason": "01",
  "invoice_date": "2026-11-26",
  "invoice_serie": "001-001",
  "invoice_number": "000000125",
  "currency": "USD",
  "e_invoice": true,
  "payment_methods": [ { "type": "bank transfer" } ],
  "categories": [ { "code": "CIF", "list": "incoterm" } ],
  "buyer": {
    "company": {
      "legal_name": "Global Fruit Imports LLC",
      "type": "business",
      "address": {
        "address_line_1": "1200 Brickell Ave, Suite 500",
        "city": "Miami",
        "state": "FL",
        "country": "US"
      },
      "tax_registrations": [
        { "number": "98-7654321", "type": "tax_id", "level": "country", "location": "US" }
      ]
    }
  },
  "senders": [
    { "company": {
        "legal_name": "BRINTA ECUADOR S.A.",
        "type": "business",
        "address": { "address_line_1": "Av. Amazonas N37-29", "city": "Quito", "country": "EC" },
        "transportation_data": { "station_name": "GUAYAQUIL" }
    } }
  ],
  "beneficiaries": [
    { "company": {
        "legal_name": "Global Fruit Imports LLC",
        "type": "business",
        "address": { "address_line_1": "Port of Miami", "city": "Miami", "country": "US" },
        "transportation_data": { "station_name": "MIAMI" }
    } }
  ],
  "amounts": [
    { "name": "Flete internacional", "type": "freight amount", "amount": 150 },
    { "name": "Seguro internacional", "type": "insurance amount", "amount": 45 },
    { "name": "Gastos aduaneros", "type": "customs amount", "amount": 80 }
  ],
  "items": [
    {
      "item_external_id": "CACAO-01",
      "name": "Cacao fino de aroma, grano seco",
      "quantity": 1000,
      "unit_amount": 4.20,
      "amount": 4200,
      "categories": [ { "code": "KG", "list": "unit" } ],
      "taxes": [
        { "name": "IVA", "type": "VAT", "code": 0, "rate": 0, "rate_type": "percentage",
          "amount": 0, "taxable_amount": 4200 }
      ]
    }
  ]
}

A buyer outside Ecuador is reported with SRI identification type 08, which is why the field
accepts up to 20 characters rather than a 13-digit RUC.



Did this page help you?