Cancel Invoice
POST
/v1/invoices/{id}/cancelOptionalCancel a non-terminal invoice.
Authentication
Signature Pattern
HMAC-SHA256(secretKey, "{timestamp}\nPOST\n/v1/invoices/{id}/cancel\n{sha256(body)}")| Header | Value | Description |
|---|---|---|
X-Api-Key | pk_live_a1b2c3d4e5f6g7h8 | Merchant public API key |
X-Signature | {hmac_sha256_hex} | Hex HMAC-SHA256 request signature |
X-Timestamp | 2026-04-13T10:00:00Z | ISO 8601 UTC request time (±5 min) |
Request Example
JSONRequest Body
{}Response Parameters
| Field | Type | Example |
|---|---|---|
id | string | "inv_7a8b9c0d1e2f" |
status | string | "cancelled" |
cancelledAt | string | "2026-04-13T11:00:00Z" |
Response Example
JSONResponse
{
"id": "inv_7a8b9c0d1e2f",
"status": "cancelled",
"cancelledAt": "2026-04-13T11:00:00Z"
}Status Codes
200Success
201Created
400Bad Request
401Unauthorized
404Not Found
429Rate Limited
Try itMock
POSThttps://api.pay.sandbox.kvell.group