Validate Token API

Use Case


This API is used for validate and fetch information from user SSO token, If any token is expired then this API returns the Invalid Token error

The token issued can expire due to any of the following reasons -

  • Token expires as per its validity date
  • User revokes access for 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.

Request Attributes

API Content format: JSON

Header:


PARAMETERDESCRIPTIONREQUIREDEXAMPLE VALUE
session_tokenThis is the user’s access tokenYes003d34901c47-3217-4e92-a291-5ef84a00de1e

Response Attributes

API Content format: JSON

Success Response


PARAMETERDESCRIPTIONEXAMPLE VALUE
Idcustomer id123456
Emailuser’s email addressexample@gmail.com
Mobileuser’s phone number5558889990
ExpiresUNIX expiry time of token1429175369162

Error Responses:


PARAMETERDESCRIPTIONEXAMPLE VALUE
StatusResponse statusFAILURE
responseCodeResponse code530
MessageError reasonInvalid Token

ERROR CODES

530Invalid Token
434Bad Request

Endpoints

Staging: https://accounts-uat.paytm.com/user/details

Production: https://accounts.paytm.com/user/details

Request CodeResponse JSON
CURLs -H "session_token: 003d34901c47-3217-4e92-a291-5ef84a00de1e" '/user/details'