Cancel an unpaid invoice
Requires billing:write; reseller:purchase also permits this operation. Cancels an open purchase, top-up or plan upgrade invoice; nothing is owed afterwards. A renewal, a charge raised by staff, a paid invoice, or an invoice with a payment attempt still pending at a provider returns 409.
post/v1/invoices/{id}/cancel
Request
- Base URL: https://api.trueproxies.com
- URL: https://api.trueproxies.com/v1/invoices/{id}/cancel
- Auth: HTTP bearer
Path parameters
idstring uuid required
Query parameters
customer_idstring uuid
Owned sub-customer UUID. Resellers only; reads require reseller:read and writes reseller:purchase in addition to the operation scope. X-Customer-Id header is an alternative. Not allowed for me, wallet, trial, API keys, or reseller-management routes.
Response
cancelled
Example response
{
"reference": "INV-001001"
}Changes
No recorded changes to this operation across all 1 revision of this API.