search

GETValidate Token API

Use Case

This API is used to validate the Paytm user’s SSO token. If the token is expired, then the API returns Invalid token error. The issued token can expire due to one of the following reasons:

  • Token expires as per its validity date
  • User revokes access for the particular merchant by logging in on Paytm.com
  • User changes her password by clicking “forgot password” on Paytm.com
  • User “signs" out from all active sessions
     

Header

ATTRIBUTE DESCRIPTION

session_token

mandatory

This is the user’s access token

Response Attributes

Success Response

ATTRIBUTE DESCRIPTION
Id customer id
Example: 123456
email user’s email address
Example: example@gmail.com
mobile user’s phone number
Example: 5558889990
expires UNIX expiry time of token
Example: 1429175369162

 

Error Responses

ATTRIBUTE DESCRIPTION
status Response status
Example: FAILURE
responseCode Response code
Example: 530
message Error reason
Example: Invalid Token

Response Codes and Messages

ERROR CODES

responseCode message
530 Invalid Token
434 Bad Request
Staging
Production
https://accounts-uat.paytm.com/user/detailscopy icon
REQUEST
RESPONSE
CURL
JAVA
NODE
PHP
PYTHON
DOTNET
curl -X GET 'https://accounts-uat.paytm.com/user/details' \
--header 'session_token: eyJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiZGlyIn0..xxxxxxxxxxx.9iHTtWbCZ0I6qbn2sUnyz5siw1fqbmtEnFMFE7nSIX-yrwCkiGfAC6QmPr9q-tw8LMPOh5-3UXRbpeVZEupQd3wNyaArWybRX2HAxJDRD8mxJ_wxzJM6GZ1ov4O3EIsx2Y_Zr0aHCd3VbnTjRUnlVdxXJPFG8QZs0b_2TVdoAX3_QjZS8_dwcmIWoH8ebDzOIs7MJacETfMtyFGAo8Xc0LjznToUWvTsTbIXQoF1yB0.1fZFAYJVsY61BTv2htLcXQ8800'

 

copy icon