Orders
Cancel order
Cancel a whole order. Billing stops right away; the domains and mailboxes keep working until the end of the paid period.
https://server.scaledmail.com/api/v1/orders/:uuid- Token access
- Read and write
- Rate limit
- 40 write calls per minute per token
This can't be undone, and there is no refund for the current period. To keep the order with fewer domains, use POST /orders/:uuid/cancel-domains.
On this call error holds the same text as message, not a short code.
Path parameters
uuidstringrequiredThe order id (
sub_), as. . . idinGET /orders. A few older orders have an id that starts withrec.
Headers
AuthorizationstringrequiredBearer <your API token>. The token needs Read and write access, and the person who made it must be an owner or admin of the workspace.
Query parameters
organization_idstringrequiredYour workspace id (
org_). Must be a workspace this token was made for.. . .
Response (200)
successtruerequiredmessagestringrequiredSubscription cancelled successfully.cancel_atstringrequiredThe day (
YYYY-MM-DD) the paid period ends. Domains and mailboxes keep working until then.
Responses
- 200OK. The order is cancelled.
- 400Already cancelled. The order has ended or was already cancelled.
- 400Contact support. This order is not paid by card and can't be cancelled through the API.
- 403Not allowed. The person who made the token is not an owner or admin of the workspace.
- 404Not found. No order with this id in this workspace.
- 409Busy. Another change to this order is running. Try again in a moment.
- 500Failed. The cancel could not be done. Check the order with
GET /orders/:uuidbefore you try again. (503 withPayments are not available.when payments are off for a moment; nothing changed.)Try again later. - 429Rate limited. More than 40 write calls in a minute. Wait for the
Retry-Afterseconds.
