• Getting Started
    • Website Integration
      Mobile Integration (Android/IOS)
      Enterprise Solutions
      Accept Payments
      Process Payments
      Disbursals
      API References
      Webhooks
      Testing
      Refunds
      Guides
      Other Processes

      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

      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
      curl -X GET 'https://accounts-uat.paytm.com/user/details' --header 'session_token: {paytm-user-token}'