# Danh sách hoá đơn (phân trang)

`GET /v1/invoices` · quyền `billing:read`

Các hoá đơn của tài khoản, phân trang bằng `page` (bắt đầu từ 0) và `perpage`.

Lọc: `filter[service_status]` theo trạng thái dịch vụ, `filter[service]` theo ID dịch vụ.

## HTTP request

| Mục | Giá trị |
| --- | --- |
| URL | `https://api.tino.vn/v1/invoices` |
| Method | `GET` |
| Quyền (scope) | `billing:read` |
| Header | `Authorization: Bearer <token>` |
| Content-Type | — (không có body) |
| Token gọi được | token ứng dụng (`tinoat_`), token API cá nhân (`tinopat_`) |

## Tham số

| Tên | Vị trí | Kiểu | Bắt buộc | Mô tả |
| --- | --- | --- | --- | --- |
| `page` | query | integer | không | Zero-based page index. page=0 is the first page; the response echoes it 1-based in page.current. Default: `0`. |
| `perpage` | query | integer | không | Rows per page. Defaults to the account's RecordsPerPage setting. |
| `orderby` | query | string | không | Sort expression in the form `field\|DESC` or `field\|ASC`, e.g. `date\|DESC`. |
| `filter` | query | object | không | Endpoint-specific filters, serialised as filter[key]=value. |

## Example request

```bash
curl "https://api.tino.vn/v1/invoices" \
  -H "Authorization: Bearer $TINO_TOKEN"
```

`$TINO_TOKEN` là token có quyền `billing:read`.

SDK ([SDK & Ví dụ](/docs/sdk)): Python `client.billing.list_invoices()`, Node.js `await client.billing.listInvoices();`, PHP `$client->billing->listInvoices();`.

## Example response

```json
{
 "success": true,
 "invoices": [
  {
   "id": "300001",
   "date": "2026-03-30",
   "dateorig": "2026-03-30",
   "duedate": "2026-12-07",
   "paybefore": "2026-12-07",
   "total": "574723.00",
   "subtotal": "532151.00",
   "tax": "42572.00",
   "tax2": "0.00",
   "datepaid": "0000-00-00 10:00:00",
   "status": "Unpaid",
   "merge_id": null,
   "number": "TNG300001",
   "currency": "VND"
  }
 ],
 "total": 1,
 "page": {
  "total": 1,
  "pages": 1,
  "current": 1
 }
}
```

Mẫu thật từ tài khoản thử, đã che dữ liệu cá nhân; mảng và chuỗi dài được rút gọn (`… N more item(s)`, `… N more line(s)`).
