Orders

Get order

Get one order in full: its lines, domains, add-ons and billing.

GEThttps://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_id=.

Path parameters

  • idstringrequired

    The order id (ord_...).

Headers

  • Authorizationstringrequired

    Bearer <your API token>. Tokens start with sm_live_.

  • Workspacestringrequired

    The workspace id to act on (from GET /workspaces or Settings › API tokens). Required on every call except the /workspaces calls; without it: 400 workspace_required.

Response (200)

  • idstringrequired

    The order id (ord_...).

  • workspace_idstringrequired

    The workspace the order belongs to (org_...).

  • statusenumrequired

    Where the order is. provisioning: paid; domains and mailboxes are being set up. active: everything is live. cancelling: ends at cancel_at. cancelled: ended, or our team has already taken it down before cancel_at. pending_payment and failed are reserved for later and not sent yet.

    One of: pending_payment provisioning active cancelling cancelled failed

  • tagstringoptional

    Your label for the order. Left out if none.

  • domain_countintegerrequired

    Domains of the order, all providers (as listed in the order form; 0 until it is sent). A Domain Masking order: its masked domains.

  • recurring_amountnumberrequired

    What the next renewal bills for this order, after discounts. 0 once cancelled.

  • billing_periodobjectrequired

    How the order is billed.

    Show child fields
    • interval_months1 | 3 | 6 | 12required

      Months one renewal covers: 1, 3, 6 or 12.

  • next_renewal_atstringoptional

    When the order renews next (YYYY-MM-DD). Left out once it is cancelling or cancelled.

  • cancel_atstringoptional

    When the order ends (YYYY-MM-DD), the end of the paid period. Only while cancelling.

  • subdomainsstring[] | nullrequired

    A subdomain order: the labels set for the whole provider, in order, like ["mail", "team"] (mailboxes on mail.<domain>, team.<domain>). Providers with different labels: all of them, each once (Google first, then Outlook, then SMTP). A domain that was given its own labels (domains[].subdomains in POST /orders) is not listed here: read the real subdomains of each domain from domains[].subdomains in GET /orders/:id. null for 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 | nullrequired

    Subdomains on every domain of the order, 2 to 5. null for a normal order.

  • created_atstringrequired

    When the order was placed, as a date: YYYY-MM-DD (UTC).

  • linesobject[]required

    What the order is billed for.

    Show child fields
    • descriptionstringrequired

      What the line is for: the product name, or Domain registration: <domain> / Pre-warmed setup: <domain>.

    • kindenumrequired

      recurring: billed every period. one_time: billed once, with the first charge (the order's first payment).

      One of: recurring one_time

    • quantityintegerrequired

      How many units.

    • unit_amountnumberrequired

      Price of one unit.

    • amountnumberrequired

      unit_amount × quantity.

  • add_onsobject[]required

    Add-ons on this order. Empty list if none.

    Show child fields
    • typeenumrequired

      The add-on.

      One of: masking reporting

    • statusenumrequired

      setting_up (form needed or being set up), active, paused (Reporting), cancelling or cancelled.

      One of: setting_up active paused cancelling cancelled

  • domainsobject[]required

    Every domain of the order, A to Z, also the ones it no longer has (cancelled). For mailboxes use GET /mailboxes?order_id=....

    Show child fields
    • namestringrequired

      The domain name, lower case.

    • providerenumrequired

      The mailbox provider of this domain.

      One of: google outlook smtp

    • sourceenumrequired

      Where the domain comes from. A domain ordered as new shows as purchased (we bought it for you).

      One of: purchased own prewarmed

    • mailbox_countintegerrequired

      Live mailboxes on this domain.

    • subdomainsobject[]optional

      Subdomain orders only: this domain's subdomains in order. Left out for a normal domain (its mailboxes are on the domain itself).

      Show child fields
      • namestringrequired

        The subdomain, like mail.demo-domain-1.com.

      • mailbox_countintegerrequired

        Live mailboxes on this subdomain.

    • statusenumrequired

      setting_up (also a domain bought for the order that waits for its form), active, updating (a change request is open), cancelling: removed from the order or the order is ending; it stays live until cancel_at. cancelled: no longer on the order.

      One of: setting_up active updating cancelling cancelled

    • cancel_atstringoptional

      When 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_not_found). An order of another workspace looks the same.
  • 429Rate limited. More than 300 read calls in a minute with this token (rate_limited). Wait for the Retry-After seconds.

Like every call, it can also answer 401 (bad key), 400 workspace_required, 403 workspace_not_allowed. See Errors.