# Hoá đơn của dịch vụ

`GET /v1/service/@id/invoices` · quyền `services:read`

Các hoá đơn liên quan đến dịch vụ (`rel_invoices`).

## HTTP request

| Mục | Giá trị |
| --- | --- |
| URL | `https://api.tino.vn/v1/service/@id/invoices` |
| Method | `GET` |
| Quyền (scope) | `services: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 dịch vụ |

## Example request

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

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

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

## Example response

```json
{
 "success": true,
 "rel_invoices": null
}
```

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