# Chi tiết dịch vụ

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

Thông tin dịch vụ `@id`: gói, chu kỳ, hạn dùng, trạng thái, thông tin đăng nhập dịch vụ.

## HTTP request

| Mục | Giá trị |
| --- | --- |
| URL | `https://api.tino.vn/v1/service/@id` |
| 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" \
  -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.get(id)`, Node.js `await client.services.get(id);`, PHP `$client->services->get($id);`.

## Example response

```json
{
 "service": {
  "id": "100001",
  "product_id": "2122",
  "date_created": "2026-07-26",
  "domain": "example.com",
  "firstpayment": "79000.00",
  "total": "79000.00",
  "billingcycle": "Monthly",
  "next_due": "2026-08-26",
  "due_day": "26",
  "expires": "2026-08-26",
  "autorenew": "1",
  "next_invoice": "2026-08-11",
  "status": "Active",
  "label": "",
  "username": "exampleuser",
  "password": "<redacted>",
  "rootpassword": null,
  "commitment_date": null,
  "date_suspended": "0000-00-00",
  "date_terminated": "0000-00-00",
  "…": "9 more key(s)"
 },
 "addons": [],
 "haveaddons": [],
 "unpaid_invoice": []
}
```

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