compute
DELETE /v1/compute/servers/{serverId}/plan/{purchaseId}
Stop paying for one option — where the provider permits it.
Pagpapatotoo
Magpadala ng API key bilang isang bearer token. Kailangang taglayin ng key ang pahintulot na billing.payment.manage; ang key na wala nito ay tatanggihan gamit ang 403, hindi 404.
Ang endpoint na ito ay hindi nangangailangan ng id ng organisasyon. Natutukoy na ng iyong key ang organisasyong kinabibilangan nito, at nakatuon ang tugon dito.
Subukan ito
Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong dashboard.
curl -X DELETE https://api.zinndigital.com/v1/compute/servers/{serverId}/plan/{purchaseId} \
-H "Authorization: Bearer zdk_live_…"Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API
Mga Detalye
⛔⛔ **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`.
Mga Parameter
| Pangalan | Uri | Kailangan | Ano ito |
|---|---|---|---|
serverId (path) | Uuid | Oo | 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 | Oo | 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. |
Tugon
| Pangalan | Uri | Kailangan | Ano ito |
|---|---|---|---|
data | ComputeAddonPurchase | Oo | 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 unti… |
Mga error na maibabalik ng endpoint na ito
401 · 403 · 404 · 422 · 429