KashierDevelopersKashier Developers

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
Authorization<token>

Your secret key from the Kashier dashboard. Send the raw key value in the Authorization header, without a Bearer prefix.

In: header

Path Parameters

orderId*string

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

PUT
/v3/payment/reversal/{orderId}