Cancel an order and its invoice

Cancel an order and its associated invoice. A successful cancellation returns an order ID for follow-up in other systems.

Path Parameters

id integer · min: 1 required Example

Unique id identifier

Headers

Accept Example
Content-Type Example

Responses

200
success boolean
timestamp string
requestId string
data object
503
error string
message string
code string
timestamp string
requestId string
POST https://cloud.hostup.se/api/billing/order/{id}/cancel
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/billing/order/34026/cancel" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "message": "string",
    "order_id": "string"
  }
}