Refund a transaction
POST
/v1/refund
Merchant can also manually refund a transaction in Merchant Portal.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test.your-api-server.com/v1/refund' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-raw '{
"merchant_id": "{{merchant_id}}",
"account_id": "{{account_id}}",
"encryption_data": "e0570d4ba9730c85815363401fc6c0cd1501b3919c820a524529a40d0f1bfad7",
"refund_orders":[
{
"transaction_id": "1379868618653958144",
"order_no": "1731469069933",
"currency": "USD",
"amount": "10.36",
"refund_amount": "3.33",
"refund_reason": "Interface Test"
}
]
}'
Response Response Example
{
"account_id": "701001010",
"refund_orders": [
{
"amount": "10.36",
"currency": "USD",
"order_no": "1731469069933",
"refund_amount": "3.33",
"refund_message": "V0000:OK",
"refund_reason": "Interface Test",
"refund_reference": "",
"refund_reference_id": "1379868618653958144-01",
"refund_status": "1",
"transaction_id": "1379868618653958144"
}
],
"return_message": "OK",
"return_status": "1",
"encryption_data": "e0570d4ba9730c85815363401fc6c0cd1501b3919c820a524529a40d0f1bfad7",
"merchant_id": "701001"
}
Request
Header Params
Content-Type
string
required
Example:
application/x-www-form-urlencoded
Body Params application/json