compute

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

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

Wszystkie punkty końcowe compute

Wszystkie dokumentacje dla programistów

Uwierzytelnianie

Wyślij klucz API jako token bearer. Klucz musi posiadać uprawnienie billing.payment.manage; klucz bez niego jest odrzucany z kodem 403, a nie 404.

Ten punkt końcowy nie wymaga identyfikatora organizacji. Twój klucz już identyfikuje organizację, do której należy, a odpowiedź jest do niej ograniczona.

Wypróbuj

Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.

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

Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API

Szczegóły

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

Parametry

NazwaTypWymaganeCo to jest
serverId (path)UuidTakThe 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)UuidTakThe 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.

Odpowiedź

NazwaTypWymaganeCo to jest
dataComputeAddonPurchaseTakOne 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…

Błędy, które ten punkt końcowy może zwrócić

401 · 403 · 404 · 422 · 429