Consult agency balance
To check the balance of an agency, send a GET request to the following endpoint. This will return the current balance information for the specified agency.
GET https://[base_url]/v2/preloaded-balance/agencies/{agency_id}
Query parameters
| PARAMETERS | TYPE | REQ. | DESCRIPTION |
|---|---|---|---|
| agency_id | Integer | Yes | The unique ID of the agency |
Body
Request using the POST method, this endpoint creates a new agency
{
"amount": 300000,
"currency": "COP"
}
Body parameters
| PARAMETER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
amount |
Float | Yes | The amount to be recharged |
currency |
String | Yes | The currency for the recharge (must be COP) |
Endpoint response
{
"msg": "Link de pago generado exitosamente",
"url": "https://app.autocore.pro/payment/preloaded-balance/PB_l1hw23vb9a",
"code": "PB_l1hw23vb9a"
}