Chuyển tới nội dung chính
Phiên bản: 1.7.0

Lấy thông tin chi tiết hóa đơn

GET /<provider>/get-invoice

API dùng để lấy thông tin chi tiết 1 hóa đơn.

Headers

NameRequiredDescription
AuthorizationBearer token_truy_cap
Content-Typeapplication/json
X-Tax-CodeMã số thuế người bán.

Query Parameters

NameKiểu dữ liệuDescription
idstringsid lúc tạo hóa đơn.

Response

NameKiểu dữ liệuDescription
data.search_codestringMã để người dùng tra cứu hóa đơn
data.invoice_dateDatetimeNgày phát hành hóa đơn
data.seqnumberSố hóa đơn
data.tax_authority_codestringMã cơ quan thuế
data.buyerstringTên đơn vị
data.bnamestringTên người mua
data.total_vnumberTổng tiền bao gồm thuế
data.vat_vnumberTiền thuế
data.serialstringKý hiệu hóa đơn
data.sidstringId hóa đơn
data.vpidstringId dùng để xem hóa đơn (PDF)
data.statusnumber | stringTrạng thái hóa đơn
data.status_receivednumber | stringTrạng thái phản hồi CQT
successbooleanTrạng thái api
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'