# Create service renewal invoice

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

Create a renewal invoice for the service. If the service already has an unpaid invoice, returns that invoice's `invoice_id`; if the service has a pending upgrade, returns an error.

## HTTP request

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

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Service ID |

## Example request

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

`$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.manual_renew(id)`, Node.js `await client.services.manualRenew(id);`, PHP `$client->services->manualRenew($id);`.

## Example response

```json
{
 "success": true,
 "invoice_id": null,
 "info": [
  "manualrenew_ok"
 ]
}
```

Live sample from a test account with personal data masked; long arrays and strings are trimmed (`… N more item(s)`, `… N more line(s)`).
