DeluxHostAPI Reference
Orders & renewals

Calculate a cart quote

POST
/v1/cart/quote

Authorization

apiToken orders:read
headerAuthorizationBearer <token>

A personal API token: Authorization: Bearer dh_live_…. See Authentication for scopes.

Scope: orders:read

Request Body

application/json
  1. body
items*array<>
couponCode?string
locale?string

Language of the budget-VPS disclaimer text (en, it, de, nl), when the cart needs one. Default en.

Response Body

Operation completed or accepted; asynchronous actions may still be running.

application/json
  1. response
lines*array<>
subtotalCents*number
setupTotalCents*number
discountCents*number
stampDutyCents*number
totalCents*number
coupon*null|
disclaimer?

Present when the cart holds a plan that needs the budget-VPS disclaimer. Show it with its own unticked checkbox and send version and locale back with POST /v1/orders.

couponError?string
unavailable*array<>
curl -X POST 'https://api.deluxhost.net/v1/cart/quote' \  -H "Authorization: Bearer $DELUXHOST_TOKEN" \  -H 'Content-Type: application/json' \  -d '{  "items": [    {      "productSlug": "string",      "cycle": "string"    }  ]}'
Example Response
{  "lines": [    {      "productSlug": "string",      "productName": "string",      "groupName": "string",      "cycle": "string",      "quantity": 0,      "unitPriceCents": 0,      "setupFeeCents": 0,      "lineTotalCents": 0,      "specs": {},      "ipv4Count": 0,      "extraIpv4": 0,      "extraIpv4UnitCents": 0,      "extraIpv4Offer": {        "monthlyCents": 0,        "max": 0      }    }  ],  "subtotalCents": 0,  "setupTotalCents": 0,  "discountCents": 0,  "stampDutyCents": 0,  "totalCents": 0,  "coupon": null,  "disclaimer": {    "kind": "string",    "version": "string",    "locale": "string",    "title": "string",    "intro": "string",    "points": [      "string"    ],    "checkbox": "string",    "sha256": "string"  },  "couponError": "string",  "unavailable": [    {      "productSlug": "string",      "cycle": "string",      "reason": "string",      "code": "retired",      "available": 0,      "maxPerUser": 0,      "held": 0    }  ]}