DeluxHostAPI Reference
Orders & renewals

Prepay service renewals

POST
/v1/orders/{id}/prepay

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
promotion?boolean
confirm*boolean

Response Body

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

application/json
  1. response
invoiceId*number
invoiceNumber*string
totalCents*number
newDueAt*string
Formatdate-time
autoPaid*boolean
curl -X POST 'https://api.deluxhost.net/v1/orders/0/prepay' \  -H "Authorization: Bearer $DELUXHOST_TOKEN" \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "confirm": true}'
Example Response
{  "invoiceId": 0,  "invoiceNumber": "string",  "totalCents": 0,  "newDueAt": "2019-08-24T14:15:22Z",  "autoPaid": true}