Skip to Content

Cancel invoice

POST /api/v3/projects/{projectId}/invoices/{invoiceId}/cancel

Cancels an active invoice.

v4 signature payload: {invoice_id}{client_ip}

Request parameters

FieldTypeRequiredDescription
projectIdinteger (int32)yes
invoiceIdstring (uuid)yes

Request body

FieldTypeRequiredDescription
client_ipstring—
additional_parametersobject—Arbitrary invoice parameters stored with the invoice, the JSON counterpart of the XML <AdditionalParameters>/<Parameter name= value=/> block. Parameter names are case-insensitive and must be unique. On cancel/refund/authorize the given values are merged into the ones already stored: names that match are overwritten, the rest are kept.
Request example
{}
Response example
{ "success": true, "data": { "invoice_id": "0d0f3c58-9b1e-4a77-9a0c-000000000001", "status": "Cancelled" } }

Response codes

CodeDescription
200Invoice cancelled
400Validation or business request error
401Authentication failed (missing/invalid signature or timestamp)
403Project access denied or IP not whitelisted
404Invoice not found
422Business validation error
500Unexpected platform error
503Service temporarily unavailable