Skip to main content
Skip table of contents

API Revoke Refresh Token

The function of this service is to revoke a "Refresh Token".

Environment

EndPoint

Method

Development

https://auth.wip.alignet.io/revoke

POST

Pre-Production

https://auth.pp.alignet.io/revoke

POST

Production

https://auth.alignet.io/revoke

POST

Headers

Header

Value

Required

Content-Type

application/json

Yes

ALG-API-VERSION

Versión del API a utilizar. Valores disponibles: 1618440906

Yes

JSON
"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:

https://api.dev.alignet.io

https://api.alignet.io

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

JSON
{
   "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.

JSON
{
   "action":"revoke",
   "success":true,
   "revoke":{
      "meta":{
         "status":{
            "code":"00",
            "message_ilgn":[
               {
                  "locale":"es_PE",
                  "value":"Refresh Token eliminado"
               }
            ]
         }
      }
   }
}

Continue to API Nonce ➡️

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.