Skip to documentation
DocumentationAPI referenceConfirm balance renewal
POSTBearer token

Confirm balance renewal

/api/v1/servers/:id/renewal

Confirm the unchanged renew_server quote, debit the fixed team's USD balance once and extend the platform service period.

Before you call

Requires consume permission. HTTP uses team balance only. With MCP, an AI wallet with insufficient balance receives x402 requirements for the full renewal amount; keep identical inputs and requestKey, then retry with _meta[x402/payment]. Query the original payment ID after an uncertain response. This does not renew the supplier contract.

Request example

cURL
curl "https://tovahub.com/api/v1/servers/507f1f77bcf86cd799439012/renewal" -X POST \
  -H "Authorization: Bearer $TOVAHUB_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
  "requestKey": "docs_example_001",
  "months": 3,
  "amount": "3600",
  "networkAmount": "600",
  "previousExpiresAt": "2030-01-31T12:34:56.789Z",
  "expiresAt": "2030-04-30T12:34:56.789Z"
}'

Examples only. No requests are sent from this page.

Illustrative response
JSON
{
  "orderId": "66f000000000000000000311",
  "requestKey": "renew:docs_example_001",
  "status": "succeeded",
  "error": null
}

Parameters

idPath · Required

string

Resource ID: 24 hexadecimal characters. Use the platform ID returned by the matching list endpoint, not a supplier instance ID.

requestKeyJSON body · Required

string

8–100 characters: A–Z, a–z, 0–9, underscore or hyphen. Keep the same key and identical input when retrying the same operation.

monthsJSON body · Required

integer

Selected calendar months, from 1 to 12.

amountJSON body · Required

string

Total charge in USD cents.

networkAmountJSON body · Required

string

Private network charge in USD cents, or zero when not enabled.

previousExpiresAtJSON body · Required

string (ISO 8601)

Current platform service expiry in UTC.

expiresAtJSON body · Required

string (ISO 8601)

Quoted platform expiry after adding the selected calendar months.

Response

HTTP status 200

Return the original balance renewal order and its current status.

orderIdstring (ObjectId)

Original renewal order ID. Query it with get_order.

requestKeystring

Reference of the original balance renewal.

status"started" | "succeeded" | "failed"

Renewal status: started requires checking; succeeded confirms local delivery; failed does not extend the service period.

errorstring | null

Safe error summary, or null.