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

      Revoke Access API

      Use Case


      This API is used for expiring user's token. This is required when a customer deletes/delink his/her account or logs in with a new mobile number in your application


      Request Attributes

      API Content format: JSON

      Header

      PARAMETERDESCRIPTIONREQUIRED
      AuthorizationThis is a base64 encoded string of "clientId:clientSecret"
      e.g. Basic xxxxxxxxxx
      Yes
      access_tokenThis is the user’s access token.
      e.g. 003d34901c47-3217-4e92-a291-5ef84a00de1e
      Yes

      Body

      • Request body is not required for this API.

      • It should be handled on HTTP response codes only.

      Response Attributes

      HTTP CODEDESCRIPTION
      200Access token successfully deleted.
      404Access token not found.
      401Authorization header invalid.

      Endpoints

      Staging: https://accounts-uat.paytm.com/oauth2/accessToken

      Production: https://accounts.paytm.com/oauth2/accessToken

      Request Code
      curl -I -X DELETE 'https://accounts-uat.paytm.com/oauth2/accessToken' --header 'Authorization: Basic {base64-encoded-client-id-and-client-secret}' --header  'access_token: {access-token}'