Update Transaction
PUT
/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
:::
Request
Transaction ID. Get a list of Transaction IDs from here
Action to be performed on the transaction; actions from the enum values only are allowed.
Transaction Amount value.
Transaction Amount Currency value.
{
"action": "refund",
"amount": 0,
"currency": "string"
}
Request samples
Responses
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
A text or data communication generated by a system or application in response to a request.
A numerical or alphanumeric identifier used in various systems and protocols to indicate the status or outcome of a specific request.
{
"status": 201,
"success": true,
"data": {
"message": "Invoice Partially Refunded successfully",
"code": 201
}
}