Payments
Void a payment
Voids a payment if supported by the payment method.
For card payments, void requests are processed asynchronously. You can use workflows to be notified if the void is successful.
post/payments/{id}/voids
Request
- Base URLhttps://{prefix}.api.sandbox.checkout.com
- Auth
- OAuth 2Client credentialsToken URLstringScopesgateway, gateway:payment-voids
- or API key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
The payment identifier
Headers
Cko-Idempotency-Keystring
An optional idempotency key for safely retrying payment requests
Request body
Example request
{
"amount": 6540,
"reference": "ORD-5023-4E89",
"metadata": {
"coupon_code": "NY2018",
"partner_id": 123989
}
}Response
Payment is already voided
Example response
{
"action_id": "act_y3oqhf46pyzuxjbcn2giaqnb44"
}Changes
No recorded changes to this operation across all 1 revision of this API.