Withdraw a service cancellation
Overview
Withdraws a pending cancellation so the service continues to run and generate invoices. Available only when cancellations_withdrawable is true in the service list. Otherwise, contact support. Withdrawing a server cancellation also clears pending deletion of its attached granted IPs. Withdraw rented IP cancellations separately. Automatic payments stopped by the cancellation remain disabled. The customer must set them up again if needed.
Permissions
Requires the billing.manage (Manage service billing) permission for the selected team. Resources outside that team return 404.
Authorization
Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.
Send it as Bearer <token>.
Path parameters
The service ID returned by the billing endpoints.
Response 200
application/jsonThe record, as a JSON object. There is no envelope.
The service id ID.
The name shown to customers.
The fully qualified hostname.
The value of status.
How often the service renews and is billed.
The amount charged each billing cycle.
The three-letter currency code used for monetary amounts.
The server id ID.
The value of next_due_date.
The value of period.
Show child attributesHide child attributes
The date and time for starts at, in UTC.
The date and time for ends at, in UTC.
The value of total_days.
The value of days_remaining.
Zero rather than a negative days_remaining, so a caller never has to decide which of the two fields to believe.
The share of the period still to run.
healthy, due_soon, critical or overdue, named on the server so every surface showing a term agrees about when one has become worth worrying about.
Whether anything will be charged automatically. The tick or the cross in the Autopay column.
Autopay that has been turned off but has not stopped yet. Its own state, drawn between the tick and the cross.
The value of subscription.
Show child attributesHide child attributes
The uuid UUID.
The value of uuid_short.
The payment provider's current status.
Null once nothing further will be charged, including for a subscription that is merely winding down.
When an agreed cancellation actually takes effect.
Excludes tax.
The three-letter currency code used for monetary amounts.
The email address of the saved PayPal account it is charged to, when it is one.
The saved card it is charged to, such as "Visa ending 4242", when it is one.
The value of cancellation.
Show child attributesHide child attributes
The date and time for requested at, in UTC.
The type of operation or resource.
The value of type_label.
The value of reason.
Whether the customer can start subscription.
Whether the customer can cancel subscription.
Whether the customer can change cycle.
Whether the customer can cancel service.
Whether the customer can withdraw cancellation.
What stopping this service today would put back on the account, in the currency beside it.
Whether renewals of this service are paid out of the account's credit balance where there is one. True unless the customer has turned it off, which is what the balance does by default.
Whether that can be changed from here. False where the installation does not offer account credit at all, or cannot enforce the answer per service.
The value of autopay_provider.
The value of autopay_details.
The value of suspension_reason.
Whether it is charged because automatic payments are on for the whole account, which is where they are turned off.
Whether the credit setting is the account's, chosen on Billing while automatic payments are on for the whole account, rather than this service's own.
The value of postpaid_monthly_price.
Errors
- 401
- The key was missing, malformed, revoked, or belongs to an account that no longer exists.
- 403
- Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
- 404
- The resource was not found in the selected team. Resources in another account or team also return 404.
- 429
- Too many requests. The
Retry-Afterheader says how many seconds to wait. Limits are per account, so several keys on one account share them.
Still stuck? Contact our team
View as Markdown