S2SCallback
post https://mercury-uat.phonepe.com/testing/S2SCallback/

Request Headers

Header NameHeader Value
Content-Typeapplication/json
X-CALLBACK-URLCallback Url where a request will be made once user responds
to collect request
X-CALL-MODEHTTP mode for the callback is specified in header X-CALL-MODE
X-SALT-KEYBy default, the salt key will be 1

Request Parameters

Parameter NameTypeDescriptionMandatory
merchantIdSTRINGUnique Merchant ID assigned to the merchant by PhonePeYes
transactionIdSTRINGMerchant transactionID for which S2S callback is to be doneYes
amountLONGTransaction amount in paise. It should be greater than 1 rsYes
{“method”:”post”,”url”:”/testing/S2SCallback/”,”auth”:”required”,”results”:{“codes”:[{“name”:null,”code”:”{\n \”success\”: true,\n\t\”code\”: \”SUCCESS\”,\n\t\”message\”: \”Your request has been successfully completed.\”,\n\t\”data\”: {\n\t\t\”successful\”: true,\n\t\t\”redirect\”: false\n\t}\n}”,”language”:”json”,”status”:200},{“name”:””,”code”:”{\n \”success\”: false,\n \”code\”: \”BAD_REQUEST\”,\n \”message\”: \”must be greater than or equal to 1.\”,\n \”data\”: {}\n}”,”language”:”json”,”status”:400},{“code”:””,”language”:”text”},{“code”:”{\n\”success\”: false,\n\t\”code\”: \”INTERNAL_SERVER_ERROR\”,\n\t\”message\”: \”There is an error trying to process your transaction at the moment. Please try again in a while.\”,\n\t\”data\”: {}\n}”,”language”:”json”,”status”:500}]},”params”:[{“name”:”merchantId”,”type”:”string”,”enumValues”:””,”default”:””,”desc”:”Unique Merchant ID assigned to the merchant by PhonePe”,”required”:true,”in”:”body”,”ref”:””,”_id”:”5e7dc73c845bc302e14b5b67″},{“name”:”transactionId”,”type”:”string”,”enumValues”:””,”default”:””,”desc”:”Merchant transaction id for which S2S callback is to be done”,”required”:true,”in”:”body”,”ref”:””,”_id”:”5e7dc73c845bc302e14b5b66″},{“name”:”amount”,”type”:”long”,”enumValues”:””,”default”:””,”desc”:”Transaction amount in paise”,”required”:true,”in”:”body”,”ref”:””,”_id”:”5e7dc73c845bc302e14b5b65″},{“name”:”Content-Type”,”type”:”string”,”enumValues”:””,”default”:”application/json”,”desc”:””,”required”:true,”in”:”header”,”ref”:””,”_id”:”5e7dc73c845bc302e14b5b64″},{“name”:”Accept”,”type”:”string”,”enumValues”:””,”default”:”application/json”,”desc”:””,”required”:false,”in”:”header”,”ref”:””,”_id”:”5e7dc73c845bc302e14b5b63″},{“name”:”x-callback-url”,”type”:”string”,”enumValues”:””,”default”:””,”desc”:”Callback url of the merchant”,”required”:true,”in”:”header”,”ref”:””,”_id”:”5e7dc73c845bc302e14b5b62″},{“name”:”x-call-mode”,”type”:”string”,”enumValues”:””,”default”:””,”desc”:”HTTP mode to be used for callback. Values are POST/PUT”,”required”:true,”in”:”header”,”ref”:””,”_id”:”5e7dc73c845bc302e14b5b61″},{“name”:”x-salt-index”,”type”:”string”,”enumValues”:””,”default”:”1″,”desc”:””,”required”:true,”in”:”header”,”ref”:””,”_id”:”5e7dc73c845bc302e14b5b60″}],”examples”:{“codes”:[]},”apiSetting”:”5ecf9143b5bd210023b3b738″}
https://mercury-uat.phonepe.com

HEADERS
Content-Type string required
Accept string
x-callback-url string required
Callback url of the merchant
x-call-mode string required
HTTP mode to be used for callback. Values are POST/PUT
x-salt-index string required

BODY PARAMS
merchantId string required
Unique Merchant ID assigned to the merchant by PhonePe
transactionId string required
Merchant transaction id for which S2S callback is to be done
amount long required
Transaction amount in paise

RESPONSES