cURL
curl --request POST \ --url https://api.paytring.com/api/v2/order/refund/partial \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data '{ "key": "<string>", "id": "<string>", "amount": 123, "hash": "<string>" }'
"{\n \"status\": true,\n \"message\": \"ORDER_PARTIALLY_REFUNDED_SUCCESSFULLY\",\n \"id\": \"xxxxxxxxxxx\"\n}"
This API can trigger partial refund for any order of any pg.
{ "key": "string", // Merchant API key "order_id": "string", // Order ID "amount": 50, // Amount to refund "hash": "string" // Calculated hash for request validation }
{ "status": true, "message": "Partial refund initiated successfully", "refund_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