• Callback Response
  • Getting Started
    • Mobile Integration (Android/IOS)
      Enterprise Solutions
      Retail Solutions
      Accept Payments
      Process Payments
      Disbursals
      API References
      Refunds
      Guides
      Other links
      Mini Program Platform
  • Features for Investments PG
  • 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: eyJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiZGlyIn0..xxxxxxxxxxx.9iHTtWbCZ0I6qbn2sUnyz5siw1fqbmtEnFMFE7nSIX-yrwCkiGfAC6QmPr9q-tw8LMPOh5-3UXRbpeVZEupQd3wNyaArWybRX2HAxJDRD8mxJ_wxzJM6GZ1ov4O3EIsx2Y_Zr0aHCd3VbnTjRUnlVdxXJPFG8QZs0b_2TVdoAX3_QjZS8_dwcmIWoH8ebDzOIs7MJacETfMtyFGAo8Xc0LjznToUWvTsTbIXQoF1yB0.1fZFAYJVsY61BTv2htLcXQ8800'