Square

Solutions & Tools to Grow Your Business

Go to site
Explore
/
Apps
/
Square

Square API Integrations

Build and run workflows using the Square API. Use 1000s of source-available triggers and actions across 2,000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

The Square API opens up a realm of possibilities for merchants to effortlessly manage their sales, inventory, customers, and payments. With Pipedream, you can automate actions based on events in Square, such as new transactions, updated orders, or customer profile changes. Craft custom workflows that react in real-time, sync data across platforms, or streamline reporting. Through Pipedream's serverless platform, you can connect Square with countless other apps without writing extensive code, turning manual tasks into automated, efficient processes.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    square: {
      type: "app",
      app: "square",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      method: "post",
      url: `https://connect.squareup.com/oauth2/token/status`,
      headers: {
        Authorization: `Bearer ${this.square.$auth.oauth_access_token}`,
      },
    })
  },
})

Choose an API to Connect with Square API

1
-
24
of
2,000+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Salesforce (REST API)
Salesforce (REST API)
Web services API for interacting with Salesforce
HubSpot
HubSpot
HubSpot's CRM platform contains the marketing, sales, service, operations, and website-building software you need to grow your business.
Zoho CRM
Zoho CRM
Zoho CRM is an online Sales CRM software that manages your sales, marketing, and support in one CRM platform.
Stripe
Stripe
Stripe powers online and in-person payment processing and financial solutions for businesses of all sizes.
Shopify Developer App
Shopify Developer App
Shopify is a user-friendly e-commerce platform that helps small businesses build an online store and sell online through one streamlined dashboard.
WooCommerce
WooCommerce
WooCommerce is the open-source ecommerce platform for WordPress.
Snowflake
Snowflake
A data warehouse built for the cloud
MongoDB
MongoDB
MongoDB is an open source NoSQL database management program.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Twilio SendGrid
Twilio SendGrid
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
ServiceNow
ServiceNow
The smarter way to workflow
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.

Example Use Cases

  • Sales Data Syncing: Automatically sync new sales data from Square to a Google Sheet. Each time a sale occurs, Pipedream captures the transaction details and appends them to a designated Google Sheet, offering real-time sales tracking and simplified accounting.

  • Customer Relationship Management: Enhance customer engagement by linking Square customer creation to a CRM like Salesforce. Whenever a new customer profile is added in Square, Pipedream triggers a workflow that adds or updates the customer's details in Salesforce, ensuring your CRM always has the latest information.

  • Inventory Level Alerts: Create an inventory alert system by leveraging Square's inventory tracking. When inventory levels for a product fall below a certain threshold, Pipedream sends a notification through Slack or email, prompting immediate restocking actions to avoid potential sales losses.

Get Page HTML with Playwright API on New Booking Created from Square API
Square + Playwright
 
Try it
Send Invoice with Square API on New Requests from HTTP / Webhook API
HTTP / Webhook + Square
 
Try it
Add Single Row with Google Sheets API on New Order Created from Square API
Square + Google Sheets
 
Try it
Send Invoice with Square API on New Item in Feed from RSS API
RSS + Square
 
Try it
Send Invoice with Square API on New Message (Instant) from Discord API
Discord + Square
 
Try it
Catalog Item Updated from the Square API

Emit new event every time a catalog item is updated. See the docs

 
Try it
New Booking Created from the Square API

Emit new event for every new booking created. See the docs

 
Try it
New Customer Created from the Square API

Emit new event for every new customer created. See the docs

 
Try it
New Invoice Created from the Square API

Emit new event for every new invoice created. See the docs

 
Try it
New Order Created from the Square API

Emit new event for every new order created. See the docs

 
Try it
Create Customer with the Square API

Creates a new customer for a business. Must provide at least one of the following: Given Name, Family Name, Company Name, Email Address, or Phone Number. See the docs.

 
Try it
Create Invoice with the Square API

Creates a draft invoice for an order. You must send (publish) the invoice before Square can process it. See the documentation.

 
Try it
Create Order with the Square API

Creates a new order that can include information about products for purchase. See docs here.

 
Try it
Send Invoice with the Square API

Publishes the latest version of a specified invoice. See the docs.

 
Try it

Authentication

Square uses OAuth authentication. When you connect your Square account, Pipedream will open a popup window where you can sign into Square and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Square API.

Pipedream requests the following authorization scopes when you connect your account:

CUSTOMERS_READCUSTOMERS_WRITEPAYMENTS_READPAYMENTS_WRITEORDERS_READORDERS_WRITESUBSCRIPTIONS_READSUBSCRIPTIONS_WRITEITEMS_READITEMS_WRITEINVOICES_READINVOICES_WRITELOYALTY_READLOYALTY_WRITEEMPLOYEES_READEMPLOYEES_WRITEMERCHANT_PROFILE_READBANK_ACCOUNTS_READSETTLEMENTS_READDEVELOPER_APPLICATION_WEBHOOKS_WRITEAPPOINTMENTS_ALL_READAPPOINTMENTS_READ
OAuth Request Configurations:
  1. authorization
    GEThttps://connect.squareup.com/oauth2/authorize?client_id={{oauth.client_id}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=code&scope={{oauth.space_separated_scopes}}
  2. accessToken
    POSThttps://connect.squareup.com/oauth2/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}
  3. refreshToken
    POSThttps://connect.squareup.com/oauth2/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&grant_type=refresh_token&refresh_token={{oauth.refresh_token}}