Create a new order for services or domains

Initiate the purchase of new services or domains. This creates an order and returns a payment URL or order ID needed for further follow-up and service activation. Use this endpoint when you want to buy something new.

Headers

Accept Example
Content-Type Example

Body

required
application/json
clientData object required
cartItems array required
euEligibilityConfirmed boolean
attemptKey string required
turnstileToken string

Responses

200
success boolean
timestamp string
requestId string
data object
400
0 string
1 string
2 string
3 string
4 string
5 string
6 string
7 string
8 string
9 string
10 string
11 string
12 string
13 string
14 string
15 string
16 string
17 string
error string
message string
code string
timestamp string
requestId string
409
error string
message string
code string
timestamp string
requestId string
422
error string
message string
code string
timestamp string
requestId string
details array
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": "string",
      "lastname": "string",
      "email": "string",
      "password": "string",
      "passwordConfirm": "string",
      "companyname": "string",
      "langcustomline0076": "string",
      "address1": "string",
      "city": "string",
      "state": "string",
      "postcode": "string",
      "country": "string",
      "phonenumber": "string",
      "vateu": "string",
      "orgno": "string",
      "accountType": "string",
      "bankIdVerified": true,
      "language": "string"
    },
    "cartItems": [
      {
        "id": "string",
        "name": "string",
        "price": 0,
        "quantity": 0,
        "productId": "string",
        "type": "string",
        "configoptions": {
          "disk_size": "string",
          "data_combined": "string",
          "additional_storage": "string",
          "ipamlimit": "string",
          "datastorezone": "string",
          "package": "string",
          "backuplimit": 0,
          "iplimitv6": "string",
          "snapshotlimit": "string",
          "os": "string"
        },
        "domain": "string",
        "cycle": "string"
      }
    ],
    "euEligibilityConfirmed": true,
    "attemptKey": "string",
    "turnstileToken": "string"
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "success": true,
    "paymentUrl": "string",
    "orderId": "string",
    "invoiceId": "string",
    "enableAffiliateTracking": true,
    "pendingManualProcessing": true
  }
}
Request Body
{
  "clientData": {
    "firstname": "string",
    "lastname": "string",
    "email": "string",
    "password": "string",
    "passwordConfirm": "string",
    "companyname": "string",
    "langcustomline0076": "string",
    "address1": "string",
    "city": "string",
    "state": "string",
    "postcode": "string",
    "country": "string",
    "phonenumber": "string",
    "vateu": "string",
    "orgno": "string",
    "accountType": "string",
    "bankIdVerified": true,
    "language": "string"
  },
  "cartItems": [
    {
      "id": "string",
      "name": "string",
      "price": 0,
      "quantity": 0,
      "productId": "string",
      "type": "string",
      "configoptions": {
        "disk_size": "string",
        "data_combined": "string",
        "additional_storage": "string",
        "ipamlimit": "string",
        "datastorezone": "string",
        "package": "string",
        "backuplimit": 0,
        "iplimitv6": "string",
        "snapshotlimit": "string",
        "os": "string"
      },
      "domain": "string",
      "cycle": "string"
    }
  ],
  "euEligibilityConfirmed": true,
  "attemptKey": "string",
  "turnstileToken": "string"
}