Restore archived Pennylane supplier invoices
Restores one or more archived Pennylane supplier invoices by id, so they show again in their tab. With dryRun (default true) each invoice is found and selected among the archived invoices, but not restored. With dryRun false it is restored, then read back. Returns, per invoice, whether it was found, its label and amount, whether it was restored, and a warning when it is not archived or shares its number or amount with too many archived invoices to be singled out. 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.
invoiceIds requiredArchived invoice ids, as app.pennylane.com/list_invoices returns them with tab archived.
dryRun optionaltrue (default): find and select each invoice without restoring it. false: restore.
Default: trueOutput
dryRun requiredresults requiredrestoredCount requiredFAQ
Find Pennylane bank transactions for a supplier invoice
Lists the bank transactions a Pennylane supplier invoice can be matched to: Pennylane's own suggestions for that invoice, with their confidence score, and one page of the company's bank transactions, newest first, which can be narrowed by words of the bank label, an exact amount and a date range. Transactions already grouped with this invoice are left out of both lists; invoice.remainingToMatch says how much of the invoice is still unmatched (0 when fully matched). Amounts of transactions are signed as on the bank statement, so money paid out is negative, and their remainingToMatch is the part Pennylane still counts as unmatched. It only reads and never matches anything. Fails when the invoice does not exist and when signed out of Pennylane.
List Pennylane supplier invoices
Lists a Pennylane company's supplier invoices, one tab and one page at a time, in the order the page shows them (newest added first). Tabs are all, inbox, to pay, paid, to approve, in dispute, and archived for the archived invoices; search narrows the list by invoice number, as the page's search box does. Returns each invoice's id, label, supplier, invoice number, date, creation date, deadline, amount in the invoice currency and in euros, invoice and payment status, and paid flag, plus paging totals (use hasNextPage to ask for the next page). An account that only sees its own invoices gets that single list without tabs or search. 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.
Match a Pennylane supplier invoice to a bank transaction
Links one Pennylane supplier invoice to a bank transaction that already happened on the company's account, which marks the invoice as paid in the books. It never sends a payment. With dryRun (default true) it only reads the invoice and the transaction and returns both, without linking them; dryRun false links them and returns the amount left to match (0 when the amounts agree, a small value for a currency gap, the difference when the transaction is larger than the invoice). Find the transaction with app.pennylane.com/find_transactions_for_invoice. Fails when the invoice or the transaction does not exist, and when signed out of Pennylane.
