List bank accounts
Bank and cash accounts in Alegra with the ID needed to record a payment.
GET https://cotlet.dev/api/v1/alegra/bank-accounts
read
Returns the accounts a payment can be booked to, with name and type. Use bank_account_id from each item in record_payment. The list shows accounts only and no balances or transactions.
Parameters
No parameters.
Request
curl https://cotlet.dev/api/v1/alegra/bank-accounts \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("alegra", "list_bank_accounts") const result = await cotlet.call('alegra', 'list_bank_accounts'); cotlet call alegra list_bank_accounts Example response
{
"bank_accounts": [
{
"bank_account_id": "2",
"name": "Bancolombia",
"type": "bank"
},
{
"bank_account_id": "1",
"name": "Caja general",
"type": "cash"
}
]
}