Get invoice details
GET /<provider>/get-invoice
API used to get the details of a single invoice.
Headers
| Name | Required | Description |
|---|---|---|
Authorization | ✅ | Bearer access_token |
Content-Type | ✅ | application/json |
X-Tax-Code | ✅ | Seller's tax code. |
Query Parameters
| Name | Data type | Description |
|---|---|---|
id | string | sid provided when the invoice was created. |
Response
| Name | Data type | Description |
|---|---|---|
data.search_code | string | Code for users to look up the invoice |
data.invoice_date | Datetime | Invoice issue date |
data.seq | number | Invoice number |
data.tax_authority_code | string | Tax authority code |
data.buyer | string | Company name |
data.bname | string | Buyer name |
data.total_v | number | Total amount including tax |
data.vat_v | number | Tax amount |
data.serial | string | Invoice serial |
data.sid | string | Invoice id |
data.vpid | string | Id used to view the invoice (PDF) |
data.status | number | string | Invoice status |
data.status_received | number | string | Tax authority response status |
success | boolean | API status |
- 1Invoice
- fpt
- viettel
- Response
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'
curl --location 'https://stag-invoice-hub.1invoice.vn/fpt/get-invoices?stax=0104128565-999&sid=8296-SO000227' \
--header 'authorization: Bearer <token>'
curl --location 'https://stag-invoice-hub.1invoice.vn/viettel/get-invoice?stax=0100109106-509&id=8238-SO000185' \
--header 'authorization: Bearer <token>' \
--header 'x-tax-code: 0100109106-509' \
--header 'Cookie: d4150655895b8526de84b2ab49c2b9e4=25b23b9c55e22b9e0de3559674a733dd'
{
"data": {
"seq": 553,
"invoice_date": "2025-08-12T00:00:00",
"sid": "3a1bafb9-4889-9c3c-802b-d3af714d2dc6",
"bname": "1Invoice - Kiểm thử HĐĐT không mã",
"total_v": 89650,
"vat_v": 8150,
"status_received": 1,
"serial": "1C25MTS",
"search_code": "D6FBB673",
"status": 0,
"tax_authority_code": "M1-25-RV1DV-00000009378",
"buyer": "Lê Thanh Dũng"
},
"success": true
}