Reverse an order
curl -X PUT "https://test-api.kashier.io/v3/payment/reversal/string" \ -H "Content-Type: application/json" \ -d '{ "apiOperation": "REVERSAL" }'{ "response": {}, "transactionId": "string", "messages": { "en": "string", "ar": "string" }, "status": "string"}Reverses a transaction at the rail level. This is the card-present and BNPL undo — for an ordinary online card sale reach for void (before settlement) or refund (after) instead, which is almost always what you want.
The same operation as PUT /v3/orders/{orderId} with apiOperation: REVERSAL.
Send your secret key in the Authorization header.
Authorization
secretKey Your secret key from the Kashier dashboard. Send the raw key value in the Authorization header, without a Bearer prefix.
In: header
Path Parameters
Kashier's order id.
Request Body
application/json
The request body for a reversal.
TypeScript Definitions
Use the request body type in TypeScript.
Reverse a transaction on the order. Reversal is used mainly by card-present and BNPL flows; for an ordinary online card sale you want VOID (before settlement) or REFUND (after).
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
Capture an authorized order PUT
Takes the money on an order you previously authorized, fully or partially. Capture before the hold expires — 7 or 30 days depending on your configuration — or the authorization lapses and the funds…
Pay with token POST
Creates a new payment request using a saved card token. Send the Kashier-Hash header (order hash generated with HMAC SHA256 from your backend). With interactionSource: ECOMMERCE and 3DS enabled, th…