Skip to main content
Version: Next

View invoice as a PDF file

GET /<provider>/view-print-invoice

API used to view an issued invoice as a PDF file.

Headers

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

Query Parameters

NameData typeDescription
idstringThe vpid or sid field, vpid takes priority if available (returned in each element of the invoice list). For Misa, use the search_code field (lookup code).
staxstringSeller's tax code (store, etc.).
template_codestringInvoice template code (obtained from the invoice serial list at the Viettel provider).
from_posbooleanWhether this is an invoice issued from a cash register (Misa).
curl --location 'https://stag-invoice-hub.1invoice.vn/1Invoice/view-print-invoice?id=3a1bafb9-4889-9c3c-802b-d3af714d2dc6' \
--header 'authorization: Bearer O87316arj5+Od3Fqyy5hzdBfIuPk73eKqpAzBSvv8sY=' \
--header 'x-tax-code: 0106026495-998'