Skip to main content

Sync Shopify and WooCommerce sales into a Google Sheets accounting ledger

Workflow preview

Workflow preview
100%
Sync Shopify and WooCommerce sales into a Google Sheets accounting ledger preview
Open on n8n.io

1. Workflow Overview

(Retail) Auto Sync Transactions to Accounting Tools This workflow automates the collection and standardization of sales data from Shopify and WooCommerce into a centralized Google Sheets ledger. It...

Best for

  • Document Extraction automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.shopifytrigger, n8n-nodes-base.woocommercetrigger, n8n-nodes-base.merge, n8n-nodes-base.set, n8n-nodes-base.googlesheets, n8n-nodes-base.if, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.

Original n8n.io source

1.1 Workflow description

Title
Sync Shopify and WooCommerce sales into a Google Sheets accounting ledger
Workflow name
Sync Shopify and WooCommerce sales into a Google Sheets accounting ledger

(Retail) Auto-Sync Transactions to Accounting Tools

This workflow automates the collection and standardization of sales data from Shopify and WooCommerce into a centralized Google Sheets ledger. It triggers on new orders, normalizes disparate platform data, distinguishes between sales and refunds, and formats the information for accounting readiness. This eliminates manual data entry and ensures real-time financial tracking across multiple storefronts.

Quick Implementation Steps

  • Connect Triggers: Authenticate your Shopify and WooCommerce accounts in the respective "Order Events" nodes.
  • Set Webhooks: Add the generated n8n Webhook URLs to your Shopify and WooCommerce notification settings.
  • Configure Sheets: Select your target spreadsheet and sheet name in the "Log to Google Sheets" node.
  • Map Credentials: Ensure Google Sheets OAuth2 is connected to authorize the "Append or Update" action.
  • Verify Fields: Test the workflow to ensure platform-specific keys map correctly to your sheet columns.

What It Does

The workflow acts as a bridge between e-commerce storefronts and financial reporting tools:

  • Multi-Source Ingestion: Listens for real-time webhooks from both Shopify (orders/create) and WooCommerce (order.created).
  • Data Normalization: Translates platform-specific JSON (like current_total_price vs total) into a single internal schema.
  • Smart Routing: Evaluates the transaction type to determine if the record is a standard sale or a refund.
  • Accounting Formatting: Structures data into financial-ready blocks, including calculated line items, tax details, and audit notes.
  • Centralized Logging: Records all activity in Google Sheets, using an "Append or Update" logic to prevent duplicate entries.

Who's It For

  • E-commerce Business Owners managing multiple stores who need a single "source of truth" for daily revenue.
  • Accountants & Bookkeepers who require standardized transaction data without manual export/import tasks.
  • Operations Managers looking to monitor multi-platform sales performance in real-time within a shared spreadsheet.

Technical Workflow Breakdown

Entry Points (Triggers)

  • Shopify Order Events: Listens for the orders/create topic to capture new Shopify transactions.
  • WooCommerce Order Events: Monitors the order.created event for new WooCommerce sales.

Processing & Logic

  • Platform Configuration: Separate nodes for Shopify and WooCommerce that map native fields to standardized internal keys.
  • Merge Platform Data: Consolidates the two distinct platform paths into a single unified stream.
  • Format Transaction Data: A "Set" node that builds the final data object, creating a "description" string and assigning global statuses.
  • Check Transaction Type: An "If" node that routes data based on whether the transactionType equals "sale".

Output & Integrations

  • Format Sale/Refund Entry: Logic-specific nodes that prepare line-item details (e.g., setting ItemRef to "Sales" or "Refund") and handle currency formatting.
  • Google Sheets (Log Data): Appends the final formatted record to the "Price_Changes_Log" spreadsheet, including date, customer, amount, and document numbers.

Customization

Add New Platforms

You can extend this workflow by adding a new Trigger node (e.g., Magento or Amazon) and connecting it to a new Configuration node before the Merge node.

Adjust Tax/Fee Logic

Modify the "Format Sale Entry" node expressions to calculate net revenue after marketplace fees or to separate regional tax codes into different columns.

Change Log Destination

Swap the Google Sheets node for an ERP or Accounting node (like QuickBooks or Xero) to push data directly into professional accounting software.

Troubleshooting Guide

Issue Possible Cause Solution
Webhook Not Triggering Incorrect Webhook URL in Store settings. Copy the Production Webhook URL from n8n and update your Shopify/WooCommerce settings.
Missing Data Fields Platform API version mismatch. Check the "Configuration" nodes to ensure JSON keys match the current platform payload.
Sheets Sync Failure Column headers don't match. Ensure your Google Sheet has headers matching the keys in the "Log to Google Sheets" node.
Duplicate Records "Append" mode used instead of "Update". Set the Google Sheets operation to "Append or Update" and select a unique identifier like orderId.

Need Help?

If you need help mapping additional custom fields from your store or connecting this to a professional accounting suite like QuickBooks, we're here to help. Feel free to contact our n8n developers at WeblineIndia.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Shopify Order Events

Type / Role
n8n-nodes-base.shopifyTrigger - shopifyTrigger
Config choices
Version 1

Block 2 - WooCommerce Order Events

Type / Role
n8n-nodes-base.wooCommerceTrigger - wooCommerceTrigger
Config choices
Version 1

Block 3 - Merge Platform Data

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 4 - Format Transaction Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 5 - Format Sale Entry

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Format Refund Entry

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Log to Google Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 8 - Check Transaction Type

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 9 - Shopify Configuration

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - WooCommerce Configuration

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Sync Shopify and WooCommerce sales into a Google Sheets accounting ledger
Complexity intermediate
Nodes 14
Categories Document Extraction
Author WeblineIndia
Published 03 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13829/13829.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Sync Shopify and WooCommerce sales into a Google Sheets accounting ledger do?

(Retail) Auto Sync Transactions to Accounting Tools This workflow automates the collection and standardization of sales data from Shopify and WooCommerce into a centralized Google Sheets ledger. It...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction use case.