Revoke Token API

The Revoke Token API (revoke_token) is used to revoke or delete the token generated earlier using the Get Token API. For more information, refer to Get Token API - Payment Links.

HTTP Method: POST

Environment

Request parameters

Parameters Description Example

client_id
mandatory

String This parameter must contain the public identifier of the client to access the platform.

{client_id}

client_secret
mandatory

String This parameter must contain a unique secret of the client for authorization.

{client_secret}

token

StringThis parameter must contain the token that must be revoked.

{token}

Sample request

curl --location -g --request POST 'https://uat-accounts.payu.in/revoke' \
--header 'merchantId: `{merchantId}`' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer `{access_token}`'