Skip to main content
Skip table of contents

PayIn Alternative Card Payment Consultation

The function of this service is to receive a Transaction Number as a get parameter in the URL to identify a transaction and return the associated data.

Ambiente

EndPoint

Método

Desarrollo

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

GET

Producción

https://api.alignet.io/charges

GET

The Operation Number is received as a parameter in the URL:

Request Headers

Cabecera

Valor

Requerido

Authorization

Bearer <Access_Token>

SI

CODE
"Authorization":"Bearer eyJhbGciOiJSUzI1NsInR5cCI6IkpXVCIsImt………",

Response

CODE
{
  "success": true,
  "result": "notified",
  "error_code": "00",
  "error_message": "Usuario fue notificado",
  "operation_number": "127263",
  "purchase_amount": "10000",
  "purchase_currency_code": "PEN",
  "purchase_ip_address": "191.1.1.1",
  "transaction": {
    "meta": {
      "commerce_id": "10",
      "internal_operation_number": "127263",
      "additional_fields": [],
      "metrics": {
        "aggregate": {
          "start": "1614875661264",
          "end": "1614875672681",
          "duration": {
            "milliseconds": "1000",
            "seconds": "1"
          }
        }
      },
      "status": {
        "code": "00",
        "message_ilgn": [
          {
            "locale": "es_PE",
            "value": "Se encontró la información solicitada"
          }
        ]
      }
    },
    "lifecycle": []
  }
}

The response exposes the complete and ordered lifecycle of the transaction. To quickly obtain the last state, iterate over the life cycle matrix and extract the last value.

 

JavaScript errors detected

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

If this problem persists, please contact our support.