Invoice List
API to query e-invoice list with pagination, returning invoice information with status and download links.
API Endpoint
GET
https://einvoice-api-sandbox.sepay.vn/v1/invoicesAPI Request
pageinteger
Current page (default 1)
Default:1per_pageinteger
Records per page (default 10)
Default:10Pagination
- Use
pageto specify the page number (default is 1). - Use
per_pageto limit records per page (default is 10, maximum 100). - Response returns
has_more: trueif there is more data on the next page.
API Response
Success Response (200)
{
"data": {
"paging": {
"per_page": 1,
"total": 20,
"has_more": true,
"current_page": 1,
"page_count": 20
},
"items": [
{
"reference_code": "9735f09d-d970-11f0-aef4-52c7e9b4f41b",
"invoice_number": "0",
"issued_date": "2025-12-15",
"pdf_url": "https://beta-portalv2.mifi.vn/DownloadPDFCA.aspx?...",
"xml_url": null,
"status": "draft",
"buyer": {
"name": "Công ty ABC",
"tax_code": "0101234567",
"address": "123 Đường A, Quận B, Hà Nội",
"email": "buyer@example.com",
"phone": "0900000000"
},
"total_before_tax": 200000,
"tax_amount": 20000,
"total_amount": 220000,
"notes": "Ghi chú hóa đơn"
}
]
}
}dataobject
Note about invoice_number
invoice_number defaults to "0" when the invoice is in draft status ("status": "draft"). After successful issuance, invoice_number will be updated to the actual invoice number assigned by the provider.
Error Handling
401UnauthorizedMissing or invalid Bearer token. Please verify your token in the Authorization header.
Code Examples
>
>
>
curl --request GET \--url 'https://einvoice-api-sandbox.sepay.vn/v1/invoices?page=1&per_page=10' \--header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
Next Steps
After getting the invoice list, you can:
- Invoice Details - Use the
reference_codeto view detailed information of a specific invoice - Download Invoice - Download the PDF or XML file of an issued invoice
For draft invoices
If an invoice has status: "draft", you can Issue eInvoice to officially issue it.