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

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

Example response

JSON

{
  "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
}

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.