compute
DELETE /v1/compute/servers/{serverId}/plan/{purchaseId}
Stop paying for one option — where the provider permits it.
ការផ្ទៀងផ្ទាត់ភាពត្រឹមត្រូវ
បញ្ជូនសោ 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. |
ផ្អាកដំណើរការ
| ឈ្មោះ | ប្រភេទ | តម្រូវការ | តើវាជាអ្វី |
|---|---|---|---|
data | ComputeAddonPurchase | បាទ/ចាស | 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… |
កំហុសដែលចំណុចបញ្ចប់នេះអាចបង្វិលត្រឡប់មកវិញ
401 · 403 · 404 · 422 · 429