Update Transaction

PUT {{baseUrl}}/transactions/:transaction_id

This endpoint allows you to refund, void, or reverse a transaction by passing the transaction_id as a path parameter. The endpoint also supports partial refunds.

:::caution The store must have enough balance to process the refund amounts :::

transactions.read_write- Transactions Read & Write

Request Body

{"action"=>"refund", "amount"=>"<number>", "currency"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;status&quot;:&quot;\u003cnumber\u003e&quot;,&quot;success&quot;:&quot;\u003cboolean\u003e&quot;,&quot;data&quot;:{&quot;message&quot;:&quot;\u003cstring\u003e&quot;,&quot;code&quot;:&quot;\u003cnumber\u003e&quot;}}