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

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

      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'