Pennylane icon

Pennylane

n8n community node for Pennylane External API v2 - Complete & Working

Actions69

📋 Invoice Lines → Get

AI-generated

Summary

Fetch invoice line items for a specific customer or supplier invoice from Pennylane.

Inputs

  • invoiceType (required) — Choose invoice type to determine which invoice ID parameter to show and which API endpoint to call (customer vs supplier).
  • customerInvoiceId (required) — Select a customer invoice; dynamically loaded via getCustomerInvoices. Only shown when invoiceType is 'customer'.
  • supplierInvoiceId (required) — Select a supplier invoice; dynamically loaded via getSupplierInvoices. Only shown when invoiceType is 'supplier'.

Output shape

A single n8n item whose json field contains the raw Pennylane API response from /customer_invoices/{invoiceId}/invoice_lines or /supplier_invoices/{invoiceId}/invoice_lines.

Both 'get' and 'getAll' operations construct the identical API URL and behave identically. invoiceLines is not in the auto-split resource list, so the response is returned as one item rather than split into multiple outputs.

Examples

Example 1: Retrieve all line items for a customer invoice.

Set invoiceType to 'customer', then select the desired customer invoice from the dropdown. The node calls /customer_invoices/{id}/invoice_lines and returns the line items as a single item.

Example 2: Retrieve all line items for a supplier invoice.

Set invoiceType to 'supplier', then select the desired supplier invoice from the dropdown. The node calls /supplier_invoices/{id}/invoice_lines and returns the line items as a single item.

Links

Discussion