Zum Inhalt springen
NEUMarktplatz und trig8n Agent: Verkaufen Sie, was Sie bauen, und erhalten Sie Pläne und Änderungen, die getestet sind, bevor Sie sie sehen. Neuigkeiten ansehen

Bibliothek / Finanzen, Rechnungen & Buchhaltung

Finanzen, Rechnungen & Buchhaltung

Pennylane-Rechnungen aus authentifizierten Webhook-Daten erstellen

Empfängt authentifizierte POST-Rechnungsdaten, findet oder erstellt den Kunden in Pennylane, erstellt eine finalisierte Rechnung, versendet sie optional per E-Mail und gibt die Details zurück.

Was sie bewirkt

# Create and send Pennylane invoices from webhook data ## Who is this for SMEs and freelancers using Pennylane who want to create invoices automatically from a CRM, form, or business application. ## What it does A protected POST webhook validates customer and line-item data, finds or creates the customer in Pennylane, creates a finalized invoice, optionally emails it through Pennylane, and returns the invoice details to the caller. ## Security and setup 1. Create an HTTP Basic Auth credential and select it on WH Receive Invoice Data. Never expose an unauthenticated invoicing webhook. 2. Create an HTTP Header Auth credential for Pennylane: name Authorization, value Bearer . 3. Select that Pennylane credential on all four PL HTTP Request nodes. 4. Configure sequential invoice numbering in Pennylane. 5. Test with send_email: false before enabling customer delivery. Email delivery retries Pennylane HTTP 409 responses once per minute, up to five attempts. 6. Activate the workflow and use its production webhook URL. Requires n8n 1.40+ and a Pennylane API token with customer_invoices:all and customers:all scopes. Import verified with n8n 2.31.5. Source and full payload documentation: https://github.com/Gauthier-Huguenin/n8n-pennylane-auto-invoicing Adapted from the original template © 2026 Gauthier Huguenin. Distributed under the MIT License; the complete notice is included in this workflow. --- ### Flow WH Receive Invoice Data → Code Validate Payload → PL Search Customer → IF Customer Exists → yes: Set Customer ID → no: PL Create Customer → Set Customer ID → Code Build Invoice Payload → PL Create Invoice → IF Send Email → yes: retry Wait PDF Generation → PL Send Invoice Email up to five times on HTTP 409 → no: Set Output Response → Set Output Response

Die Schritte

  1. WH Receive Invoice Data
  2. Code Validate Payload
  3. PL Search Customer
  4. IF Customer Exists
  5. PL Create Customer
  6. Set Customer ID
  7. PL Create Invoice
  8. Code Build Invoice Payload
  9. IF Send Email
  10. Set Output Response
  11. Wait PDF Generation
  12. PL Send Invoice Email
  13. Set Email Attempt
  14. IF Email Sent

Insgesamt 17 Schritte.

Ähnliche Automatisierungen