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

Lấy danh sách hóa đơn

GET /<provider>/get-invoices

API dùng để lấy danh sách hóa đơn điện tử.

Headers

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

Query Parameters

NameRequiredDescription
startVị trí bắt đầu. (FPT, M-invoice, 1Invoice bắt đầu từ 0; Viettel bắt đầu từ 1).
countSố lượng phần tử cần lấy.
serialKý hiệu hóa đơn. (Bắt buộc với M-invoice, 1Invoice, Viettel).
from_dateTừ ngày.
to_dateĐến ngày.
staxMã số thuế người bán.

Response

NameDescription
data[].search_codeMã để người dùng tra cứu hóa đơn
data[].invoice_dateNgày phát hành hóa đơn
data[].seqSố hóa đơn
data[].tax_authority_codeMã cơ quan thuế
data[].buyerTên đơn vị
data[].bnameTên người mua
data[].total_vTổng tiền bao gồm thuế
data[].vat_vTiền thuế
data[].serialKý hiệu hóa đơn
data[].sidId hóa đơn
data[].vpidId dùng để xem hóa đơn (nếu có)
data[].statusTrạng thái hóa đơn
data[].status_receivedTrạng thái phản hồi CQT
successTrạng thái api
totalTổng số phần tử thỏa mãn điều kiện (FPT không có)
messageNội dung lỗi nếu có
curl --location 'https://stag-invoice-hub.atomsolution.vn/m-invoice/get-invoices?start=0&count=10&serial=1C25MTS&from_date=2025-05-01&to_date=2025-06-06&stax=0106026495-998' \
--header 'authorization: Bearer O87316arj5+Od3Fqyy5hzdBfIuPk73eKqpAzBSvv8sY=' \
--header 'x-tax-code: 0106026495-998'