compute

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

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

Tất cả các điểm cuối compute

Tất cả tài liệu dành cho nhà phát triển

Xác thực

Gửi khóa API dưới dạng mã thông báo bearer. Khóa này phải có quyền billing.payment.manage; khóa không có quyền này sẽ bị từ chối với mã lỗi 403, không phải 404.

Endpoint này không nhận ID tổ chức. Khóa của bạn đã xác định tổ chức mà nó thuộc về và phản hồi được giới hạn trong phạm vi đó.

Dùng thử

Thay thế bất kỳ nội dung nào trong ngoعل (angle brackets) bằng giá trị của riêng bạn và trình giữ chỗ key bằng một key từ trang tổng quan của bạn.

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

Đã đăng nhập? Bảng điều khiển API trong trang quản lý của bạn sẽ tự điền ID tổ chức thực tế và khóa của riêng bạn, sau đó chạy yêu cầu đối với API trực tiếp để bạn có thể xem phản hồi thực tế. Mở điểm cuối này trong bảng điều khiển API

Chi tiết

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

Tham số

TênLoạiBắt buộcNội dung này là gì
serverId (path)UuidThe 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)UuidThe 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.

Phản hồi

TênLoạiBắt buộcNội dung này là gì
dataComputeAddonPurchaseOne 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…

Các lỗi điểm cuối này có thể trả về

401 · 403 · 404 · 422 · 429