This integration is powered by Singer's Square tap and certified by Stitch. Check out and contribute to the repo on GitHub.
For support, contact Stitch support.
Square integration summary
Stitch’s Square integration replicates data using the Square V2 and Connect V1 APIs. Refer to the Schema section for a list of objects available for replication.
Square feature snapshot
A high-level look at Stitch's Square (v1) integration, including release status, useful links, and the features supported in Stitch.
STITCH | |||
Release status |
Deprecated on July 19, 2023 |
Supported by | |
Stitch plan |
Standard |
API availability |
Not available |
Singer GitHub repository | |||
REPLICATION SETTINGS | |||
Anchor Scheduling |
Supported |
Advanced Scheduling |
Supported |
Table-level reset |
Unsupported |
Configurable Replication Methods |
Unsupported |
DATA SELECTION | |||
Table selection |
Supported |
Column selection |
Supported |
Select all |
Supported |
||
TRANSPARENCY | |||
Extraction Logs |
Supported |
Loading Reports |
Supported |
Connecting Square
Square setup requirements
To set up Square in Stitch, you need:
-
To log into your Square sandbox environment, if you’re connecting a sandbox. To allow Stitch to successfully access the sandbox, you must be logged into it prior to setting up the Square integration in Stitch.
If you’re connecting a production environment, start with Step 2 of this guide.
Step 1: Login to your Square sandbox environment
To connect to your Square sandbox environment, you’ll need to login to your sandbox environment before completing the next step. This is required to grant Stitch authorization to access the sandbox environment. For more info, refer to the Square documentation.
Step 2: Add Square as a Stitch data source
- Sign into your Stitch account.
-
On the Stitch Dashboard page, click the Add Integration button.
-
Click the Square icon.
-
Enter a name for the integration. This is the name that will display on the Stitch Dashboard for the integration; it’ll also be used to create the schema in your destination.
For example, the name “Stitch Square” would create a schema called
stitch_square
in the destination. Note: Schema names cannot be changed after you save the integration. - Check the Connect to a sandbox environment if choosing to connect to your Square sandbox. Note: Make sure you completed Step 1 before continuing.
Step 3: Define the historical replication start date
The Sync Historical Data setting defines the starting date for your Square integration. This means that:
- For tables using Key-based Incremental Replication, data equal to or newer than this date will be replicated to your destination.
- For tables using Full Table Replication, all data - including records that are older, equal to, or newer than this date - will be replicated to your destination.
Change this setting if you want to replicate data beyond Square’s default setting of 1 year. For a detailed look at historical replication jobs, check out the Syncing Historical SaaS Data guide.
Step 4: Create a replication schedule
In the Replication Frequency section, you’ll create the integration’s replication schedule. An integration’s replication schedule determines how often Stitch runs a replication job, and the time that job begins.
Square integrations support the following replication scheduling methods:
-
Advanced Scheduling using Cron (Advanced or Premium plans only)
To keep your row usage low, consider setting the integration to replicate less frequently. See the Understanding and Reducing Your Row Usage guide for tips on reducing your usage.
Step 5: Authorizing Stitch to Access Square
Lastly, you’ll be directed to Square’s website to complete the setup.
- Enter your Square credentials and click Login.
- After the authorization process successfully completes, you’ll be redirected back to Stitch.
- Click All Done.
Step 6: Set objects to replicate
The last step is to select the tables and columns you want to replicate. Learn about the available tables for this integration.
Note: If a replication job is currently in progress, new selections won’t be used until the next job starts.
For Square integrations, you can select:
-
Individual tables and columns
-
All tables and columns
Click the tabs to view instructions for each selection method.
- In the integration’s Tables to Replicate tab, locate a table you want to replicate.
-
To track a table, click the checkbox next to the table’s name. A blue checkmark means the table is set to replicate.
-
To track a column, click the checkbox next to the column’s name. A blue checkmark means the column is set to replicate.
- Repeat this process for all the tables and columns you want to replicate.
- When finished, click the Finalize Your Selections button at the bottom of the screen to save your selections.
- Click into the integration from the Stitch Dashboard page.
-
Click the Tables to Replicate tab.
- In the list of tables, click the box next to the Table Names column.
-
In the menu that displays, click Track all Tables and Fields:
- Click the Finalize Your Selections button at the bottom of the page to save your data selections.
Initial and historical replication jobs
After you finish setting up Square, its Sync Status may show as Pending on either the Stitch Dashboard or in the Integration Details page.
For a new integration, a Pending status indicates that Stitch is in the process of scheduling the initial replication job for the integration. This may take some time to complete.
Initial replication jobs with Anchor Scheduling
If using Anchor Scheduling, an initial replication job may not kick off immediately. This depends on the selected Replication Frequency and Anchor Time. Refer to the Anchor Scheduling documentation for more information.
Free historical data loads
The first seven days of replication, beginning when data is first replicated, are free. Rows replicated from the new integration during this time won’t count towards your quota. Stitch offers this as a way of testing new integrations, measuring usage, and ensuring historical data volumes don’t quickly consume your quota.
Square table reference
Schemas and versioning
Schemas and naming conventions can change from version to version, so we recommend verifying your integration’s version before continuing.
The schema and info displayed below is for version 1 of this integration.
Table and column names in your destination
Depending on your destination, table and column names may not appear as they are outlined below.
For example: Object names are lowercased in Redshift (CusTomERs
> customers
), while case is maintained in PostgreSQL destinations (CusTomERs
> CusTomERs
). Refer to the Loading Guide for your destination for more info.
bank_accounts
Replication Method : |
Full Table |
Primary Key |
id |
API endpoint : |
The bank_accounts
contains information about a merchant’s bank account in Square.
Note: This table can’t be replicated if the Connect to a sandbox environment box is checked in the integration’s settings due to limits imposed by Square.
id
The bank account ID. Reference: |
account_number_suffix
|
account_type
|
bank_name
|
country
|
creditable
|
currency
|
debitable
|
holder_name
|
location_id
The ID of the location associated with the bank account. Reference:
|
primary_bank_identification_number
|
status
|
version
|
cash_drawer_shifts
Replication Method : |
Full Table |
Primary Key |
id |
API endpoint : |
The cash_drawer_shifts
table contains infomration about cash transactions in Square.
id
The cash drawer shift ID. |
||
closed_at
|
||
closed_cash_money
|
||
description
|
||
ended_at
|
||
expected_cash_money
|
||
opened_at
|
||
opened_cash_money
|
||
state
|
categories
Replication Method : |
Key-based Incremental |
Replication Key |
updated_at |
Primary Key |
id |
API endpoint : |
The categories
table contains information about item categories for a given location in Square.
id
The category ID. Reference: |
updated_at
|
absent_at_location_ids
|
category_data
|
is_deleted
|
present_at_all_locations
|
type
|
version
|
customers
Replication Method : |
Key-based Incremental |
Replication Key |
updated_at |
Primary Key |
id |
API endpoint : |
The customers
contains information about customer profiles associated with your Square account.
id
The customer ID. |
|||||
updated_at
|
|||||
address
|
|||||
birthday
|
|||||
company_name
|
|||||
created_at
|
|||||
creation_source
|
|||||
email_address
|
|||||
family_name
|
|||||
given_name
|
|||||
nickname
|
|||||
note
|
|||||
phone_number
|
|||||
preferences
|
discounts
Replication Method : |
Key-based Incremental |
Replication Key |
updated_at |
Primary Key |
id |
API endpoint : |
The discounts
table contains information about discounts for a given location in Square.
id
The discount ID. |
||||||||||
updated_at
The time the location was last updated. |
||||||||||
absent_at_location_ids
|
||||||||||
discount_data
|
||||||||||
is_deleted
|
||||||||||
present_at_all_locations
|
||||||||||
type
|
||||||||||
version
|
employees
Replication Method : |
Full Table |
Primary Key |
id |
API endpoint : |
The employees
table contains information about your employees in Square.
id
The employee ID. Reference: |
created_at
|
email
|
first_name
|
is_owner
|
last_name
|
location_ids
A list of locations associated with the employee. |
status
|
updated_at
|
inventories
Replication Method : |
Full Table |
Primary Key |
None |
API endpoint : | Loading Behavior: |
The inventories
table contains info about the current calculated stock count for a Square location.
calculated_at
|
catalog_object_id
|
catalog_object_type
|
location_id
The ID of the location associated with the inventory. Reference:
|
quantity
|
state
|
Replication Method : |
Key-based Incremental |
Replication Key |
updated_at |
Primary Key |
id |
API endpoint : |
The items
table contains information about items for a given location in Square.
locations
Replication Method : |
Full Table |
Primary Key |
id |
API endpoint : |
The locations
table contains information about all of your business locations in Square.
id
The location ID. Reference:
|
|||||||||||||||
address
|
|||||||||||||||
business_email
|
|||||||||||||||
business_hours
|
|||||||||||||||
business_name
|
|||||||||||||||
capabilities
|
|||||||||||||||
coordinates
|
|||||||||||||||
country
|
|||||||||||||||
created_at
|
|||||||||||||||
currency
|
|||||||||||||||
description
|
|||||||||||||||
facebook_url
|
|||||||||||||||
instagram_username
|
|||||||||||||||
language_code
|
|||||||||||||||
mcc
|
|||||||||||||||
merchant_id
|
|||||||||||||||
name
|
|||||||||||||||
phone_number
|
|||||||||||||||
status
|
|||||||||||||||
timezone
|
|||||||||||||||
twitter_username
|
|||||||||||||||
type
|
|||||||||||||||
website_url
|
modifier_lists
Replication Method : |
Key-based Incremental |
Replication Key |
updated_at |
Primary Key |
id |
API endpoint : |
The modifier_lists
table contains information about modifier lists for a given location in Square.
id
The modifier list ID. Reference: |
||||||||||||||||||
updated_at
The time the modifier list was last updated. |
||||||||||||||||||
absent_at_location_ids
A list of locations where the modifier list is unavailable.
|
||||||||||||||||||
is_deleted
|
||||||||||||||||||
modifier_list_data
|
||||||||||||||||||
present_at_all_locations
|
||||||||||||||||||
type
|
||||||||||||||||||
version
|
orders
Replication Method : |
Key-based Incremental |
Replication Key |
updated_at |
Primary Key |
id |
API endpoint : |
The orders
table contains information about order updates in Square.
id
The order ID. Reference: |
||||||||||||||||||||||
updated_at
|
||||||||||||||||||||||
amount_money
|
||||||||||||||||||||||
card_details
|
||||||||||||||||||||||
category_data
|
||||||||||||||||||||||
closed_at
|
||||||||||||||||||||||
created_at
|
||||||||||||||||||||||
delay_action
|
||||||||||||||||||||||
delay_duration
|
||||||||||||||||||||||
delayed_until
|
||||||||||||||||||||||
discount_data
|
||||||||||||||||||||||
fulfillments
|
||||||||||||||||||||||
is_deleted
|
||||||||||||||||||||||
line_items
|
||||||||||||||||||||||
location_id
The ID of the location associated with the order. Reference:
|
||||||||||||||||||||||
net_amounts
|
||||||||||||||||||||||
note
|
||||||||||||||||||||||
order_id
The order ID. Reference: |
||||||||||||||||||||||
payment_id
The order payment ID. Reference: |
||||||||||||||||||||||
present_at_all_locations
|
||||||||||||||||||||||
processing_fee
|
||||||||||||||||||||||
reason
|
||||||||||||||||||||||
receipt_number
|
||||||||||||||||||||||
receipt_url
|
||||||||||||||||||||||
refund_ids
A list of refunds associated with the order.
|
||||||||||||||||||||||
refunded_money
|
||||||||||||||||||||||
refunds
|
||||||||||||||||||||||
return_amounts
|
||||||||||||||||||||||
returns
|
||||||||||||||||||||||
source
|
||||||||||||||||||||||
source_type
|
||||||||||||||||||||||
state
|
||||||||||||||||||||||
status
|
||||||||||||||||||||||
tax_data
|
||||||||||||||||||||||
tenders
|
||||||||||||||||||||||
total_discount_money
|
||||||||||||||||||||||
total_money
|
||||||||||||||||||||||
total_service_charge_money
|
||||||||||||||||||||||
total_tax_money
|
||||||||||||||||||||||
total_tip_money
|
||||||||||||||||||||||
type
|
||||||||||||||||||||||
version
|
payments
Replication Method : |
Full Table |
Primary Key |
id |
API endpoint : |
The payments
table contains information about all payments taken in Square.
id
The payment ID. Reference: |
||||||||||||||||||||
amount_money
|
||||||||||||||||||||
card_details
|
||||||||||||||||||||
cardholder_name
|
||||||||||||||||||||
created_at
|
||||||||||||||||||||
customer_id
|
||||||||||||||||||||
delay_action
|
||||||||||||||||||||
delay_duration
|
||||||||||||||||||||
delayed_until
|
||||||||||||||||||||
location_id
The ID of the location associated with the payment. Reference:
|
||||||||||||||||||||
note
|
||||||||||||||||||||
order_id
The ID of the order associated with the payment. Reference: |
||||||||||||||||||||
processing_fee
|
||||||||||||||||||||
receipt_number
|
||||||||||||||||||||
receipt_url
|
||||||||||||||||||||
reference_id
|
||||||||||||||||||||
refund_ids
A list of refunds associated with the payment.
|
||||||||||||||||||||
refunded_money
|
||||||||||||||||||||
source_type
|
||||||||||||||||||||
status
|
||||||||||||||||||||
total_money
|
||||||||||||||||||||
updated_at
|
refunds
Replication Method : |
Full Table |
Primary Key |
id |
API endpoint : |
The refunds
table contains information about refunds on items in Square.
id
The refund ID. Reference: |
|||
amount_money
|
|||
created_at
|
|||
location_id
The ID of the location associated with the refund. Reference:
|
|||
order_id
The ID of the order associated with the refund. Reference: |
|||
payment_id
The ID of the payment associated with the refund. Reference: |
|||
processing_fee
|