DeluxHostAPI Reference
Orders & renewals

Change the service plan

POST
/v1/orders/{id}/plan-change

Requires confirm: true. Inspect the resource before retrying an uncertain outcome. Requires Idempotency-Key. Use the same key and payload to replay a completed response. A 409 for a pending or failed attempt requires checking the resource; a new key could duplicate a charge or purchase.

Authorization

apiToken orders:manage
headerAuthorizationBearer <token>

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

Scope: orders:manage

Path Parameters

id*number

Header Parameters

Idempotency-Key*string

Unique per account and operation. Reuse only for an identical request. Completed requests replay the encrypted stored response; pending or failed attempts return 409 and are never automatically rerun.

Length1 <= length <= 128

Request Body

application/json
  1. body
productId*number
couponCode?string
confirm*boolean

Response Body

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

application/json
  1. response
applied*boolean
invoiceId*null|number
diffCents*number
discountCents*number
totalCents*number
curl -X POST 'https://api.deluxhost.net/v1/orders/0/plan-change' \  -H "Authorization: Bearer $DELUXHOST_TOKEN" \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "productId": 0,  "confirm": true}'
Example Response
{  "applied": true,  "invoiceId": null,  "diffCents": 0,  "discountCents": 0,  "totalCents": 0}