Orders
Cancel domains
Cancel some domains of an order without cancelling the whole order. The domains and their mailboxes keep working until the end of the paid period, then they are removed.
https://server.scaledmail.com/api/v1/orders/:uuid/cancel-domains- Token access
- Read and write
- Rate limit
- 40 write calls per minute per token
Your monthly price goes down from the next invoice. There is no refund for the current period.
All or nothing: if one domain can't be cancelled, nothing is cancelled. An order must keep at least one domain; to cancel all of them, use DELETE /orders/:uuid.
On 500 payment_, don't try again: our team checks the order. On 500 server_, check the order with GET /orders/:uuid before you retry.
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.. . .
Body
domainsstring[]required1 to 20 itemsDomain names on this order to cancel. Case is ignored and duplicates are skipped. All must belong to the order in the URL.
Response (200)
successtruerequiredmessagestringrequiredLike
2 domains will be cancelled on 2026-12-01.cancel_atstringrequiredThe day (
YYYY-MM-DD) the domains and their mailboxes are removed: the end of the paid period.domainsstring[]requiredThe domains that will be cancelled, lower case.
monthly_amount_beforenumberrequiredMonthly price of the order before this change, in US dollars.
monthly_amount_afternumberrequiredMonthly price of the order after this change, in US dollars.
Responses
- 200OK. The domains will be cancelled at the end of the paid period.
- 400Not on order. One or more names are not on this order, or are already being cancelled.
details.lists them. Nothing was cancelled.domains - 400Nothing left. The list holds every remaining domain of the order. Cancel the whole order instead. Other 400 codes:
domains_,required too_(over 20),many_ domains cancelling(the order is cancelled or being cancelled),order_(send the order form first),form_ pending contact_(the order is not paid by card, is billed every 3, 6 or 12 months, or has prices that can't be changed here).support - 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 change could not be done. Check the order with
GET /orders/:uuidbefore you retry. Witherror: "payment_the billing change gave no clear answer: our team checks the order, don't try again. (503unclear" payments_: payments are off for a moment, nothing changed.)unavailable - 429Rate limited. More than 40 write calls in a minute. Wait for the
Retry-Afterseconds.
