🎬 Automatically send monthly sales reports from Square via Gmail

⚡ 502 views · 🎬 Content Creation & Video

Description

Automatically Send Monthly Sales Reports from Square via Gmail

What It Does

This workflow automatically connects to the Square API and generates a monthly sales summary report for all your Square locations. The report matches the figures displayed in Square Dashboard > Reports > Sales Summary.

It’s designed to run monthly and pull the previous month’s sales into a CSV file, which is then sent to a manager/finance team for analysis.

This workflow builds on my previous template, which allows users to automatically pull data from the Square API into n8n for processing. (See here: https://n8n.io/workflows/6358)

Prerequisites

To use this workflow, you’ll need:

How to Set Up Square Credentials:

How It Works

  1. Trigger: The workflow runs on the 1st of every month at 8:00 AM
  2. Fetch Locations: An HTTP request retrieves all Square locations linked to your account
  3. Fetch Orders: For each location, an HTTP request pulls completed orders for the previous calendar month
  4. Filter Empty Locations: Locations with no sales are ignored
  5. Aggregate Sales Data: A Code node processes the order data and produces a summary identical to Square’s built-in Sales Summary report
  6. Create CSV File: A CSV file is created containing the relevant data
  7. Send Email: An email is sent using Gmail to the chosen third party

Example Use Cases

How to Use

Customization Options

Why It’s Useful

This workflow saves time, reduces manual report pulling from Square, and enables smarter automation around sales data — whether for operations, finance, or performance monitoring.

🔗 Nodes Used

HTTP Request, Gmail, Schedule Trigger, Convert to File

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup