cURL
curl --request POST \ --url https://api.paytring.com/api/v2/order/refund \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data '{ "key": "<string>", "id": "<string>", "hash": "null" }'
"{\n \"status\": true,\n \"message\": \"Refund has been initiated\",\n \"id\": \"xxxxxx-xxxx\"\n}"
This API can trigger refund for any order of any pg.
{ "key": "string", // Merchant API key "id": "string", // Order ID "hash": "string" // Calculated hash for request validation }
{ "status": true, "message": "Refund has been initiated", "id": "string" }
{ "status": false, "error": { "message": "Invalid request", "code": 400 } }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
200
The response is of type object.
object