Balance Inquiry
The function of this service is to allow a balance inquiry with the previously obtained Security Token.
Ambiente | EndPoint | Método |
Desarrollo | https://api.dev.alignet.io/onboarding/payfac/{id}/account/balance/monnet | GET |
Producción | https://api.alignet.io/onboarding/payfac/{id}/account/balance/monnet | GET |
Request Headers
Cabecera | Valor | Requerido |
Content-Type | application/json | SI |
Authorization | Bearer <Access_Token> | SI |
"Content-Type":"application/json",
"Authorization":"Bearer yJhbGciOiJSUzI1NsInR5cCI6IkpXVCIsImt………",
Response
This request will respond with a similar response payload, where the balance will be given by the "total_balance" element.
{
"action": "pay_out_balance",
"balance": [
{
"bank_name": "Banco Continental",
"commerce_id": "12",
"commerce_name": "Comercio de Prueba",
"country": "PE",
"currency": "PEN",
"total_balance": 1000000000,
"total_expenditure_amount": 500000000,
"total_income_amount": 500000000
}
],
"meta": {
"metrics": {
"aggregate": {
"start": "1614875661264",
"end": "1614875672681",
"duration": {
"milliseconds": "1000",
"seconds": "1"
}
}
},
"status": {
"code": "00",
"message": "OK",
"message_ilgn": [
{
"locale": "es_PE",
"value": "Se encontro balance"
}
]
}
}
}