Get Current User
Automatically get Current User on app.pennylane.com. 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.
Input
None
Output
loggedIn requiredname optionalemail optionalFAQ
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.
List supplier invoices
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.
