Shopify × Daftra Accounting Integration
A large n8n workflow that keeps Daftra accounting in step with a Shopify Plus store — invoicing and payment synchronisation without manual entry.
Overview
One production n8n workflow ("All Integration with Daftara") connects the Shopify store to Daftra, the accounting system. Store activity is sent to n8n, transformed into Daftra's format and written to Daftra, so invoices and payments appear in accounting without being typed in again. The screenshot is a successful run from the execution log.
Business problem
Every online order also had to exist in the accounting system. Entering invoices and payments in Daftra by hand meant duplicate work, delays and the risk of totals not matching the store.
Solution architecture
A webhook-driven n8n workflow with many branches: it normalises the Shopify data, checks what already exists in Daftra before writing, creates or updates the records, and records invoices and payments through the Daftra API.
Workflow steps
- 01
Shopify sends the order event to an n8n webhook.
- 02
Code nodes normalise customer, line-item and payment data.
- 03
The workflow checks Daftra for existing records before creating anything.
- 04
Missing records are created; existing ones are reused or updated.
- 05
The invoice and its payment are written to Daftra.
- 06
Branches handle the different order and payment cases, and each run ends with a response.
Key automation features
- Single workflow covering the Shopify → Daftra sync
- Look-up before write to avoid duplicate records
- Invoice and payment synchronisation
- Branching for different order and payment cases
- Full execution history in n8n for every run
Business benefits
- Invoices and payments reach accounting without manual entry
- One source of truth: accounting follows the store
- Every run is visible and traceable in the n8n execution log
Technologies
Status
In production — the screenshot is a successful execution from the n8n log.



