Void an order
curl -X PUT "https://test-api.kashier.io/v3/payment/void/string" \ -H "Content-Type: application/json" \ -d '{ "apiOperation": "VOID", "transaction": { "amount": 3, "targetTransactionId": "TX-XXXXXXXXXX" } }'{ "response": {}, "transactionId": "string", "messages": { "en": "string", "ar": "string" }, "status": "string"}Cancels a transaction on the order before it settles — the clean undo while the money
has not actually moved yet. Use it to cancel a pay, an authorization, a capture or a
refund; pass the targetTransactionId you got back from the transaction you are
cancelling. Once the transaction has settled, void no longer applies and you need a
refund instead.
The same operation as PUT /v3/orders/{orderId} with apiOperation: VOID.
Send your secret key in the Authorization header. Like refund, this requires the
Transactions Write permission on the key.
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 void.
TypeScript Definitions
Use the request body type in TypeScript.
Void (cancel) a transaction of the order, fully or partially.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
Refund an order PUT
Repays your customer, in part or in full, from your available Kashier balance. This is the same operation as PUT /v3/orders/{orderId} with apiOperation: REFUND. Send your secret key in the Authoriz…
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…