List invoices

Sales invoices for a date range, with totals, payment and KSeF status.

GET https://cotlet.dev/api/v1/ifirma/invoices

read

Returns invoices issued in the range you choose. Each item has number, buyer, issue and due date, gross amount, currency, amount paid, draft and sent flags, and the KSeF number and status. Without date_to the range is 30 days from date_from. Pages hold 20 results unless you set per_page.

Parameters

Parameters: list_invoices
NameTypeDescription
date_from string required string YYYY-MM-DD, the first issue date.
date_to string string YYYY-MM-DD. Default: 30 days after date_from.
status string string overdue, unpaid, partly_paid or paid. Several values can be joined with commas.
contractor_id string string Contractor ID from list_contractors.
nip string string Buyer tax number (NIP).
min_amount number number Smallest document value.
max_amount number number Largest document value.
page integer integer Page number. Default: 1.
per_page integer integer Results per page. Default: 20.

Request

cURL
curl "https://cotlet.dev/api/v1/ifirma/invoices?date_from=date+from" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("ifirma", "list_invoices", {"date_from":"date from"})
Node.js
const result = await cotlet.call('ifirma', 'list_invoices', {"date_from":"date from"});
CLI
cotlet call ifirma list_invoices --data '{"date_from":"date from"}'

Example response

JSON

{
  "invoices": [
    {
      "id": 7020118,
      "number": "41/2026",
      "buyer": "Blue Fern Studio",
      "contractor_id": "c_4817",
      "issue_date": "2026-10-14",
      "due_date": "2026-10-28",
      "gross": 1230,
      "currency": "PLN",
      "paid": 0,
      "draft": false,
      "sent": false,
      "ksef_status": null
    },
    {
      "id": 7020104,
      "number": "39/2026",
      "buyer": "Harbor Print Ltd",
      "contractor_id": "c_4832",
      "issue_date": "2026-09-18",
      "due_date": "2026-10-02",
      "gross": 800,
      "currency": "PLN",
      "paid": 0,
      "draft": false,
      "sent": true,
      "ksef_status": "accepted"
    }
  ],
  "page": 1
}

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.