Get PayIn Agent Payment / Bank Transfer
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..
Environment | EndPoint | Método |
Desarrollo | GET | |
Producción | GET |
The Operation Number is received as a parameter in the URL:
Request Headers
Header | Valor | Requerido |
Authorization | Bearer <Access_Token> | SI |
"Authorization":"Bearer eyJhbGciOiJSUzI1NsInR5cCI6IkpXVCIsImt………",
Response
{
"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.