# Change billing cycle

`POST /v1/service/@id/cycle` · scope `services:write`

Change the service's recurring billing cycle.

## HTTP request

| Item | Value |
| --- | --- |
| URL | `https://api.tino.vn/v1/service/@id/cycle` |
| Method | `POST` |
| Scope | `services:write` |
| Header | `Authorization: Bearer <token>` |
| Content-Type | `application/json` |
| Tokens that can call it | app tokens (`tinoat_`), personal API tokens (`tinopat_`) |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Service ID |
| `cycle` | body | string | no | New billing cycle |

## Example request

```bash
curl -X POST "https://api.tino.vn/v1/service/100001/cycle" \
  -H "Authorization: Bearer $TINO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "cycle": "<cycle>"
}'
```

`$TINO_TOKEN` is a token with the scope `services:write`. Path parameters in the example are sample values.

SDK ([SDK & examples](/en/docs/sdk)): Python `client.services.set_billing_cycle(id, id=...)`, Node.js `await client.services.setBillingCycle(id, { id: ... });`, PHP `$client->services->setBillingCycle($id, ['id' => ...]);`.

## Example response

No live sample: the route changes real data or the test account has no data for it. The answer is a JSON object; errors follow the common shape in [Calling the Tino API](/en/docs/api#errors).
