/v1/service/@id/upgradeUpgrade quote or request
Calculate the upgrade price; send send=true to submit the upgrade request.
Format of the resources parameter:
{
"resource_id": "qty_value",
"resource_id": "item_id",
"resource_id": { "item_id": "qty_value" }
}"qty_value": sliders and quantity fields"item_id": select lists and radio buttons{ "item_id": "qty_value" }: select lists with a quantity field
Call it through the gateway https://api.tino.vn/v1 with a token that has the services:write scope; see Calling the Tino API.
Authentication
Send the token in the header Authorization:
Authorization: Bearer <token>
Tokens that can call it: app tokens (tinoat_, Sign in with Tino) or personal API tokens (tinopat_).
Scopes
services:writeService management
Parameters
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Service ID |
Body (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
resources | array | Optional | array with resource values |
package | integer | Optional | New package id, optonal when upgrading resources |
cycle | string | Optional | New billing cycle, optonal when upgrading resources |
send | boolean | Optional | Set to true when you want to send your upgrade request |
Response
The route's JSON answer, in the same shape as UserAPI returns it (Personal data). Live sample from a test account with personal data masked; long arrays and strings are trimmed (… N more item(s), … N more line(s)).
Error codes
| Error code | Description |
|---|---|
401 · invalid_token | The token is wrong, expired or revoked. |
403 · insufficient_scope | The token lacks the services:write scope. |
403 · ip_not_allowed | A personal API token called from an IP outside its allow-list. |
Business errors of a route usually come as HTTP 200 with {"error": ["<code>"]}; see common error codes.