• 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 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.
      Note: Response should be handled on HTTP response codes only.

      Header

      ATTRIBUTE DESCRIPTION
      Authorization mandatory This is a base64 encoded string of “clientId:clientSecret”
      e.g. Basic xxxxxxxxxx
      access_token mandatory This is the user’s access token. e.g. 003d34901c47-3217-4e92-a291-5ef84a00de1e

      Response Codes and Messages


      HTTP CODEDESCRIPTION
      200Access token successfully deleted.
      404Access token not found.
      401Authorization header invalid.
      StagingProduction
      REQUESTRESPONSE
      curl -I -X DELETE 'https://accounts-uat.paytm.com/oauth2/accessToken' \
      --header 'Authorization: Basic {base64-encoded-client-id-and-client-secret}' \
      --header 'access_token: ae74f8b5-be5f-4503-XXXX-a60c9dcd3300'