partner

GET /v1/partner/customers/{externalId}/hosting-orders/{orderId}

Read one of your customer's hosting orders, and the site it became.

All partner endpoints

All developer docs →

Authentication

Send an API key as a bearer token. The key must carry the partner.domains permission; a key without it is refused with 403, not 404.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X GET https://api.zinndigital.com/v1/partner/customers/{externalId}/hosting-orders/{orderId} \
  -H "Authorization: Bearer zdk_live_…"

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

The authoritative state of a hosting order you placed: its status, the subscription the paid plan became (subscription_id, null until fulfilment), and — when the order carried a site — the site's id and status once fulfilment has created it, or error with the reason it could not be. A trial order also carries trial: its status, its ends_at and cutoff_at, and the plan to subscribe to. A domain order, another customer's or another partner's order is a 404. There is no pay_url here. Requires partner.domains.

Parameters

NameTypeRequiredWhat it is
externalId (path)stringYesYOUR id for that customer — whatever your own system calls them. It is what makes linking idempotent, and it is scoped to your partner programme: another partner's id is a 404…
orderId (path)stringYes—

Response

NameTypeRequiredWhat it is
order_idstringYes—
human_refstringYesThe reference the payment page returns to you as ?order=.
pay_urlstringNoOnly in the response that placed (or replayed) the order: the hosted page the customer pays on. It carries a secret that is stored nowhere — treat it as one. Absent on a trial…
pay_expires_atstringNo—
org_idstringYes—
trialPartnerHostingTrial | nullYesPresent on an order placed with trial: true; null on every other order. Until fulfilment starts the trial, status is pending and the dates are null.
replaces_subscription_idobjectNoThe live plan subscription this order replaces, as named on the request (ADR 0036); null when the order ADDS a plan. Once fulfilled that subscription is canceled and…
statusstringYesAs on PartnerOrder.
currencystringYes—
term_monthsintegerYes—
subtotal_minorintegerYes—
tax_minorintegerYes—
total_minorintegerYes—
linesPartnerHostingOrderLine[]Yes—
sitePartnerHostingOrderSite | nullYes—
subscription_idobjectYesThe subscription the paid plan line became; null until fulfilment.

Errors this endpoint can return

401 · 403 · 404 · 429