App Logo
app.pennylane.com

Approve Pennylane supplier invoices

Approve one or more Pennylane supplier invoices that are waiting for approval, by id. With dryRun (default true) each invoice is found and selected in the list, but not approved. With dryRun false it is approved, then read back. Approving an invoice already matched to a bank transaction marks it paid. Returns, per invoice, whether it was found, its label and amount, its status after the run, whether it was approved, and a warning when it is not waiting for approval or has no invoice number to single it out. Fails with a sign-in error when the browser is not signed in to Pennylane.

Input

companyId required

Pennylane company id, the number in the app URL at /companies/<id>/supplier_invoices.

invoiceIds required

Invoice ids (as returned by list_invoices) to approve.

dryRun optional

true (default): find and select each invoice without approving it. false: approve.

Default: true

Output

dryRun required
results required
approvedCount required

FAQ

Approve one or more Pennylane supplier invoices that are waiting for approval, by id. With dryRun (default true) each invoice is found and selected in the list, but not approved. With dryRun false it is approved, then read back. Approving an invoice already matched to a bank transaction marks it paid. Returns, per invoice, whether it was found, its label and amount, its status after the run, whether it was approved, and a warning when it is not waiting for approval or has no invoice number to single it out. Fails with a sign-in error when the browser is not signed in to Pennylane.
Required: companyId, invoiceIds. Optional: dryRun.
It returns dryRun, results, approvedCount.
Yes. It acts as you on app.pennylane.com: on your own Chrome it reuses your session, and on a Reduck-hosted browser it loads the app.pennylane.com cookies saved by the Reduck extension.
It makes changes on app.pennylane.com, like sending, posting, booking or buying something.
Ask an AI agent connected to Reduck to run reduck/app.pennylane.com/approve_invoices, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/app.pennylane.com/approve_invoices
It is part of Reduck's official curated catalogue.

Start building not clicking