Skip to main content
Version: Next

Get invoice details

GET /<provider>/get-invoice

API used to get the details of a single invoice.

Headers

NameRequiredDescription
AuthorizationBearer access_token
Content-Typeapplication/json
X-Tax-CodeSeller's tax code.

Query Parameters

NameData typeDescription
idstringsid provided when the invoice was created.

Response

NameData typeDescription
data.search_codestringCode for users to look up the invoice
data.invoice_dateDatetimeInvoice issue date
data.seqnumberInvoice number
data.tax_authority_codestringTax authority code
data.buyerstringCompany name
data.bnamestringBuyer name
data.total_vnumberTotal amount including tax
data.vat_vnumberTax amount
data.serialstringInvoice serial
data.sidstringInvoice id
data.vpidstringId used to view the invoice (PDF)
data.statusnumber | stringInvoice status
data.status_receivednumber | stringTax authority response status
successbooleanAPI status
curl --location 'https://stag-invoice-hub.1invoice.vn/1Invoice/get-invoice?id=160725-8238-JFSFA1213' \
--header 'authorization: Bearer O87316arj5+Od3Fqyy5hzdBfIuPk73eKqpAzBSvv8sY=' \
--header 'origin: http://localhost:3000' \
--header 'x-tax-code: 0106026495-998'