Checking access…

Skip to main content
Audience: CCG Platform Engineers

Cancel Payment β€” Reference

Looking up the PAYMENT_CANCELLED webhook payload or a cancel error scenario. For the conceptual model, see Cancel Payment Flow. For the request/response walkthrough, see How to Cancel a Payment.

Webhook β€” PAYMENT_CANCELLED​

{
"name": "PAYMENT_CANCELLED",
"source": "merchant-portal",
"payload": {
"id": "770e8400-e29b-41d4-a716-446655440000",
"merchantTransactionId": "preauth-20260404-001",
"amount": 25000,
"status": "CANCELLED",
"paymentAllocations": [
{
"id": "cccc1111-2222-3333-4444-555566667777",
"amount": 25000,
"status": "CANCELED"
}
]
}
}

Error Scenarios​

ScenarioHTTP StatusError TitleDetail
Payment in COMPLETED state422UNPROCESSABLE_ENTITYPayment cannot be cancelled in COMPLETED state
Payment in FAILED state422UNPROCESSABLE_ENTITYPayment already failed
Payment not found404NOT_FOUNDpaymentId not found
Missing paymentCancellationReason400INVALID_REQUESTpaymentCancellationReason is required
Invalid cancellation reason value400INVALID_REQUESTInvalid enum value
Stripe void failed422PAYMENT_ERRORCancellation processing failed