API Endpoint
https://einvoice-api.sepay.vn/v1/invoicesAPI Request
Current page (default 1)
Default:1Records per page (default 10)
Default:10Filter invoices by creation source. Returns all invoices if omitted.
manual: Only invoices created via the web UIapi: Only invoices created via the API
Filter by invoice kind. Accepts several kinds as a comma-separated list (e.g. 6,7).
Returns all invoices if omitted.
1: Draft invoice2: New invoice3: Cancelled invoice4: Replacement invoice5: Replaced invoice6: Increase adjustment invoice7: Decrease adjustment invoice8: Information adjustment invoice9: Combined adjustment invoice10: Adjusted invoice
Filter invoices by seller business location - pass the location's xid. Returns all invoices if omitted.
- 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
{
"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": "2026-01-26",
"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"
},
"seller_store": {
"xid": "8f14e45f-ceea-4b6d-9c1a-2b3c4d5e6f70",
"code": "CN01",
"name": "Chi nhánh 1"
},
"total_before_tax": 200000,
"tax_amount": 20000,
"total_amount": 220000,
"notes": "Ghi chú hóa đơn",
"source": "api"
}
]
}
}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.sepay.vn/v1/invoices?page=1&per_page=10&source=manual&document_type=6%2C7&seller_store_xid=8f14e45f-ceea-4b6d-9c1a-2b3c4d5e6f70' \--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
If an invoice has status: "draft", you can Issue eInvoice to officially issue it.