API Revoke Refresh Token
The function of this service is to revoke a "Refresh Token".
Environment  | EndPoint  | Method  | 
Development  | POST  | |
Pre-Production  | POST  | |
Production  | POST  | 
Headers
Header  | Value  | Required  | 
Content-Type  | application/json  | Yes  | 
ALG-API-VERSION  | Versión del API a utilizar. Valores disponibles: 1618440906  | Yes  | 
"Content-Type":"application/json",
"ALG-API-VERSION":"1618440906",
Request
Parameter  | Type  | Long.  | Description  | Req.  | 
action  | String  | -  | The intent of the merchant. In this case it is "revoke".  | Yes  | 
client_id  | String (AN)  | 100  | ID assigned to the merchant. Value provided by Pay-me.  | Yes  | 
client_secret  | String (AN)  | 100  | Secret assigned to the merchant. Value provided by Pay-me.  | Yes  | 
audience  | String  | -  | Unique identifier of the APIs Tokens and Charges to which access is requested. Available values:  | Yes  | 
username  | String (AN)  | 100  | User of the merchant requesting access. Value provided by Pay-me.  | No  | 
refresh_token  | String (AN)  | 100  | Value of the Refresh Token that will be used to generate more Access Tokens.  | Yes  | 
{
   "action":"revoke",
   "username":"commerce@email.com",
   "refresh_token":" OqLWq5BoSm3ZHbfaY_D3J_XuKB1TOdrHl7Ui_0sdLF1",
   "audience":"https://api.dev.alignet.io",
   "client_id":"yhaPE3jtHXHMKUZBBFr9QS1x1FaXxr",
   "client_secret":"uTCetT3d4T-1NgXyTO66C0850xLJ5c7CwoyXm23NALxZ-MbwQxkqs1Q9ThwWfE"
}
Response
Parameter  | Description  | 
action  | Process performed, in this case "revoke".  | 
success  | Result of the operation: true: Processed successfully. false: Not processed successfully.  | 
revoke.meta.status.code  | Code associated with the status of the operation. Available values: 00: In case of success 01: In case of error  | 
revoke.meta.status.message_ilgn.locale  | Configuration of the language used for the status code message.  | 
revoke.meta.status.message_ilgn.value  | Message resulting from the process.  | 
{
   "action":"revoke",
   "success":true,
   "revoke":{
      "meta":{
         "status":{
            "code":"00",
            "message_ilgn":[
               {
                  "locale":"es_PE",
                  "value":"Refresh Token eliminado"
               }
            ]
         }
      }
   }
}
Continue to API Nonce ➡️