Cancel Transfer API

The Cancel Transfer API command is used to cancel the queued transfer.

πŸ“˜

Note:

You can cancel a transfer until it is in the Queued/Scheduled status only. After the transaction gets transitioned to the In Progress (the next status to Queued), you cannot cancel it.

Environment

Sample request
curl -X POST \
 https://test.payumoney.com/payout/payment/cancel \
 -H 'authorization: bearer 45f87fed35bdafe9f47698ed03e202e282f873b79a57eb53a9d30247b376f01d' \
 -H 'content-type: application/x-www-form-urlencoded' \
 -H 'payoutmerchantid: 1111122' \
 -d merchantRefId=1584856958885
Sample response

Success response

{
 "status": 0,
 "msg": "Payout transaction cancelled",
 "code": null,
 "data": null
 }

Failure response

{
 "status": 1,
 "msg": "Merchant reference Id is incorrect",
 "code": null,
 "data": null
 }

Header and request parameters

πŸ“˜

Note:

The payoutMerchantId is different from PayU Merchant Id. Check the Payouts Dashboard or call the PayU Customer Support if you don’t know your payoutMerchantId.

πŸ“˜

Reference:

For sample request and response, refer to Sample Request and Response for Initiation & Tracking APIs.

Language
Credentials
Bearer
URL
Click Try It! to start a request and see the response here!