Skip to main content
Skip table of contents

Delete Token

The function of this service is to receive a token as a get parameter in the URL in order to delete it so that it cannot be used again.

Environment

EndPoint

Method

Desarrollo

https://api.dev.alignet.io/tokens

DELETE

Producción

https://api.alignet.io/tokens

DELETE

The token is received as a parameter in the URL:

Example: https://api.dev.alignet.io/tokens/1c9b-c1f8-4f16-4444

Request Headers

Header

Value

Required

ALG-API-VERSION

API version to be used. Available values:

1618440906

Yes

Authorization

Bearer <Access_Token>

Yes

ALG-INTERNAL_OPERATION_NUMBER

Number to identify the request

No

JSON
"ALG-API-VERSION":"1618440906",
"Authorization":"Bearer JhbGciOiJSUzI1NsInR5cCI6IkpXVCIsImt………",
"ALG-INTERNAL_OPERATION_NUMBER":"0000001425",

Response

Parameter

Description

action

Process performed, in this case is "destroy-token".

success

Result of the operation:

True: processed successfully.

False: not processed successfully.

transaction.meta.commerce_id

Merchant ID.

transaction.meta.internal_operation_number

Internal merchant operation number.

transaction.meta.status.code

Code associated with the operation status.

transaction.meta.status.message_ilgn.locale

Regional settings defining language and country.

transaction.meta.status.message_ilgn.value

Message resulting from the process.

JSON
{
    "action": "destroy-token",
    "success": "true",
    "transaction": {
        "meta": {
            "commerce_id": "9011",
            "internal_operation_number": "654321",
            "status": {
                "code": "00",
                "message_ilgn": [
                    {
                        "locale": "es_PE",
                        "value": "El token fue eliminado satisfactoriamente"
                    }
                ]
            }
        }
    }
}

Continue to Get Plans and Installments ➡️

JavaScript errors detected

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

If this problem persists, please contact our support.