Get invoice

One invoice with its line items, buyer, payments and KSeF fields.

GET https://cotlet.dev/api/v1/fakturownia/invoices/{invoice_id}

read

Returns one invoice with its positions, buyer and seller data, status and the payments linked to it. When KSeF is on for the account, it also returns gov_status and the KSeF number.

Parameters

Parameters: get_invoice
NameTypeDescription
invoice_id integer required integer Invoice ID from list_invoices.

Request

cURL
curl https://cotlet.dev/api/v1/fakturownia/invoices/1 \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("fakturownia", "get_invoice", {"invoice_id":1})
Node.js
const result = await cotlet.call('fakturownia', 'get_invoice', {"invoice_id":1});
CLI
cotlet call fakturownia get_invoice --data '{"invoice_id":1}'

Example response

JSON

{
  "id": 5120,
  "number": "14/10/2026/1",
  "kind": "vat",
  "status": "issued",
  "buyer_name": "Blue Fern Studio",
  "client_id": 4817,
  "positions": [
    {
      "name": "Website retainer",
      "quantity": 2,
      "tax": "23",
      "total_price_gross": "1230.00"
    }
  ],
  "price_net": "1000.00",
  "price_tax": "230.00",
  "price_gross": "1230.00",
  "currency": "PLN",
  "payment_to": "2026-10-28",
  "paid": "0.00",
  "gov_status": 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.