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.
Download this n8n workflow template and start using it instantly.
Business Owners & Managers: Who need timely, accurate monthly sales data from Square without manual exports.
Financial Accountants/Bookkeepers: Requiring automated sales data feeds for QuickBooks or other accounting software.
n8n Automation Specialists: Looking for robust examples of complex API integration and custom sales aggregation within an n8n workflow.
Operations Teams: Needing aggregated performance metrics across multiple Square locations.
Managing sales data across multiple Square locations can be time-consuming, especially when needing detailed summaries for accounting and forecasting. This advanced n8n workflow eliminates that manual burden entirely.
This specific n8n templates solution acts as an automatic finance analyst. It uses the n8n trigger node to fire on the first day of every month, calculates data for the preceding month, interacts with the Square API via multiple HTTP requests, and aggregates detailed metrics (including returns, taxes, tips, and tenders) using a custom n8n node (Code).
The final result is a highly accurate, customizable sales summary that mirrors the data found in the Square Sales Summary Dashboard. The entire process culminates in the report being converted into a tidy CSV file and delivered directly to the designated recipient using the Microsoft Outlook n8n node, ensuring compliance and efficiency. This is a powerful example of what an n8n workflow can achieve in financial operations.
This highly detailed n8n workflow operates on a monthly cadence to generate and distribute sales reports:
orders) was successfully returned for that location/day combination.To set up this powerful n8n workflow, follow these steps:
Authorization.Bearer (e.g., Bearer EAA...).To Recipients field (currently [email protected]) to the email address of the finance team or manager. Schedule Trigger (n8n trigger):
Function: Starts the n8n workflow monthly.
Key Configuration: Runs at 8:00 AM on the first day of every month.
Get Dates From Last Month (Code n8n node):
Function: Dynamically calculates the full date range of the previous calendar month, outputting an item for each day.
Key Configuration: Uses JavaScript to handle precise date calculations relative to the workflow trigger date.
Get Square Locations (HTTP Request n8n node):
Function: Fetches all available locations from the Square API, ensuring comprehensive coverage for the n8n workflow.
Key Configuration: Uses 'Header Auth' with the Square Access Token.
Get Sales from Square (HTTP Request n8n node):
Function: Retrieves all completed orders for a specific location and day.
Key Configuration: Uses a POST request with a complex JSON body configured to filter by locationids and precise date ranges pulled from the previous n8n nodes.
Compile Sales Reports (Code n8n node):
Function: Aggregates all raw order data (which includes sales, refunds, and tenders) into a clean, summarized financial report format, crucial for this n8n templates solution.
Key Configuration: Extensive JavaScript code calculates netsales, grosssales, totalreturns, and breakdowns by tender type, scaling the results from cents to dollars.
Convert Sales Summary to CSV File (Convert To File n8n node):
Function: Converts the structured JSON output from the compilation step into a file format suitable for emailing.
Key Configuration: Dynamic file naming: =salesreport{{ $('Schedule Trigger').item.json.timestamp }}.csv, using the binary property salesreport.
Send Report (Microsoft Outlook n8n node):
Function: Sends the finalized CSV report via email.
* Key Configuration: Uses the binary property salesreport as an attachment. Requires an Outlook credential and configuration of the recipient email address.
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.

Automate daily Square sales reporting using this powerful n8n workflow. Extract, compile, and email CSV reports automatically via the n8n Gmail node. Use this robust n8n template for finance automation.

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.









































