Cancel a specific invoice

Cancel a specific invoice. Useful if an invoice was created incorrectly or a transaction is no longer needed. Returns an invoice ID to confirm cancellation.

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
POST https://cloud.hostup.se/api/billing/invoice/{id}/cancel
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/billing/invoice/48084/cancel" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "message": "string",
    "invoice_id": "string"
  }
}