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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"status":"\u003cnumber\u003e","success":"\u003cboolean\u003e","data":{"message":"\u003cstring\u003e","code":"\u003cnumber\u003e"}}