Create a new customer account and/or order

Create a new customer account (individual or business) and optionally place an order for services. Returns `invoiceId` for payment and `orderId` for activation.

Domain Services Domains

Context

Used in the dashboard

/cart/checkout /cart/en/checkout /signup /signup/en /

Where to get IDs / values

Workflow links

Requires

Headers

Accept Example
Content-Type Example

Body

required
application/json
attemptKey string required · Example: YOUR_ATTEMPT_KEY
cartItems array required · Example: [{"id":"example.com","domain":"example.com","status":"available","premium":false,"price...
clientData object required
turnstileToken string · Example: YOUR_TURNSTILE_TOKEN

Responses

200
data object required
data.accountCreated boolean · Example: true
data.clientId integer · Example: 30000
data.enableAffiliateTracking boolean · Example: true
data.invoiceId string · nullable · Example: 51910

Nullable: may be null when not applicable.

data.message string · Example: Account created successfully

Human-readable message.

data.orderId string · Example: 35644
data.paymentUrl string · Example: /billing?invoice=51910
data.pendingManualProcessing boolean · Example: false
data.redirectUrl string · Example: /verify-account
data.success boolean required · Example: true

True for successful responses.

requestId string required · Example: 2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba

Unique request identifier (UUID).

success boolean required · Example: true

True for successful responses.

timestamp string required · Example: 2026-02-10T00:00:00.000Z

ISO 8601 timestamp (UTC).

400
0 string required · Example: E
1 string required · Example: M
2 string required · Example: A
3 string required · Example: I
4 string required · Example: L
5 string required · Example: _
6 string required · Example: N
7 string required · Example: O
8 string required · Example: T
9 string required · Example: _
10 string required · Example: V
11 string required · Example: E
12 string required · Example: R
13 string required · Example: I
14 string required · Example: F
15 string required · Example: I
16 string required · Example: E
17 string required · Example: D
code string required · Example: BAD_REQUEST

Machine-readable error code.

error string required · Example: Bad Request

HTTP status title (e.g. 'Bad Request').

message string required · Example: E-postadressen måste verifieras innan du kan slutföra beställningen.

Human-readable message.

requestId string required · Example: 2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba

Unique request identifier (UUID).

timestamp string required · Example: 2026-02-10T00:00:00.000Z

ISO 8601 timestamp (UTC).

429
error string required · Example: Too Many Requests

HTTP status title (e.g. 'Bad Request').

message string required · Example: För många beställningar. Försök igen om några minuter.

Human-readable message.

requestId string required · Example: 2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba

Unique request identifier (UUID).

retryAfter string required · Example: 2026-02-10T00:00:00.000Z

When to retry (ISO 8601 timestamp, UTC).

POST https://cloud.hostup.se/api/create-order
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/create-order" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "clientData": {
      "firstname": "Anna",
      "lastname": "Svensson",
      "email": "[email protected]",
      "password": "YOUR_PASSWORD",
      "passwordConfirm": "YOUR_PASSWORD",
      "address1": "Examplegatan 1",
      "city": "Stockholm",
      "state": "Stockholm",
      "postcode": "123 45",
      "country": "SE",
      "accountType": "private"
    },
    "cartItems": [
      {
        "type": "vps",
        "productId": "3060",
        "cycle": "m",
        "domain": "vps.example.com",
        "configoptions": {
          "os": "ubuntu-22.04"
        }
      }
    ]
  }'
Response
{
  "success": true,
  "timestamp": "2026-02-10T00:00:00.000Z",
  "requestId": "2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba",
  "data": {
    "success": true,
    "paymentUrl": "/billing?invoice=51910",
    "orderId": "35644",
    "invoiceId": "51910",
    "enableAffiliateTracking": true,
    "pendingManualProcessing": false
  }
}
Request Body VPS
{
  "clientData": {
    "firstname": "Anna",
    "lastname": "Svensson",
    "email": "[email protected]",
    "password": "YOUR_PASSWORD",
    "passwordConfirm": "YOUR_PASSWORD",
    "address1": "Examplegatan 1",
    "city": "Stockholm",
    "state": "Stockholm",
    "postcode": "123 45",
    "country": "SE",
    "accountType": "private"
  },
  "cartItems": [
    {
      "type": "vps",
      "productId": "3060",
      "cycle": "m",
      "domain": "vps.example.com",
      "configoptions": {
        "os": "ubuntu-22.04"
      }
    }
  ]
}