List Pennylane supplier invoices
Automatically list Pennylane supplier invoices on app.pennylane.com. Lists a Pennylane company's supplier invoices, newest first, one page at a time. Returns each invoice's id, label, provider, invoice number, date, deadline, amount and currency, invoice and payment status, and paid flag, plus paging totals (use hasNextPage to ask for the next page). Requires companyId, the number in the app URL at /companies/<id>/. Fails with a sign-in error when the browser is not signed in to Pennylane.
Input
companyId requiredPennylane company id, the number in the app URL at /companies/<id>/supplier_invoices.
page optionalPage number, 1-indexed.
Default: 1perPage optionalRows per page.
Default: 50Output
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.
Get current Pennylane user
Report which Pennylane account this browser is signed in as: email and name. When the browser is signed out, the run fails with a signed-out error that says to sign in to Pennylane.
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.
