Invoice List API

Query the list of e-invoices via SePay E-Invoice API with pagination. Returns invoice metadata including status, amount, and issuance date.

||

API Endpoint

GET
https://einvoice-api.sepay.vn/v1/invoices

API Request

pageinteger

Current page (default 1)

Default: 1
per_pageinteger

Records per page (default 10)

Default: 10
sourceenum

Filter invoices by creation source. Returns all invoices if omitted.

  • manual: Only invoices created via the web UI
  • api: Only invoices created via the API
Pagination
  • Use page to specify the page number (default is 1).
  • Use per_page to limit records per page (default is 10, maximum 100).
  • Response returns has_more: true if 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",
        "source": "api"
      }
    ]
  }
}
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

401Unauthorized

Missing 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' \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN'

Next Steps

After getting the invoice list, you can:

  1. Invoice Details - Use the reference_code to view detailed information of a specific invoice
  2. 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.