List payments
Payments received or made, with date, method, bank account and the invoices each one settled.
GET https://cotlet.dev/api/v1/alegra/payments
read
Lists payments as Alegra records them. Type in is money received from a client, type out is money paid out. Each item names the invoices it settled with the amount applied. Pass next_cursor back as cursor for the next page.
Parameters
| Name | Type | Description |
|---|---|---|
| type enum | enum | in (received) or out (paid out). |
| client_id string | string | Only payments of this contact. |
| date_from date | date | Only payments on or after this day, YYYY-MM-DD. |
| date_to date | date | Only payments on or before this day, YYYY-MM-DD. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/alegra/payments \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("alegra", "list_payments") const result = await cotlet.call('alegra', 'list_payments'); cotlet call alegra list_payments Example response
{
"payments": [
{
"payment_id": "309",
"type": "in",
"date": "2026-10-13",
"payment_method": "transfer",
"bank_account": {
"bank_account_id": "2",
"name": "Bancolombia"
},
"client": "Lumen Dental",
"invoices": [
{
"invoice_id": "1033",
"number": "FV-0033",
"amount": 480
}
]
}
],
"next_cursor": null
}