<html-block html=”
“>
Header Name | Header Value |
---|---|
Content-Type | application/json |
X-VERIFY | SHA256(base64 encoded payload + ‘/v3/merchant/token/unlink’ + salt key) + ‘###’ + salt index |
{
"merchantId": "MID",
"userAuthToken": "TXN12345"
}
{
"request" : "ew0KCeKAnG1lcmNoYW50SWTigJ06IOKAnE1JROKAnQ0KCeKAnHVzZXJBdXRoVG9rZW7igJ06IOKAnFRYTjEyMzQ14oCdLA0KfQ0K"
}
<html-block html=”
“>
Parameter Name | Type | Description |
---|---|---|
merchantId | string | Unique merchantId assigned to merchant. |
userAuthToken | string | Auth token for the user |
<html-block html=”
“>
Parameter Name | Type | Description |
---|---|---|
success | boolean | Denotes if API call is successful. |
code | string | See below for list of values |
data | Object | See below table |
<html-block html=”
“>
Code Value | Description |
---|---|
SUCCESS | Success scenario |
AUTHORIZATION_FAILED | Value of X-VERIFY is incorrect |
BAD_REQUEST | Invalid request payload |
INTERNAL_SERVER_ERROR | The server is busy or the server is not responding |
USER_BLACKLISTED | Customer is blacklisted on PhonePe side |
INVALID_USER_AUTH_TOKEN | The userAuthToken provided is either invalid or not mapped to merchant. |
<html-block html=”
“>
Parameter Name | Type | Description |
---|---|---|
merchantId | string | merchantId assigned to merchant. |
userAuthToken | string | The disabled Auth token for the user |
{“method”:”post”,”url”:”/v3/merchant/token/unlink”,”auth”:”required”,”apiSetting”:”5ecf9143b5bd210023b3b738″,”examples”:{“codes”:[]},”results”:{“codes”:[{“name”:”Success Response”,”code”:”{\n \”success\”: true,\n \”code\”: \”SUCCESS\”,\n \”message\”: \”Your request has been successfully completed.\”,\n \”data\”: {\n \”merchantId\”: \”M2306160483220675579140\”,\n \”userAuthToken\”: \”M23061604832206755791408c38b65b84314a3293b8eb9a5ad43079\”\n }\n}\n”,”language”:”json”,”status”:200},{“name”:””,”code”:”{}”,”language”:”json”,”status”:400}]},”params”:[{“name”:”request”,”type”:”string”,”enumValues”:””,”default”:””,”desc”:”base64 encoded payload”,”required”:true,”in”:”body”,”ref”:””,”_id”:”5a97e36dfd23730045ac1657″},{“name”:”Content-Type”,”type”:”string”,”enumValues”:””,”default”:”application/json”,”desc”:””,”required”:true,”in”:”header”,”ref”:””,”_id”:”5a97e36dfd23730045ac1656″},{“name”:”X-VERIFY”,”type”:”string”,”enumValues”:””,”default”:””,”desc”:”sha256(base64encodedRequest + \”/v3/merchant/token/unlink\” + saltKey) + \”###\” + saltIndex”,”required”:true,”in”:”header”,”ref”:””,”_id”:”5a97e36dfd23730045ac1655″}]}
https://mercury-uat.phonepe.com