compute

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

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

Toate punctele finale compute

Autentificare

Trimiteți o cheie API ca token de tip bearer. Cheia trebuie să aibă permisiunea billing.payment.manage; o cheie care nu o are va fi respinsă cu 403, nu 404.

Acest endpoint nu necesită un ID de organizație. Cheia ta identifică deja organizația căreia îi aparține, iar răspunsul este limitat la aceasta.

Încearcă

Înlocuiți tot ce se află între paranteze unghiulare cu propriile valori și substituentul cheie cu o cheie din tabloul de bord.

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

Autentificat? Consola API din panoul de control îți completează ID-ul real al organizației și propria cheie și rulează cererea în API-ul live, astfel încât să poți vedea răspunsul efectiv. Deschideți acest punct final în consola API

Detalii

⛔⛔ **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`.

Parametri

NumeTipObligatoriuCe este
serverId (path)UuidDaThe 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)UuidDaThe 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.

Răspuns

NumeTipObligatoriuCe este
dataComputeAddonPurchaseDaOne 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 unti…

Erori pe care le poate returna acest punct final

401 · 403 · 404 · 422 · 429