Get a customer invoice

One customer invoice with its lines, payments and matched bank transactions.

GET https://cotlet.dev/api/v1/pennylane/invoices/{invoice_id}/customer-invoice

read

Returns one invoice with every line, the payments Pennylane recorded and the bank transactions matched to it. A payment is one made through Pennylane, such as the payment link; a matched transaction is one made outside Pennylane, such as a bank transfer. An invoice sent through e-invoicing also returns its e-invoicing status.

Parameters

Parameters: get_customer_invoice
NameTypeDescription
invoice_id integer required integer Invoice ID from list_customer_invoices or create_customer_invoice.

Request

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

Example response

JSON

{
  "invoice_id": 118277,
  "invoice_number": "F-2026-0131",
  "customer": {
    "customer_id": 4012,
    "name": "Brasserie du Port"
  },
  "status": "late",
  "deadline": "2026-10-08",
  "amount": "1368.00",
  "remaining_amount_with_tax": "1368.00",
  "lines": [
    {
      "label": "Menu consulting, September",
      "quantity": 12,
      "unit": "hour",
      "unit_price": "95.00",
      "vat_rate": 20,
      "amount_before_tax": "1140.00"
    }
  ],
  "payments": [],
  "matched_transactions": [
    {
      "transaction_id": 5529874,
      "date": "2026-10-10",
      "label": "VIR BRASSERIE DU PORT F-2026-0131",
      "amount": "1368.00"
    }
  ]
}

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.