compute

DELETE /v1/compute/servers/{serverId}/plan/{purchaseId}

Stop paying for one option — where the provider permits it.

Все эндпоинты compute

Вся документация для разработчиков

Аутентификация

Отправьте ключ API в качестве токена носителя (bearer token). Ключ должен иметь разрешение billing.payment.manage; ключ без него отклоняется с кодом 403, а не 404.

Этот эндпоинт не принимает идентификатор организации. Ваш ключ уже определяет организацию, к которой он принадлежит, и ответ ограничивается ее рамками.

Попробовать

Замените всё в угловых скобках на собственные значения, а плейсхолдер ключа — на ключ из вашей панели управления.

curl -X DELETE https://api.zinndigital.com/v1/compute/servers/{serverId}/plan/{purchaseId} \
  -H "Authorization: Bearer zdk_live_…"

Вошли в систему? Консоль API в вашей панели управления автоматически подставляет реальный идентификатор вашей организации и ваш собственный ключ, а также выполняет запрос к работающему API, чтобы вы могли увидеть актуальный ответ. Откройте эту конечную точку в API-консоли

Подробнее

⛔⛔ Not a delete at the provider, and the response says so. this platform charges the option's term up front and refund nothing, so this stops the renewal: the thing stays attached and the customer keeps what they paid for until the contract expires. The purchase comes back as cancelling, never ended, precisely so no screen can claim otherwise. ⛔ 422 on the VPS range, always. A VPS add-on is a sub-contract of the machine and this platform exposes no way to cancel one - not through the reseller API, not through the contract (the write is accepted and ignored), and not in their own control panel, where the row carries no action at all and is labelled "renews with" the machine. Read addons_removable from getComputeServerPlan and do not offer the control at all rather than inviting a refusal. Requires billing.payment.manage.

Параметры

ИмяТипОбязательноЧто это
serverId (path)UuidДаThe server's id, as listComputeServers reports it. Ours (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine.
purchaseId (path)UuidДаThe purchase's id. Ours (UUIDv7), minted when the option was bought — never the provider's identifier for the add-on contract, which no client ever sees.

Ответ

ИмяТипОбязательноЧто это
dataComputeAddonPurchaseДаOne paid option a tenant actually bought against one machine. ⛔ status is cancelling, not ended, after a removal. The thing is still running and still ours to pay for until…

Ошибки, которые может возвращать этот эндпоинт

401 · 403 · 404 · 422 · 429