List supplier invoices
Automatically list supplier invoices on app.pennylane.com. Lists Pennylane supplier invoices from one tab (All / Inbox / To pay / Paid / To approve). Returns each invoice's id, provider (best-effort, parsed from the site-generated label), invoice number, dates, amount/currency, payment status and paid flag. Requires companyId (the number in the app URL at /companies/<id>/supplier_invoices); defaults to the Inbox tab, the invoices needing reconciliation.
Input
companyId requiredPennylane company id, the number in the app URL at /companies/<id>/supplier_invoices.
page optionalPage number, 1-indexed. Defaults to 1.
perPage optionalRows per page. Defaults to 50.
Output
invoices requiredpagination requiredFAQ
Archive Pennylane supplier invoices
Archive one or more supplier invoices from the Pennylane Inbox by id. With dryRun (default true) each invoice is only previewed — selected, its archive confirmation opened and the warning read, then cancelled — so nothing is archived; dryRun:false confirms the archive. Returns, per invoice, whether it was found, its label, its amount and the warning that was shown.
Pennylane whoami (signed-in account)
Report which Pennylane account this browser is signed in as: email and name from the app's own users/me. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Pennylane scripts.
Get Current User
Report which Pennylane account this browser is signed in as: email and name. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Pennylane scripts.
