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 order

Cancel a whole order. Billing stops right away; the domains and mailboxes keep working until the end of the paid period.

DELETEhttps://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

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

Response (200)

  • successtruerequired
  • messagestringrequired

    Subscription cancelled successfully.

  • cancel_atstringrequired

    The 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/:uuid before you try again. (503 with Payments are not available. Try again later. when payments are off for a moment; nothing changed.)
  • 429Rate limited. More than 40 write calls in a minute. Wait for the Retry-After seconds.