Invoice Object

{
    "id": "inv_nMNejK7BT8oGbvO4",
    "object": "invoice",
    "currency": "CLP",
    "date": "2021-06-25T04:00:00.000Z",
    "institution_id": "cl_fiscal_sii",
    "institution_invoice": {
        "accepted_at": null,
        "common_use_vat": null,
        "confirmation_status": null,
        "construction_company_credit": 0,
        "container_deposit_guarantee": 0,
        "document_type": 34,
        "domestic_ticket_sales": 0,
        "exempt_amount": 0,
        "exempt_commissions": 0,
        "fixed_assets_net_amount": null,
        "fixed_assets_vat_amount": null,
        "free_zone_tax": 0,
        "has_note": false,
        "international_ticket_sales": 0,
        "invoice_status": 'registered',
        "is_services_invoice": false,
        "net_commissions": 0,
        "non_credit_tax_amount": null,
        "non_refundable_vat_amount": null,
        "non_refundable_vat_code": null,
        "non_withheld_vat": 0,
        "other_taxes": {
            "other_taxes_detail": [
                {
                    "tax_amount": 400,
                    "tax_code": 14,
                    "tax_rate": "19"
                }
            ],
            "total_amount": 400
        },
        "out_of_time_vat": 0,
        "own_vat": 0,
        "partial_vat_withheld": 0,
        "received_at": "2021-06-25T19:27:04.000Z",
        "receipt_reference_number": null,
        "reference_number": null,
        "reference_type_code": null,
        "rejected_at": null,
        "services_invoice": null,
        "settlement_issuer_id": null,
        "third_party_vat": 0,
        "tobacco": {
            "cigarettes": 0,
            "cigars": 0,
            "processed_tobacco": 0
        },
        "total_documents": null,
        "total_vat_withheld": 0,
        "transaction_category": "Del Giro",
        "vat_amount": 123,
        "vat_commisions": null
    },
    "issue_type": "received",
    "issuer": {
        "id": "117056856",
        "institution_tax_payer": null,
        "name": "Hooli SpA"
    },
    "net_amount": 12000,
    "number": "135",
    "receiver": null,
    "tax_period": "06/2021",
    "total_amount": 12123
}
AttributeTypeDescription
idstringUnique identifier for the Invoice
objectstringIdentifier for the type of object. Its value for Invoices will always correspond to invoice
currencystringCurrency ISO code
datestringDate of the document, using ISO 8601. For documents with code 39 and 41, corresponds to the last day of the tax period to which they correspond
institution_idstringFiscal authority's id. You can read more about the available institutions here
institution_invoiceobjectInvoiceSII object
issue_typestringIndicates whether the document was issued or received by the account's owner. Its possible values are issued or received
issuerobjectIf the Invoice corresponds to a buy, this field indicates who issued the Invoice. Otherwise, this field is null. See the Taxpayer object to learn more.
For documents that come in summary this field is null (codes 35, 38, 39, 41, 47 and 48)
net_amountintegerNet amount of the document represented as an integer.
numberstringFor cl_fiscal_sii, it corresponds to the invoice folio.
receiverobjectIf the Invoice corresponds to a sell, this field indicates who received the Invoice. Otherwise, this field is null. See the Taxpayer object to learn more.
For documents that come in summary this field is null (codes 35, 38, 39, 41, 47 and 48)
tax_periodstringTax period, with the format mm/yyyy
total_amountintegerTotal amount of the document represented as an integer.

Taxpayer Object

AttributeTypeDescription
idstringThe document issuer/receptor's RUT (for the SII)
institution_tax_payerobjectThe document issuer/receptor's fiscal data. Can be null
namestringThe document issuer/receptor's name

Servicio Impuestos Internos (🇨🇱 Chile)

If the fiscal authority is Servicio de Impuestos Internos (cl_fiscal_sii), theinstitution_invoice fields corresponds to the following objects:

InvoiceSII Object

AttributeTypeDescription
accepted_atstringDocument's acceptance date, using ISO 8601. Can be null if the invoice is not registered.
common_use_vatintegerCommon use VAT
confirmation_statusstringDocument's confirmation status. It's the result of Chile's acceptance/claim process for received documents (SII's "acuse de recibo"). On receiving an electronic invoice, the taxpayer has 8 calendar days to acknowledge or claim it. If they do nothing, it is acknowledged automatically. Possible values:
  • C = Conforme: acknowledged by the recipient within the term
  • A = Automático: acknowledged automatically (term lapsed without a claim)
  • P = Pago al contado: document paid in cash (no acknowledgment needed)
  • G = Guía de despacho: acknowledged via dispatch guides from the previous month
  • R = Reclamado: claimed (rejected) by the recipient
  • null: no event recorded yet, e.g. still within the 8-day term, a document type that doesn't use this flow (receipts, credit/debit notes, or vouchers), or an issued document awaiting the counterparty.
construction_company_creditintegerConstruction company credit
container_deposit_guaranteeintegerContainer deposit guarantee
document_typeintegerCode for the type of document. Its value is null if the document corresponds to a receipt for professional fees. Read the codes for the SII document types in the table below for more information
domestic_ticket_salesintegerDomestic ticket sales
exempt_amountintegerTax exempt amount represented as an integer.
exempt_commissionsintegerValue exempt from commissions
fixed_assets_net_amountintegerFixed assets net amount represented as an integer.
fixed_assets_vat_amountintegerFixed assets VAT-refundable amount represented as an integer.
free_zone_taxintegerFree zone tax (Chilean Law 18211)
has_notebooleanIndicates whether the document has a credit or debit note associated
international_ticket_salesintegerInternational ticket sales
invoice_statusstringIndicates whether the invoice was obtained from the REGISTRO, PENDIENTES, RECLAMADOS or NO INCLUIR tab.
Its values are the following:
  • registered
  • pending
  • cancelled
  • rejected
is_services_invoicebooleanIndicates whether the document corresponds to a receipt for professional fees
net_commissionsintegerNet value for the commissions
non_credit_tax_amountintegerTaxes without right to credit represented as an integer.
non_refundable_vat_amountintegerFixed assets non VAT-refundable amount represented as an integer.
non_refundable_vat_codeintegerNon VAT-refundable code
non_withheld_vatintegerNon withheld VAT
other_taxesobjectOther taxes breakdown. See the Other Taxes table below to learn more
out_of_time_vatintegerOut of time VAT
own_vatintegerOwn VAT
partial_vat_withheldintegerPartial VAT withheld
received_atstringDocument's reception date given by the SII, using ISO 8601.
receipt_reference_numberintegerInternal number: receipt reference number
reference_numberstringFolio number for the reference document
reference_type_codeintegerCode for the type of the reference document
rejected_atstringDocument's rejectance date, using ISO 8601. Can be null if the invoice is not rejected.
services_invoiceobjectContains specific information about the receipts for professional fees. Its value is null when the document doesn't correspond to a receipt for professional fees
settlement_issuer_idstringSettlement issuer RUT
third_party_vatintegerThird party VAT
tobaccoobjectTobacco taxes breakdown. See the Tobacco Taxes table below to learn more
total_documentsintegerNumber of grouped documents. This field is valid for the documents that come in summary (codes 35, 38, 39, 41, 47 and 48). For every other document, corresponds to null
total_vat_withheldintegerTotal VAT withheld
transaction_categorystringIndicates the clasification of the transaction category. Its values are the following:
  • Money order
  • Supermarket
  • Real estate
  • Fixed asset
  • Common use VAT
  • Non-refundable VAT
  • Do not include
vat_amountintegerVAT-refundable amount represented as an integer.
vat_commissionsintegerValue of the VAT for the commissions

OtherTaxes Object

AttributeTypeDescription
other_taxes_detailsarrayArray of objects with tax_amount, tax_code and tax_rate
total_amountintegerTotal amount of other taxes represented as an integer.

TobaccoTaxes Object

AttributeTypeDescription
cigarettesintegerTobacco cigarettes
cigarsintegerPure tobacco cigars
processed_tobaccointegerProcessed tobacco

ServicesInvoice Object

AttributeTypeDescription
is_professional_societybooleanIndicates whether the issuer taxpayer corresponds to a society of professionals or not
is_third_partybooleanIndicates whether the invoice was generated for a third party or not
issued_atdatetimeCorresponds to the date in which the document was issued on the official SII website
issuer_withheld_amountintegerCorresponds to the withheld amount in case the issuer taxpayer handles the provisional payment of the taxes
receiver_withheld_amountintegerCorresponds to the withheld amount in case the recipient taxpayer handles the provisional payment of the taxes
statusstringCorresponds to the invoice. Its possible values are:
  • VIG: Valid
  • ANUL: Annulled
  • ObR: Observed
  • VCA: Valid with annulment request

Codes for SII document types

The document_type attribute corresponds to one of the codes that the SII determines within the guide named "Formato Documentos Tributarios Electrónicos". The most used ones are:

Document TypeDescription
30Invoice
32Sales and services invoice exempt from VAT
33Electronic invoice
34Electronic invoice exempt from VAT
35Ballot
38Exempt ballot
39Electronic ballot
40Invoice settlement
41Electronic exempt ballot
43Electronic invoice settlement
45Purchase invoice
46Electronic purchase invoice
47Total of the month special electronic voucher
48Electronic payment
50Office guide
52Electronic office guide
55Debit note
56Electronic debit note
60Credit note
61Electronic credit note
103Settlement
110Electronic export invoice
111Electronic export debit note
112Electronic export credit note