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
curl https://cotlet.dev/api/v1/alegra/bank-accounts \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("alegra", "list_bank_accounts")
Node.js
const result = await cotlet.call('alegra', 'list_bank_accounts');
CLI
cotlet call alegra list_bank_accounts

Example response

JSON

{
  "bank_accounts": [
    {
      "bank_account_id": "2",
      "name": "Bancolombia",
      "type": "bank"
    },
    {
      "bank_account_id": "1",
      "name": "Caja general",
      "type": "cash"
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.