Orders
Get order
Get one order in full: its lines, domains, add-ons and billing.
https://api.scaledmail.com/v2/orders/:id- Rate limit
- Read: 300 calls per minute per token
For a large order, page through its domains with GET /domains?order_.
Path parameters
idstringrequiredThe order id (
ord_).. . .
Headers
AuthorizationstringrequiredBearer <your API token>. Tokens start withsm_.live_ WorkspacestringrequiredThe workspace id to act on (from
GET /workspacesor Settings › API tokens). Required on every call except the/workspacescalls; without it:400workspace_.required
Response (200)
idstringrequiredThe order id (
ord_).. . . workspace_idstringrequiredThe workspace the order belongs to (
org_).. . . statusenumrequiredWhere the order is.
provisioning: paid; domains and mailboxes are being set up.active: everything is live.cancelling: ends atcancel_.at cancelled: ended, or our team has already taken it down beforecancel_.at pending_andpayment failedare reserved for later and not sent yet.One of:
pending_paymentprovisioningactivecancellingcancelledfailedtagstringoptionalYour label for the order. Left out if none.
domain_countintegerrequiredDomains of the order, all providers (as listed in the order form;
0until it is sent). A Domain Masking order: its masked domains.recurring_amountnumberrequiredWhat the next renewal bills for this order, after discounts.
0once cancelled.billing_periodobjectrequiredHow the order is billed.
ShowHide child fields
interval_months1 | 3 | 6 | 12requiredMonths one renewal covers: 1, 3, 6 or 12.
next_renewal_atstringoptionalWhen the order renews next (
YYYY-MM-DD). Left out once it is cancelling or cancelled.cancel_atstringoptionalWhen the order ends (
YYYY-MM-DD), the end of the paid period. Only while cancelling.subdomainsstring[] | nullrequiredA subdomain order: the labels set for the whole provider, in order, like
["mail", "team"](mailboxes onmail.,<domain> team.). Providers with different labels: all of them, each once (Google first, then Outlook, then SMTP). A domain that was given its own labels (<domain> domains[].insubdomains POST /orders) is not listed here: read the real subdomains of each domain fromdomains[].insubdomains GET /orders/:id.nullfor a normal order.[]while a subdomain order made in the app still waits for its order form (the labels are chosen there).subdomains_per_domaininteger | nullrequiredSubdomains on every domain of the order, 2 to 5.
nullfor a normal order.created_atstringrequiredWhen the order was placed, as a date:
YYYY-MM-DD(UTC).linesobject[]requiredWhat the order is billed for.
ShowHide child fields
descriptionstringrequiredWhat the line is for: the product name, or
Domain registration: <domain>/Pre-warmed setup: <domain>.kindenumrequiredrecurring: billed every period.one_: billed once, with the first charge (the order's first payment).time One of:
recurringone_timequantityintegerrequiredHow many units.
unit_amountnumberrequiredPrice of one unit.
amountnumberrequiredunit_×amount quantity.
add_onsobject[]requiredAdd-ons on this order. Empty list if none.
ShowHide child fields
typeenumrequiredThe add-on.
One of:
maskingreportingstatusenumrequiredsetting_(form needed or being set up),up active,paused(Reporting),cancellingorcancelled.One of:
setting_upactivepausedcancellingcancelled
domainsobject[]requiredEvery domain of the order, A to Z, also the ones it no longer has (
cancelled). For mailboxes useGET /mailboxes?order_.id=. . . ShowHide child fields
namestringrequiredThe domain name, lower case.
providerenumrequiredThe mailbox provider of this domain.
One of:
googleoutlooksmtpsourceenumrequiredWhere the domain comes from. A domain ordered as
newshows aspurchased(we bought it for you).One of:
purchasedownprewarmedmailbox_countintegerrequiredLive mailboxes on this domain.
subdomainsobject[]optionalSubdomain orders only: this domain's subdomains in order. Left out for a normal domain (its mailboxes are on the domain itself).
ShowHide child fields
namestringrequiredThe subdomain, like
mail..demo-domain-1. com mailbox_countintegerrequiredLive mailboxes on this subdomain.
statusenumrequiredsetting_(also a domain bought for the order that waits for its form),up active,updating(a change request is open),cancelling: removed from the order or the order is ending; it stays live untilcancel_.at cancelled: no longer on the order.One of:
setting_upactiveupdatingcancellingcancelledcancel_atstringoptionalWhen the domain and its mailboxes are removed (
YYYY-MM-DD). Only while cancelling.
Responses
- 200OK. The order is in this workspace.
- 403Not allowed. The token can't use the workspace in
Workspace(workspace_).not_ allowed - 404Not found. No order with this id in this workspace (
order_). An order of another workspace looks the same.not_ found - 429Rate limited. More than 300 read calls in a minute with this token (
rate_). Wait for thelimited Retry-Afterseconds.
Like every call, it can also answer 401 (bad key), 400 workspace_, 403 workspace_. See Errors.
