curl --location --request POST '/api/v1/refund' \
--header 'Content-Type: application/json' \
--data-raw '{
"merchant": {
"id": "M-01K746TGTZ4Y5YJG5EPF3DE057",
"site-id": "S-01K746TJSGRJBZ2BK6MPX54AN8",
"password": "hwOmLFLWhbty",
"track-id": "408-867-5309",
"return-url": "https://example.com/return-url"
},
"refund": {
"id": "T-99JHTG4PVZ8GRCDM4PVZ8GRCDM",
"currency-code": "USD",
"amount": "12.34",
"reason": "Refund Reason. ( $12.34 )"
}
}'{
"type": "valid",
"merchant": {
"id": "M-01K746TGTZ4Y5YJG5EPF3DE057",
"site-id": "S-01K746TJSGRJBZ2BK6MPX54AN8",
"track-id": "408-867-5309"
},
"result": {
"status": "approved",
"code": 0,
"message": "Test Refund OK.",
"transaction-id": "T-88JMYMTBJAWZCZHEBHB8W26TC5",
"descriptors": null
}
}