Discard
You can cancel a payment charge before authorization by calling the Discard endpoint when the charge is in the AUTHENTICATION_PENDING state. Discards will also occur automatically if the authentication timeout period expires.
Calling the discard endpoint allows you to terminate an in-progress charge after submission, but before authentication or authorization. It prevents the payment from being completed by the consumer and stops it from progressing to authorization.
Use cases include:
- Consumer changes their mind or decides to use a different payment method.
- Canceling a payment on a terminal: If the transaction is in progress and a handoff to a mobile flow occurs, calling the Discard endpoint ensures that the consumer does not complete the payment unintentionally.
By canceling the charge early, you can avoid unnecessary funds flow, preventing the need to void or later refund a payment that the consumer completed, but the merchant decided to cancel.
ImportantNot all payment methods support the Discard operation. Availability depends on whether the underlying payment scheme supports this capability. As support is rolled out progressively, the feature is currently available only for TWINT, BLIK & SATISPAY.
Types of Discard
| Type | Description |
|---|---|
| AUTHENTICATION_TIMEOUT | Indicates that the payment was automatically discarded due to exceeding the authentication timeout period. The charge is no longer valid for processing. |
| MERCHANT_INITIATED_DISCARD | Refers to a payment charge that was discarded by the merchant using the Discard endpoint, typically before authentication was completed. |
Discard a payment charge
In your /v1/payment-charges/{paymentChargeId}/discards request, include:
merchantDiscardReference: Merchant reference for the discard.
Request
POST /v1/payment-charges/charge_ViwZ6ObcA6GO2V5dS6ssH/discards
{
"merchantDiscardReference": "YOUR_DISCARD_REFERENCE"
}Response
{
"id": "discard_3PDC1PHLKoWiNJuczYiWT",
"status": "DISCARDED",
"merchantDiscardReference": "YOUR_DISCARD_REFERENCE",
"type": "MERCHANT_INITIATED_DISCARD",
"createdAt": "2025-10-20T18:42:34.139Z",
"updatedAt": "2025-10-20T18:42:34.139Z",
"_links": {
"payment_charge": {
"href": "/v1/payment-charges/charge_gqa1LvctiLWgPfFPSgb0k"
}
}
}Failure reasons
| failureCode | failureMessage |
|---|---|
NOT_SUPPORTED | Discard operation request not permitted for payment method: |
SIMULTANEOUS_OPERATION_IN_PROGRESS | An earlier payment charge operation is still being processed |
GENERIC_DECLINE | Unexpected charge status while processing discard request: |
Updated about 9 hours ago