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

      post 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.


      Header

      ATTRIBUTE DESCRIPTION MANDATORY
      session_token This is the user’s access token Yes

      Response Attributes


      Success Response

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

      Error Responses

      ATTRIBUTE DESCRIPTION EXAMPLE VALUE
      status Response status FAILURE
      responseCode Response code 530
      message Error reason Invalid Token

      Response Codes and Messages


      ERROR CODES

      responseCodemessage
      530Invalid Token
      434Bad Request
      StagingProduction
      REQUESTRESPONSE
      curl -X GET 'https://accounts-uat.paytm.com/user/details' \
      --header 'session_token: ae74f8b5-be5f-4503-XXXX-a60c9dcd3300'