Skip to content

Pennylane ​

Imports a supplier invoice received by email, creates customers, suppliers, invoices and quotes, and follows Pennylane transactions.

The Pennylane node files the supplier invoices you receive by email in Pennylane, finds and creates customers and suppliers, creates customer invoices and quotes, and follows bank transactions. The typical use: an “invoices” mailbox where each PDF, read by Extract, is imported with its amounts.

See Pennylane to create the connection.

At a glance ​

  • Type: pennylane.api · version 1
  • Category: Data
  • Kind: Step — one stage of a run
  • Effect: Writes outside (external_write) — writes outside Loop & Roll; described instead of performed during a test run
  • Needs a carrier email: No
  • Connection: Pennylane
  • Inputs: main
  • Outputs: main
The ports of “Pennylane”: what comes in on the left, what goes out on the rightInput: main. Outputs: main. An error output appears when its failure setting is “Follow the Error output”. It needs a Pennylane connection.Pennylanepennylane.apimainmainerror · only with “Follow the Error output”Connection: Pennylane
The ports of “Pennylane”: what comes in on the left, what goes out on the right

Connection ​

This node needs a Pennylane connection.

Parameters ​

connection ​

Pennylane connection — The Pennylane connection to use. Create it once in Connections; its key never appears in the workflow.

  • Type: Connection (credential)
  • Required: Yes
  • Default: "" (empty)

action ​

Action

  • Type: One choice (options)
  • Required: Yes
  • Default: supplierInvoice.import
  • Options:
    • supplierInvoice.import — Import a supplier invoice (PDF): Uploads the attachment to Pennylane and creates the invoice with its amounts.
    • supplierInvoice.list — Search supplier invoices: By supplier, number or date.
    • supplier.find — Find a supplier: By the start of its name or by email address.
    • supplier.create — Create a supplier: Only the name is required.
    • customer.find — Find a customer: By the start of its name or by email address.
    • customer.create — Create a customer (company): Name and billing address are required.
    • customerInvoice.create — Create a customer invoice: As a draft by default: a person reviews it before finalizing.
    • customerInvoice.list — Search customer invoices: By customer, number or date; with their payment status.
    • customerInvoice.finalize — Finalize a customer invoice: Gives it its final number.
    • customerInvoice.markPaid — Mark a customer invoice as paid: Without automatic bank reconciliation.
    • quote.create — Create a quote: Same lines as an invoice.
    • transaction.list — List bank transactions: Since a date, with the invoices already matched.
    • transaction.match — Match a transaction to a customer invoice: Links the received payment to the invoice.

supplier ​

Supplier — Picked from the list, or an id returned by “Find a supplier” ({{ data.<step>.id }}). Optional when searching invoices.

  • Type: Remote resource (resourceLocator)
  • Required: No
  • Ways to choose: pick from a list, type an ID (pennylane.supplier)
  • Listed with the connection in: connection
  • Shown when: action is one of supplierInvoice.import, supplierInvoice.list

customer ​

Customer — Picked from the list, or an id returned by “Find a customer”. Optional when searching invoices.

  • Type: Remote resource (resourceLocator)
  • Required: No
  • Ways to choose: pick from a list, type an ID (pennylane.customer)
  • Listed with the connection in: connection
  • Shown when: action is one of customerInvoice.create, customerInvoice.list, quote.create

Start of the name — Pennylane looks for names that start with this text. Leave empty to search by email.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 200 characters at most
  • Shown when: action is one of customer.find, supplier.find
  • Expressions: {{ }} accepted

email ​

Email address

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 320 characters at most
  • Example: {{ email.from.address }}
  • Shown when: action is one of customer.find, supplier.find, customer.create, supplier.create
  • Expressions: {{ }} accepted

name ​

Name

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 250 characters at most
  • Shown when: action is one of customer.create, supplier.create
  • Expressions: {{ }} accepted

regNo ​

Company registration number (SIREN)

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 30 characters at most
  • Shown when: action is one of customer.create, supplier.create
  • Expressions: {{ }} accepted

vatNumber ​

EU VAT number

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 30 characters at most
  • Shown when: action is one of customer.create, supplier.create
  • Expressions: {{ }} accepted

address ​

Street address — Required for a customer, optional for a supplier.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 250 characters at most
  • Shown when: action is one of customer.create, supplier.create
  • Expressions: {{ }} accepted

postalCode ​

Postal code

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 20 characters at most
  • Shown when: action is one of customer.create, supplier.create
  • Expressions: {{ }} accepted

city ​

City

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 100 characters at most
  • Shown when: action is one of customer.create, supplier.create
  • Expressions: {{ }} accepted

country ​

Country (two-letter code)

  • Type: Text (string)
  • Required: No
  • Default: FR
  • 2 characters at most
  • Shown when: action is one of customer.create, supplier.create
  • Expressions: {{ }} accepted

externalReference ​

External reference — Unique in Pennylane: a second creation with the same reference is refused, which protects against a duplicate on a retry.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 200 characters at most
  • Shown when: action is one of customer.create, supplier.create, supplierInvoice.import
  • Expressions: {{ }} accepted

attachmentPosition ​

Attachment (position) — The file to send: an attachment of the email (1 for the first one) or a file added by an earlier step ({{ data.<step>.attachmentPosition }}). The bytes never travel through the workflow.

  • Type: Number (number)
  • Required: No
  • Default: 1
  • Whole number, from 1 to 2000000
  • Shown when: action is supplierInvoice.import

invoiceNumber ​

Invoice number

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 100 characters at most
  • Shown when: action is one of supplierInvoice.import, supplierInvoice.list, customerInvoice.list
  • Expressions: {{ }} accepted

date ​

Date — 2026-11-15 or 15/11/2026.

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 40 characters at most
  • Example: {{ data.read.date }}
  • Shown when: action is one of supplierInvoice.import, customerInvoice.create, quote.create
  • Expressions: {{ }} accepted

deadline ​

Due date — For a quote: the date it expires.

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 40 characters at most
  • Shown when: action is one of supplierInvoice.import, customerInvoice.create, quote.create
  • Expressions: {{ }} accepted

amountBeforeTax ​

Amount before tax — Accepts 1234.50 as well as 1 234,50 €.

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 40 characters at most
  • Shown when: action is supplierInvoice.import
  • Expressions: {{ }} accepted

taxAmount ​

Tax amount

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 40 characters at most
  • Shown when: action is supplierInvoice.import
  • Expressions: {{ }} accepted

amount ​

Amount including tax

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 40 characters at most
  • Shown when: action is supplierInvoice.import
  • Expressions: {{ }} accepted

vatRate ​

VAT rate (Pennylane code) — Pennylane’s rate code: FR_200 for 20%. See the list in Pennylane’s documentation.

  • Type: Text (string)
  • Required: No
  • Default: FR_200
  • 30 characters at most
  • Shown when: action is one of supplierInvoice.import, customerInvoice.create, quote.create
  • Expressions: {{ }} accepted

importAsIncomplete ​

Import as “incomplete” — The accountant checks it before it enters the books. Recommended when the amounts come from an extraction.

  • Type: Yes / no (boolean)
  • Required: No
  • Default: true
  • Shown when: action is supplierInvoice.import

lineLabel ​

Line label

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 500 characters at most
  • Shown when: action is one of customerInvoice.create, quote.create
  • Expressions: {{ }} accepted

quantity ​

Quantity

  • Type: Text (string)
  • Required: No
  • Default: 1
  • 20 characters at most
  • Shown when: action is one of customerInvoice.create, quote.create
  • Expressions: {{ }} accepted

unitPrice ​

Unit price before tax

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 40 characters at most
  • Shown when: action is one of customerInvoice.create, quote.create
  • Expressions: {{ }} accepted

unit ​

Unit

  • Type: Text (string)
  • Required: No
  • Default: piece
  • 30 characters at most
  • Shown when: action is one of customerInvoice.create, quote.create
  • Expressions: {{ }} accepted

lines ​

Lines (JSON, advanced) — Replaces the single line above: an array in Pennylane’s format, e.g. [{"label":"Fees","quantity":1,"unit":"piece","raw_currency_unit_price":"500","vat_rate":"FR_200"}].

  • Type: Long text (text)
  • Required: No
  • Default: "" (empty)
  • 20000 characters at most
  • Shown when: action is one of customerInvoice.create, quote.create
  • Expressions: {{ }} accepted

draft ​

Create as a draft — A draft has no number yet and can be corrected in Pennylane.

  • Type: Yes / no (boolean)
  • Required: No
  • Default: true
  • Shown when: action is customerInvoice.create

invoiceId ​

Invoice id

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 40 characters at most
  • Example: {{ data.invoice.id }}
  • Shown when: action is one of customerInvoice.finalize, customerInvoice.markPaid, transaction.match
  • Expressions: {{ }} accepted

transactionId ​

Transaction id

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 40 characters at most
  • Shown when: action is transaction.match
  • Expressions: {{ }} accepted

dateFrom ​

From — Included date (2026-11-01). Empty = no bound.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 40 characters at most
  • Shown when: action is one of supplierInvoice.list, customerInvoice.list, transaction.list
  • Expressions: {{ }} accepted

limit ​

Maximum count

  • Type: Number (number)
  • Required: No
  • Default: 20
  • Whole number, from 1 to 100
  • Shown when: action is one of supplierInvoice.list, customerInvoice.list, transaction.list, customer.find, supplier.find

Outputs ​

  • main — Taken once the call to Pennylane succeeds, whatever the action. An error response from Pennylane fails the step instead.

Data produced ​

What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).

  • {{ data.<step>.id }} — string. The Pennylane id of the object created, read or found first.
  • {{ data.<step>.found }} — boolean. Searches only: true when at least one item matches.
  • {{ data.<step>.invoices }} — array of { id, invoiceNumber, date, deadline, status, paid, amount, currency, fileUrl }. Invoice searches only. fileUrl expires after 30 minutes.
  • {{ data.<step>.invoiceNumber }} — string. Invoice import and creation: the invoice number.
  • {{ data.<step>.transactions }} — array of { id, label, date, amount, currency, matchedInvoices }. List transactions only.
  • {{ data.<step>.simulated }} — boolean. true when the action was described instead of done: in a test run, creations and changes are not sent; reads always go out for real.
  • {{ data.<step>.summary }} — string. The one-line summary in the member’s language (with summaryKey and summaryParams).

Operations ​

The node has a single Action parameter (action). Each action calls the Pennylane API with the connection’s key.

  • Import a supplier invoice (PDF) (supplierInvoice.import, the default). Uploads the Attachment (attachmentPosition) to POST /file_attachments, then creates the invoice (POST /supplier_invoices/import) for the chosen Supplier, with Date, Due date, Amount before tax, Tax amount, Amount including tax and the VAT rate (Pennylane code, FR_200 for 20%). Import as “incomplete” is on by default.
  • Search supplier invoices and Search customer invoices (supplierInvoice.list, customerInvoice.list). By party, number and start date; newest first.
  • Find a supplier / Find a customer (supplier.find, customer.find). By the start of the name or by email address; the first match is published flat (id, name).
  • Create a supplier / Create a customer (company) (supplier.create, customer.create). A customer needs its billing address.
  • Create a customer invoice and Create a quote (customerInvoice.create, quote.create). One line (label, quantity, unit price before tax, rate), or a JSON array in Pennylane’s format in Lines. The invoice is a draft by default.
  • Finalize, Mark as paid (customerInvoice.finalize, customerInvoice.markPaid) and Match a transaction to a customer invoice (transaction.match).
  • List bank transactions (transaction.list), since a date.

Example ​

A supplier invoice arrives as a PDF. An Extract step named read pulls the date, due date and amounts; the Pennylane node imports them:

text
action            supplierInvoice.import
supplier          (list mode) Martin Plumbing
attachmentPosition 1
date              {{ data.read.date }}
deadline          {{ data.read.due_date }}
amountBeforeTax   {{ data.read.net }}
taxAmount         {{ data.read.vat }}
amount            {{ data.read.gross }}

Tips ​

  • Test runs. Reads go out for real in a test run; creations and changes are only described (simulated is true).
  • Amounts and dates. Amounts accept 1234.50 as well as 1 234,50 €; dates 2026-11-15 as well as 15/11/2026. An unreadable value is never guessed.
  • No idempotency in Pennylane. If the engine retries the step after an incident, a customer or an invoice can be created twice. Fill in External reference: Pennylane wants it unique and refuses the duplicate.
  • Errors. integration.unauthorized: the key was refused or revoked, replace it in the connection. integration.rejected: Pennylane refused the request (missing field, invalid value), fix the settings. integration.rate_limited and integration.unavailable are retried automatically. An empty required parameter or an unreadable amount fails the step with node_invalid_param, before any call. See Error handling.

Loop & Roll — the workflow builder for email.