Kütüphane / Finans, Faturalar ve Muhasebe
Finans, Faturalar ve Muhasebe
Kimlik doğrulamalı webhook verilerinden Pennylane faturaları oluştur
Kimliği doğrulanmış POST fatura verilerini alır, Pennylane'de müşteriyi bulur veya oluşturur, kesinleştirilmiş bir fatura oluşturur, isteğe bağlı olarak e-posta ile gönderir ve ayrıntıları döndürür.
Ne yapar
# 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
Adımlar
- WH Receive Invoice Data
- Code Validate Payload
- PL Search Customer
- IF Customer Exists
- PL Create Customer
- Set Customer ID
- PL Create Invoice
- Code Build Invoice Payload
- IF Send Email
- Set Output Response
- Wait PDF Generation
- PL Send Invoice Email
- Set Email Attempt
- IF Email Sent
Toplam 17 adım.
Benzer otomasyonlar
Finans, Faturalar ve MuhasebeWebhook ve Google Araması ile Döviz Dönüştürme API'si7 adımFinans, Faturalar ve MuhasebeExchangeRate.host ile Webhook Üzerinden Para Birimlerini Dönüştürme3 adımFinans, Faturalar ve MuhasebeDöviz Kurlarıyla Webhook Üzerinden Para Birimlerini Dönüştürme5 adımFinans, Faturalar ve MuhasebeWebhook ile euro döviz kuru API'si29 adım