v1 is deprecated. Please move to API v2 (recommended). v1 keeps working until March 31, 2027, then it stops. See Moving from v1.

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.

POSThttps://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_unclear, don't try again: our team checks the order. On 500 server_error, check the order with GET /orders/:uuid before you retry.

Path parameters

  • uuidstringrequired

    The order id (sub_...), as id in GET /orders. A few older orders have an id that starts with rec.

Headers

  • Authorizationstringrequired

    Bearer <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_idstringrequired

    Your workspace id (org_...). Must be a workspace this token was made for.

Body

  • domainsstring[]required1 to 20 items

    Domain names on this order to cancel. Case is ignored and duplicates are skipped. All must belong to the order in the URL.

Response (200)

  • successtruerequired
  • messagestringrequired

    Like 2 domains will be cancelled on 2026-12-01.

  • cancel_atstringrequired

    The day (YYYY-MM-DD) the domains and their mailboxes are removed: the end of the paid period.

  • domainsstring[]required

    The domains that will be cancelled, lower case.

  • monthly_amount_beforenumberrequired

    Monthly price of the order before this change, in US dollars.

  • monthly_amount_afternumberrequired

    Monthly 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.domains lists them. Nothing was cancelled.
  • 400Nothing left. The list holds every remaining domain of the order. Cancel the whole order instead. Other 400 codes: domains_required, too_many_domains (over 20), cancelling (the order is cancelled or being cancelled), order_form_pending (send the order form first), contact_support (the order is not paid by card, is billed every 3, 6 or 12 months, or has prices that can't be changed here).
  • 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/:uuid before you retry. With error: "payment_unclear" the billing change gave no clear answer: our team checks the order, don't try again. (503 payments_unavailable: payments are off for a moment, nothing changed.)
  • 429Rate limited. More than 40 write calls in a minute. Wait for the Retry-After seconds.