App Logo
app.pennylane.com

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.

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 archive.

dryRun optional

true (default): select row + open modal + cancel, no archive. false: confirm the archive.

Default: true

Output

dryRun optional
results optional
archivedCount optional

Start building not clicking