Pennylane icon

Pennylane

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

Actions69

📄 Customer Invoice → Update

AI-generated

Summary

Update a customer invoice's label in Pennylane.

Inputs

  • invoiceSelectionMode — Choose how to select the invoice from the Pennylane customer invoice list or enter a custom ID manually. Defaults to 'list'. Display is toggled by this setting: when 'list', shows a dropdown loaded via 'getCustomerInvoices'; when 'manual', shows a text field for direct ID entry.
  • customerInvoiceId (required) — The Pennylane customer invoice ID to update. Loaded from the invoice list when 'invoiceSelectionMode' is 'list', or entered directly when 'invoiceSelectionMode' is 'manual'. This parameter is mandatory for the update operation.

Output shape

single item with json body containing the API response from Pennylane's PUT /customer_invoices/{id} endpoint, or { message: 'Operation completed' } on failure (unless continueOnFail is enabled).

The node sends a PUT request to /customer_invoices/{customerInvoiceId} with a hardcoded payload { label: 'Updated invoice' }. No other UI-provided fields influence the update payload. The operation consumes only the invoice selection mode and invoice ID; all other parameters are ignored for this resource and operation combination.

Examples

Example 1: Update invoice label via selected invoice from list

Set 'Invoice Selection Mode' to '📋 Select from List', choose an invoice from the rendered dropdown (populated by getCustomerInvoices), and the node will update that invoice's label to 'Updated invoice'.

Example 2: Update invoice label via custom ID

Set 'Invoice Selection Mode' to '✏️ Enter Custom ID', provide a valid customerInvoiceId string, and the node will update that specific invoice's label to 'Updated invoice'.

Links

Discussion