Automate weekly sales reports from Square. This n8n workflow uses the Square API to calculate aggregated sales summaries and email them as CSV attachments using the Gmail n8n node.
Download this n8n workflow template and start using it instantly.
Business owners relying on Square POS.
Finance teams needing consistent weekly sales data.
n8n automation specialists looking for advanced n8n templates for financial reporting.
Users who need reliable, scheduled data extraction using an n8n trigger.
This advanced n8n workflow solves the tedious task of manually pulling weekly sales summaries from Square's dashboard. By leveraging the Square API and custom JavaScript aggregation, this n8n workflow accurately mirrors the complex calculations found in the native Square Sales Summary Report, handling tenders, discounts, taxes, and returns. The result is a fully automated, scheduled process where the data is transformed into a clean CSV file and delivered directly to stakeholders via a Gmail n8n node. This particular n8n template is essential for ensuring timely, accurate financial oversight without manual intervention, saving countless hours for finance and management teams. Using this powerful n8n workflow ensures you never miss a reporting deadline.
Authorization.Bearer .Send Report Gmail n8n node's Send To field with the desired recipient's email address. Schedule Trigger (n8n trigger): The primary n8n trigger, set to run weekly (Mondays at 8:00 AM), initiating the entire n8n workflow.
Get Dates From Last Week (Code n8n node): Dynamically calculates the YYYY-MM-DD strings for the previous seven days based on the n8n trigger execution time.
Get Square Locations (HTTP Request n8n node): Fetches location IDs necessary for the sales queries, configured with Header Auth for the Square API.
Turn Locations Into List (Split Out n8n node): Splits the location array so the n8n workflow iterates over each location.
Get Sales from Square (HTTP Request n8n node): A critical POST request that uses the location ID and the calculated date range to retrieve completed orders. This demonstrates complex API interaction within an n8n node.
Compile Sales Reports (Code n8n node): The core computational n8n node. It executes custom JavaScript logic to aggregate all financial metrics (Gross Sales, Net Sales, Taxes, Tips, Tenders) and accurately match Square's official sales summary figures.
Convert Sales Summary to CSV File (Convert To File n8n node): Transforms the compiled JSON report data into a binary CSV file, ready for email attachment.
Send Report (Gmail n8n node): Handles the final delivery, attaching the dynamically generated CSV report and sending it using the configured Gmail credential.
Automate monthly Square sales reporting with this advanced n8n workflow. It uses the Square API to calculate detailed sales, tax, and tender summaries for all locations, sending the final report as a CSV attachment via Microsoft Outlook. Explore this robust n8n templates solution.

Automate monthly Square sales reports. This n8n workflow fetches all location sales data, compiles a summary report matching the Square dashboard, converts it to CSV, and sends it via Gmail.

Use this powerful n8n workflow to automate daily Square sales summaries, accurately calculate financial metrics, and deliver the report as a CSV attachment via Microsoft Outlook. This n8n template simplifies finance operations.

Use this powerful n8n workflow to automatically generate weekly Square sales reports (matching dashboard totals) and email them as CSV attachments using Microsoft Outlook.









































