Pennylane
Accounting: customer and supplier invoices, banks and ledger entries
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- Company API tokenSecretRequired
Where to find them
- With an administrator user, in Pennylane open “Paramètres” → “Connectivité” → “Développeurs” (in English, “Settings” → “Connectivity” → “Developers”) and click “Générer un token API”.
- Name it, set an expiration and select the permissions, as read-only (“readonly”) or read and write (“all”): e.g. customer_invoices, supplier_invoices, customers, suppliers, transactions, journals, ledger_accounts and ledger_entries.
- Copy the token: it is shown only once. With an accounting firm token, each request also needs the X-Company-Id header.
Tools (2)
Pennylane API request
PENNYLANE_SEND_REQUESTAuthenticated call to the Pennylane API (https://app.pennylane.com/api/external/v2). Any endpoint of the API is allowed. Filters as JSON in filter (operators eq, not_eq, lt, lteq, gt, gteq, in, not_in) and ordering with sort (e.g. -date). Examples: GET /customer_invoices?limit=50&sort=-date&filter=[{"field":"date","operator":"gteq","value":"2026-10-01"}] (better with PENNYLANE_LIST_INVOICES), GET /customer_invoices/{id}, GET /customers?limit=100, GET /supplier_invoices?limit=50, GET /suppliers, GET /transactions (bank transactions), GET /bank_accounts, GET /journals, GET /ledger_accounts, GET /ledger_entries?filter=[{"field":"date","operator":"gteq","value":"2026-01-01"}], GET /trial_balance?period_start=2026-01-01&period_end=2026-09-30 (trial balance), GET /products, GET /me. Cursor pagination: cursor=next_cursor while has_more is true (limit max. 100).
Required scopes
No scopes required
Input
Pennylane API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Invoices
PENNYLANE_LIST_INVOICESCustomer invoices (issued) or supplier invoices (received), from the most recent to the oldest: id, number, label, date, due date, amount, outstanding, status, contact and temporary PDF link. Filters by dates and by customer or supplier.
Required scopes
No scopes required
Input
Invoices input Name Type Description typestringOne of: customers,suppliersDefault:"customers"fromstringInvoice date from (YYYY-MM-DD) tostringInvoice date to (YYYY-MM-DD) contactintegerCustomer or supplier ID maxintegerDefault: 25nextstringThe “next” value from the previous call

