Skip to main content
GET
Get an invoice

Autorizaciones

Authorization
string
header
requerido

Parámetros de ruta

id
string
requerido

Unique identifier for the invoice to retrieve.

Parámetros de consulta

Access token of the fiscal link that holds the invoice, returned when the link is created.

Ejemplo:

"link_6n12zLmai3lLE9Dq_token_gvEJi8FrBge4fb3cz7Wp856W"

Respuesta

The invoice.

id
string
requerido

Unique identifier of the invoice.

Ejemplo:

"inv_9qXbVNDzgrXyq2Oa"

object
any
requerido

Type of the object. Always invoice.

currency
string | null
requerido

Three-letter ISO 4217 currency code of the document amounts, in uppercase. null when the fiscal authority does not report it.

Ejemplo:

"CLP"

date
string<date-time> | null
requerido

ISO 8601 timestamp of the document date. For grouped summary entries, corresponds to the last day of the tax period each entry covers.

Ejemplo:

"2021-05-12T00:00:00.000Z"

institution_id
enum<string>
requerido

Identifier of the fiscal authority that reported the invoice. One of cl_fiscal_sii (Chilean tax authority, SII) or mx_fiscal_sat (Mexican tax authority, SAT).

Opciones disponibles:
cl_fiscal_sii,
mx_fiscal_sat
Ejemplo:

"cl_fiscal_sii"

institution_invoice
object
requerido

Detail specific to the fiscal authority that reported the invoice: a sii_invoice for SII invoices or a sat_invoice for SAT invoices.

issue_type
enum<string>
requerido

Whether the account holder issued or received the document. One of issued (sales documents) or received (purchase documents).

Opciones disponibles:
issued,
received
Ejemplo:

"received"

issuer
object | null
requerido

Party that issued the document. null when the account holder issued the document or when the entry is a grouped summary.

net_amount
integer | null
requerido

Net amount of the document, in the smallest unit of currency (for example, 1000 for $1000 CLP, since CLP has no minor unit, or 1000 for $10.00 MXN).

Ejemplo:

100000

number
string | null
requerido

Number of the document in the fiscal authority's registry, for example the folio of an SII document. null when the registry does not report a number.

Ejemplo:

"2611"

receiver
object | null
requerido

Party that received the document. null when the account holder received the document or when the entry is a grouped summary.

tax_period
string | null
requerido

Tax period the document belongs to, in MM/YYYY format.

Ejemplo:

"05/2021"

total_amount
integer | null
requerido

Total amount of the document, including taxes, in the smallest unit of currency (for example, 1000 for $1000 CLP, since CLP has no minor unit, or 1000 for $10.00 MXN).

Ejemplo:

119000