List open orders
GET /api/v2/me/open-orders
Lists your recent orders that are still being set up or still waiting for payment. An order is included when it is from the last 14 days and has a line that is still pending or an unpaid invoice. Cancelled orders, renewals and upgrades are left out. Returns at most 5 orders, newest first. The list is not paginated. Each order has its invoice and one line per ordered item, with the item’s state and the ID of what it created. For the full order, use GET /api/v2/orders/{id}.
Authentication: An API key with the scope read:orders. About keys and scopes
Example
curl "https://cloud.hostup.se/api/v2/me/open-orders" \ -H "Authorization: Bearer $HOSTUP_API_KEY"Responses
200 Your open orders, newest first.
{ "openOrders": [ { "id": "ord_01hxa3b4c5d6e7f8g9h0j1k2m3", "number": "1117145835", "createdAt": "2026-09-15T10:12:00.000Z", "invoice": { "id": "inv_01hxa3b4c5d6e7f8g9h0j1k2m3", "number": "202689534", "status": "paid", "total": 588, "currencyCode": "SEK", "dueAt": "2026-09-22T00:00:00.000Z" }, "lines": [ { "key": "example.com", "kind": "transfer", "label": "Example Label", "status": "pending", "started": true, "resource": { "type": "domain", "id": "dom_01hxa3b4c5d6e7f8g9h0j1k2m3" }, "attention": null }, { "key": "hosting:1", "kind": "hosting", "label": "Example Label", "status": "active", "started": false, "resource": { "type": "account", "id": "acct_01hxa3b4c5d6e7f8g9h0j1k2m3" }, "attention": null } ] } ]}Response fields
openOrdersarray of objectOrders still being set up or still unpaid. At most 5.
idstringThe order ID (
ord_…).numberstring or nullThe order number shown to the customer.
createdAtstring or nullWhen the order was placed.
invoiceobject or nullThe order’s invoice. Null when the order has no invoice.
linesarray of objectOne line per ordered item.
keystringIdentifies the line within the order: the domain name for a domain line, otherwise a key such as
hosting:…. Treat it as opaque.kindstringWhat the line is: a domain
register or transfer, hosting (web hosting), vps, an addon or other. One of transfer, register, hosting, vps, addon, other.labelstringThe domain, hostname or product name as the customer sees it.
statusstringpending: being registered, transferred or set up. active: live. failed: could not be set up. closed: cancelled or ended. One of pending, active, failed, closed.startedbooleanTrue when work on this pending line has begun, even while the invoice is unpaid. Always false when
status is not pending.resourceobject or nullWhat the line created. Null until it exists.
attentionstring or nullSet when a domain registration or transfer failed and the customer must act. The domain’s page in the client area shows what to do. One of
registration_failed, transfer_failed.Errors
Errors are Problem Details with a stable code. Branch on the code, not on the text.
| 400 | Invalid request. The response body is an RFC 7807 Problem Details document. |
| 401 | Unauthorized. Authentication is required. |
| 403 | Forbidden. The caller lacks a required scope or does not own the resource. |
| 404 | Not found. The resource does not exist or is not owned by the caller. |
| 429 | Rate limited. Retry after the limit resets. 429 responses include Retry-After seconds plus X-RateLimit-* headers. |
| 500 | Internal error. Retry later or contact support if the issue persists. |