# Hoá đơn của tên miền

`GET /v1/domain/@id/invoices` · quyền `domains:read`

Các hoá đơn liên quan đến tên miền (`rel_invoices`).

## HTTP request

| Mục | Giá trị |
| --- | --- |
| URL | `https://api.tino.vn/v1/domain/@id/invoices` |
| Method | `GET` |
| Quyền (scope) | `domains: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ả |
| --- | --- | --- | --- | --- |
| `id` | đường dẫn | integer | có | ID tên miền |

## Example request

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

`$TINO_TOKEN` là token có quyền `domains:read`. Tham số đường dẫn trong ví dụ là giá trị mẫu.

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

## Example response

```json
{
 "success": true,
 "rel_invoices": [
  {
   "id": "300001",
   "client_id": "<redacted>",
   "date": "2026-03-30",
   "dateorig": "2026-03-30",
   "duedate": "2026-12-07",
   "paybefore": "2026-12-07",
   "currency_id": "0",
   "total": "574723.00",
   "paid_id": "",
   "subtotal": "532151.00",
   "tax": "42572.00",
   "tax2": "0.00",
   "datepaid": "0000-00-00 10:00:00",
   "status": "Unpaid",
   "merge_id": "300001"
  }
 ]
}
```

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)`).
