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] (https://community.qlik.com/t5/Support/ct-p/qlikSupport)

Stitch plan

Standard

API availability

Not available

Singer GitHub repository

singer-io/tap-square

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

  1. Sign into your Stitch account.
  2. On the Stitch Dashboard page, click the Add Integration button.

  3. Click the Square icon.

  4. 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.

  5. 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 data equal to or newer than this date will be replicated to your data warehouse.

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:

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.

  1. Enter your Square credentials and click Login.
  2. After the authorization process successfully completes, you’ll be redirected back to Stitch.
  3. 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:

  1. Individual tables and columns

  2. All tables and columns

Click the tabs to view instructions for each selection method.

  1. In the integration’s Tables to Replicate tab, locate a table you want to replicate.
  2. To track a table, click the checkbox next to the table’s name. A blue checkmark means the table is set to replicate.

  3. To track a column, click the checkbox next to the column’s name. A blue checkmark means the column is set to replicate.

  4. Repeat this process for all the tables and columns you want to replicate.
  5. When finished, click the Finalize Your Selections button at the bottom of the screen to save your selections.
  1. Click into the integration from the Stitch Dashboard page.
  2. Click the Tables to Replicate tab.

  3. In the list of tables, click the box next to the Table Names column.
  4. In the menu that displays, click Track all Tables and Fields:

    The Track all Tables and Fields menu in the Tables to Replicate tab

  5. 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.

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

bank_accounts

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.

Replication Method

Full Table

Primary Key

id

Useful links

Square documentation

bank_accounts schema on GitHub

Square API method

Join bank_accounts with on
settlements
bank_accounts.id = settlements.bank_account_id
categories
bank_accounts.id = categories.absent_at_location_ids
discounts
bank_accounts.id = discounts.absent_at_location_ids
employees
bank_accounts.id = employees.location_ids
inventories
bank_accounts.id = inventories.location_id
items
bank_accounts.id = items.absent_at_location_ids
bank_accounts.id = items.item_data.variations.item_variation_data.location_overrides.location_id
bank_accounts.id = items.item_data.variations.present_at_location_ids
bank_accounts.id = items.present_at_location_ids
locations
bank_accounts.id = locations.id
modifier_lists
bank_accounts.id = modifier_lists.absent_at_location_ids
orders
bank_accounts.id = orders.id
bank_accounts.id = orders.refunds.id
bank_accounts.id = orders.tenders.id
payments
bank_accounts.id = payments.id
refunds
bank_accounts.id = refunds.id
shifts
bank_accounts.id = shifts.id
taxes
bank_accounts.id = taxes.absent_at_location_ids

account_number_suffix

STRING

account_type

STRING

bank_name

STRING

country

STRING

creditable

BOOLEAN

currency

STRING

debitable

BOOLEAN

holder_name

STRING

id

STRING

location_id

STRING

primary_bank_identification_number

STRING

status

STRING

version

INTEGER

cash_drawer_shifts

The cash_drawer_shifts table contains infomration about cash transactions in Square.

Replication Method

Full Table

Primary Key

id

Useful links

Square documentation

cash_drawer_shifts schema on GitHub

Square API method

closed_at

DATE-TIME

closed_cash_money

OBJECT

amount

INTEGER

currency

STRING

description

STRING

ended_at

DATE-TIME

expected_cash_money

OBJECT

amount

INTEGER

currency

STRING

id

STRING

opened_at

DATE-TIME

opened_cash_money

OBJECT

amount

INTEGER

currency

STRING

state

STRING

categories

The categories table contains information about item categories for a given location in Square.

Replication Method

Key-based Incremental

Primary Key

id

Replication Key

updated_at

Useful links

Square documentation

categories schema on GitHub

Square API method

Join categories with on
items
categories.id = items.item_data.category_id
categories.absent_at_location_ids = items.absent_at_location_ids
categories.absent_at_location_ids = items.item_data.variations.item_variation_data.location_overrides.location_id
categories.absent_at_location_ids = items.item_data.variations.present_at_location_ids
categories.absent_at_location_ids = items.present_at_location_ids
bank_accounts
categories.absent_at_location_ids = bank_accounts.id
discounts
categories.absent_at_location_ids = discounts.absent_at_location_ids
employees
categories.absent_at_location_ids = employees.location_ids
inventories
categories.absent_at_location_ids = inventories.location_id
locations
categories.absent_at_location_ids = locations.id
modifier_lists
categories.absent_at_location_ids = modifier_lists.absent_at_location_ids
orders
categories.absent_at_location_ids = orders.id
categories.absent_at_location_ids = orders.refunds.id
categories.absent_at_location_ids = orders.tenders.id
payments
categories.absent_at_location_ids = payments.id
refunds
categories.absent_at_location_ids = refunds.id
shifts
categories.absent_at_location_ids = shifts.id
taxes
categories.absent_at_location_ids = taxes.absent_at_location_ids

absent_at_location_ids

ARRAY

category_data

OBJECT

id

STRING

is_deleted

BOOLEAN

present_at_all_locations

BOOLEAN

type

STRING

updated_at

DATE-TIME

version

INTEGER

customers

The customers contains information about customer profiles associated with your Square account.

Replication Method

Key-based Incremental

Primary Key

id

Replication Key

updated_at

Useful links

customers schema on GitHub

Square API method

address

OBJECT

address_line_1

STRING

administrative_district_level_1

STRING

country

STRING

locality

STRING

postal_code

STRING

birthday

DATE-TIME

STRING

company_name

STRING

created_at

DATE-TIME

creation_source

STRING

email_address

STRING

family_name

STRING

given_name

STRING

id

STRING

nickname

STRING

note

STRING

phone_number

STRING

preferences

OBJECT

email_unsubscribed

BOOLEAN

updated_at

DATE-TIME

discounts

The discounts table contains information about discounts for a given location in Square.

Replication Method

Key-based Incremental

Primary Key

id

Replication Key

updated_at

Useful links

discounts schema on GitHub

Square API method

Join discounts with on
bank_accounts
discounts.absent_at_location_ids = bank_accounts.id
categories
discounts.absent_at_location_ids = categories.absent_at_location_ids
employees
discounts.absent_at_location_ids = employees.location_ids
inventories
discounts.absent_at_location_ids = inventories.location_id
items
discounts.absent_at_location_ids = items.absent_at_location_ids
discounts.absent_at_location_ids = items.item_data.variations.item_variation_data.location_overrides.location_id
discounts.absent_at_location_ids = items.item_data.variations.present_at_location_ids
discounts.absent_at_location_ids = items.present_at_location_ids
locations
discounts.absent_at_location_ids = locations.id
modifier_lists
discounts.absent_at_location_ids = modifier_lists.absent_at_location_ids
orders
discounts.absent_at_location_ids = orders.id
discounts.absent_at_location_ids = orders.refunds.id
discounts.absent_at_location_ids = orders.tenders.id
payments
discounts.absent_at_location_ids = payments.id
refunds
discounts.absent_at_location_ids = refunds.id
shifts
discounts.absent_at_location_ids = shifts.id
taxes
discounts.absent_at_location_ids = taxes.absent_at_location_ids

absent_at_location_ids

ARRAY

discount_data

OBJECT

amount_money

OBJECT

amount

INTEGER

currency

STRING

application_method

STRING

discount_type

STRING

label_color

STRING

modify_tax_basis

STRING

name

STRING

percentage

STRING

pin_required

BOOLEAN

id

STRING

is_deleted

BOOLEAN

present_at_all_locations

BOOLEAN

type

STRING

updated_at

DATE-TIME

version

INTEGER

employees

The employees table contains information about your employees in Square.

Replication Method

Full Table

Primary Key

id

Useful links

Square documentation

employees schema on GitHub

Square API method

Join employees with on
shifts
employees.id = shifts.employee_id
employees.location_ids = shifts.id
bank_accounts
employees.location_ids = bank_accounts.id
categories
employees.location_ids = categories.absent_at_location_ids
discounts
employees.location_ids = discounts.absent_at_location_ids
inventories
employees.location_ids = inventories.location_id
items
employees.location_ids = items.absent_at_location_ids
employees.location_ids = items.item_data.variations.item_variation_data.location_overrides.location_id
employees.location_ids = items.item_data.variations.present_at_location_ids
employees.location_ids = items.present_at_location_ids
locations
employees.location_ids = locations.id
modifier_lists
employees.location_ids = modifier_lists.absent_at_location_ids
orders
employees.location_ids = orders.id
employees.location_ids = orders.refunds.id
employees.location_ids = orders.tenders.id
payments
employees.location_ids = payments.id
refunds
employees.location_ids = refunds.id
taxes
employees.location_ids = taxes.absent_at_location_ids

created_at

DATE-TIME

email

STRING

first_name

STRING

id

STRING

is_owner

BOOLEAN

last_name

STRING

location_ids

ARRAY

status

STRING

updated_at

DATE-TIME

inventories

The inventories table contains info about the current calculated stock count for a Square location.

Replication Method

Full Table

Loading Behavior

Append-Only

Useful links

Square documentation

inventories schema on GitHub

Square API method

Join inventories with on
bank_accounts
inventories.location_id = bank_accounts.id
categories
inventories.location_id = categories.absent_at_location_ids
discounts
inventories.location_id = discounts.absent_at_location_ids
employees
inventories.location_id = employees.location_ids
items
inventories.location_id = items.absent_at_location_ids
inventories.location_id = items.item_data.variations.item_variation_data.location_overrides.location_id
inventories.location_id = items.item_data.variations.present_at_location_ids
inventories.location_id = items.present_at_location_ids
locations
inventories.location_id = locations.id
modifier_lists
inventories.location_id = modifier_lists.absent_at_location_ids
orders
inventories.location_id = orders.id
inventories.location_id = orders.refunds.id
inventories.location_id = orders.tenders.id
payments
inventories.location_id = payments.id
refunds
inventories.location_id = refunds.id
shifts
inventories.location_id = shifts.id
taxes
inventories.location_id = taxes.absent_at_location_ids

calculated_at

DATE-TIME

catalog_object_id

STRING

catalog_object_type

STRING

location_id

STRING

quantity

STRING

state

STRING

items

The items table contains information about items for a given location in Square.

Replication Method

Key-based Incremental

Primary Key

id

Replication Key

updated_at

Useful links

Square documentation

items schema on GitHub

Square API method

Join items with on
categories
items.item_data.category_id = categories.id
items.absent_at_location_ids = categories.absent_at_location_ids
items.item_data.variations.item_variation_data.location_overrides.location_id = categories.absent_at_location_ids
items.item_data.variations.present_at_location_ids = categories.absent_at_location_ids
items.present_at_location_ids = categories.absent_at_location_ids
bank_accounts
items.absent_at_location_ids = bank_accounts.id
items.item_data.variations.item_variation_data.location_overrides.location_id = bank_accounts.id
items.item_data.variations.present_at_location_ids = bank_accounts.id
items.present_at_location_ids = bank_accounts.id
discounts
items.absent_at_location_ids = discounts.absent_at_location_ids
items.item_data.variations.item_variation_data.location_overrides.location_id = discounts.absent_at_location_ids
items.item_data.variations.present_at_location_ids = discounts.absent_at_location_ids
items.present_at_location_ids = discounts.absent_at_location_ids
employees
items.absent_at_location_ids = employees.location_ids
items.item_data.variations.item_variation_data.location_overrides.location_id = employees.location_ids
items.item_data.variations.present_at_location_ids = employees.location_ids
items.present_at_location_ids = employees.location_ids
inventories
items.absent_at_location_ids = inventories.location_id
items.item_data.variations.item_variation_data.location_overrides.location_id = inventories.location_id
items.item_data.variations.present_at_location_ids = inventories.location_id
items.present_at_location_ids = inventories.location_id
locations
items.absent_at_location_ids = locations.id
items.item_data.variations.item_variation_data.location_overrides.location_id = locations.id
items.item_data.variations.present_at_location_ids = locations.id
items.present_at_location_ids = locations.id
modifier_lists
items.absent_at_location_ids = modifier_lists.absent_at_location_ids
items.item_data.variations.item_variation_data.location_overrides.location_id = modifier_lists.absent_at_location_ids
items.item_data.variations.present_at_location_ids = modifier_lists.absent_at_location_ids
items.present_at_location_ids = modifier_lists.absent_at_location_ids
items.item_data.modifier_list_info.modifier_list_id = modifier_lists.id
items.item_data.modifier_list_info.modifier_list_id = modifier_lists.modifier_list_data.modifiers.modifier_data.modifier_list_id
orders
items.absent_at_location_ids = orders.id
items.item_data.variations.item_variation_data.location_overrides.location_id = orders.id
items.item_data.variations.present_at_location_ids = orders.id
items.present_at_location_ids = orders.id
items.absent_at_location_ids = orders.refunds.id
items.item_data.variations.item_variation_data.location_overrides.location_id = orders.refunds.id
items.item_data.variations.present_at_location_ids = orders.refunds.id
items.present_at_location_ids = orders.refunds.id
items.absent_at_location_ids = orders.tenders.id
items.item_data.variations.item_variation_data.location_overrides.location_id = orders.tenders.id
items.item_data.variations.present_at_location_ids = orders.tenders.id
items.present_at_location_ids = orders.tenders.id
payments
items.absent_at_location_ids = payments.id
items.item_data.variations.item_variation_data.location_overrides.location_id = payments.id
items.item_data.variations.present_at_location_ids = payments.id
items.present_at_location_ids = payments.id
refunds
items.absent_at_location_ids = refunds.id
items.item_data.variations.item_variation_data.location_overrides.location_id = refunds.id
items.item_data.variations.present_at_location_ids = refunds.id
items.present_at_location_ids = refunds.id
shifts
items.absent_at_location_ids = shifts.id
items.item_data.variations.item_variation_data.location_overrides.location_id = shifts.id
items.item_data.variations.present_at_location_ids = shifts.id
items.present_at_location_ids = shifts.id
taxes
items.absent_at_location_ids = taxes.absent_at_location_ids
items.item_data.variations.item_variation_data.location_overrides.location_id = taxes.absent_at_location_ids
items.item_data.variations.present_at_location_ids = taxes.absent_at_location_ids
items.present_at_location_ids = taxes.absent_at_location_ids
items.item_data.tax_ids = taxes.id

absent_at_location_ids

ARRAY

id

STRING

is_deleted

BOOLEAN

item_data

OBJECT

abbreviation

STRING

available_electronically

BOOLEAN

available_for_pickup

BOOLEAN

available_online

BOOLEAN

category_id

STRING

description

STRING

item_options

ARRAY

item_option_id

STRING

label_color

STRING

legacy_tax_ids

ARRAY

modifier_list_info

ARRAY

enabled

BOOLEAN

modifier_list_id

STRING

name

STRING

product_type

STRING

skip_modifier_screen

BOOLEAN

tax_ids

ARRAY

variations

ARRAY

id

STRING

is_deleted

BOOLEAN

item_variation_data

OBJECT

inventory_alert_type

STRING

item_id

STRING

location_overrides

ARRAY

inventory_alert_threshold

INTEGER

inventory_alert_type

STRING

location_id

STRING

sold_out

BOOLEAN

track_inventory

BOOLEAN

name

STRING

ordinal

INTEGER

price_money

OBJECT

amount

INTEGER

currency

STRING

pricing_type

STRING

sku

STRING

track_inventory

BOOLEAN

user_data

STRING

present_at_all_locations

BOOLEAN

present_at_location_ids

ARRAY

type

STRING

updated_at

DATE-TIME

version

INTEGER

visibility

STRING

present_at_all_locations

BOOLEAN

present_at_location_ids

ARRAY

type

STRING

updated_at

DATE-TIME

version

INTEGER

locations

The locations table contains information about all of your business locations in Square.

Replication Method

Full Table

Primary Key

id

Useful links

Square documentation

locations schema on GitHub

Square API method

Join locations with on
bank_accounts
locations.id = bank_accounts.id
categories
locations.id = categories.absent_at_location_ids
discounts
locations.id = discounts.absent_at_location_ids
employees
locations.id = employees.location_ids
inventories
locations.id = inventories.location_id
items
locations.id = items.absent_at_location_ids
locations.id = items.item_data.variations.item_variation_data.location_overrides.location_id
locations.id = items.item_data.variations.present_at_location_ids
locations.id = items.present_at_location_ids
modifier_lists
locations.id = modifier_lists.absent_at_location_ids
orders
locations.id = orders.id
locations.id = orders.refunds.id
locations.id = orders.tenders.id
payments
locations.id = payments.id
refunds
locations.id = refunds.id
shifts
locations.id = shifts.id
taxes
locations.id = taxes.absent_at_location_ids

address

OBJECT

address_line_1

STRING

address_line_2

STRING

address_line_3

STRING

administrative_district_level_1

STRING

administrative_district_level_2

STRING

administrative_district_level_3

STRING

country

STRING

first_name

STRING

last_name

STRING

locality

STRING

organization

STRING

postal_code

STRING

sublocality

STRING

sublocality_2

STRING

sublocality_3

STRING

business_email

STRING

business_hours

OBJECT

periods

ARRAY

day_of_week

STRING

end_local_time

STRING

start_local_time

STRING

business_name

STRING

capabilities

ARRAY

coordinates

OBJECT

latitude

NUMBER

longitude

NUMBER

country

STRING

created_at

DATE-TIME

currency

STRING

description

STRING

facebook_url

STRING

id

STRING

instagram_username

STRING

language_code

STRING

mcc

STRING

merchant_id

STRING

name

STRING

phone_number

STRING

status

STRING

timezone

STRING

twitter_username

STRING

type

STRING

website_url

STRING

modifier_lists

The modifier_lists table contains information about modifier lists for a given location in Square.

Replication Method

Key-based Incremental

Primary Key

id

Replication Key

updated_at

Useful links

Square documentation

modifier_lists schema on GitHub

Square API method

Join modifier_lists with on
bank_accounts
modifier_lists.absent_at_location_ids = bank_accounts.id
categories
modifier_lists.absent_at_location_ids = categories.absent_at_location_ids
discounts
modifier_lists.absent_at_location_ids = discounts.absent_at_location_ids
employees
modifier_lists.absent_at_location_ids = employees.location_ids
inventories
modifier_lists.absent_at_location_ids = inventories.location_id
items
modifier_lists.absent_at_location_ids = items.absent_at_location_ids
modifier_lists.absent_at_location_ids = items.item_data.variations.item_variation_data.location_overrides.location_id
modifier_lists.absent_at_location_ids = items.item_data.variations.present_at_location_ids
modifier_lists.absent_at_location_ids = items.present_at_location_ids
modifier_lists.id = items.item_data.modifier_list_info.modifier_list_id
modifier_lists.modifier_list_data.modifiers.modifier_data.modifier_list_id = items.item_data.modifier_list_info.modifier_list_id
locations
modifier_lists.absent_at_location_ids = locations.id
orders
modifier_lists.absent_at_location_ids = orders.id
modifier_lists.absent_at_location_ids = orders.refunds.id
modifier_lists.absent_at_location_ids = orders.tenders.id
payments
modifier_lists.absent_at_location_ids = payments.id
refunds
modifier_lists.absent_at_location_ids = refunds.id
shifts
modifier_lists.absent_at_location_ids = shifts.id
taxes
modifier_lists.absent_at_location_ids = taxes.absent_at_location_ids

absent_at_location_ids

ARRAY

id

STRING

is_deleted

BOOLEAN

modifier_list_data

OBJECT

modifiers

ARRAY

id

STRING

is_deleted

BOOLEAN

modifier_data

OBJECT

modifier_list_id

STRING

name

STRING

on_by_default

BOOLEAN

ordinal

INTEGER

price_money

OBJECT

amount

INTEGER

currency

STRING

present_at_all_locations

BOOLEAN

type

STRING

updated_at

DATE-TIME

version

INTEGER

name

STRING

ordinal

INTEGER

selection_type

STRING

present_at_all_locations

BOOLEAN

type

STRING

updated_at

DATE-TIME

version

INTEGER

orders

The orders table contains information about order updates in Square.

Replication Method

Key-based Incremental

Primary Key

id

Replication Key

updated_at

Useful links

Square documentation

orders schema on GitHub

Square API method

Join orders with on
bank_accounts
orders.id = bank_accounts.id
orders.refunds.id = bank_accounts.id
orders.tenders.id = bank_accounts.id
categories
orders.id = categories.absent_at_location_ids
orders.refunds.id = categories.absent_at_location_ids
orders.tenders.id = categories.absent_at_location_ids
discounts
orders.id = discounts.absent_at_location_ids
orders.refunds.id = discounts.absent_at_location_ids
orders.tenders.id = discounts.absent_at_location_ids
employees
orders.id = employees.location_ids
orders.refunds.id = employees.location_ids
orders.tenders.id = employees.location_ids
inventories
orders.id = inventories.location_id
orders.refunds.id = inventories.location_id
orders.tenders.id = inventories.location_id
items
orders.id = items.absent_at_location_ids
orders.refunds.id = items.absent_at_location_ids
orders.tenders.id = items.absent_at_location_ids
orders.id = items.item_data.variations.item_variation_data.location_overrides.location_id
orders.refunds.id = items.item_data.variations.item_variation_data.location_overrides.location_id
orders.tenders.id = items.item_data.variations.item_variation_data.location_overrides.location_id
orders.id = items.item_data.variations.present_at_location_ids
orders.refunds.id = items.item_data.variations.present_at_location_ids
orders.tenders.id = items.item_data.variations.present_at_location_ids
orders.id = items.present_at_location_ids
orders.refunds.id = items.present_at_location_ids
orders.tenders.id = items.present_at_location_ids
locations
orders.id = locations.id
orders.refunds.id = locations.id
orders.tenders.id = locations.id
modifier_lists
orders.id = modifier_lists.absent_at_location_ids
orders.refunds.id = modifier_lists.absent_at_location_ids
orders.tenders.id = modifier_lists.absent_at_location_ids
payments
orders.id = payments.id
orders.refunds.id = payments.id
orders.tenders.id = payments.id
orders.id = payments.order_id
orders.order_id = payments.order_id
orders.returns.source_order_id = payments.order_id
orders.payment_id = payments.id
orders.refund_ids = payments.order_id
orders.refunds.id = payments.order_id
orders.refund_ids = payments.refund_ids
orders.refunds.id = payments.refund_ids
refunds
orders.id = refunds.id
orders.refunds.id = refunds.id
orders.tenders.id = refunds.id
orders.id = refunds.order_id
orders.order_id = refunds.order_id
orders.returns.source_order_id = refunds.order_id
orders.payment_id = refunds.payment_id
orders.tenders.id = refunds.payment_id
orders.refund_ids = refunds.id
shifts
orders.id = shifts.id
orders.refunds.id = shifts.id
orders.tenders.id = shifts.id
taxes
orders.id = taxes.absent_at_location_ids
orders.refunds.id = taxes.absent_at_location_ids
orders.tenders.id = taxes.absent_at_location_ids

amount_money

OBJECT

amount

INTEGER

currency

STRING

card_details

OBJECT

avs_status

STRING

card

OBJECT

bin

STRING

card_brand

STRING

card_type

STRING

exp_month

INTEGER

exp_year

INTEGER

fingerprint

STRING

last_4

STRING

prepaid_type

STRING

cvv_status

STRING

entry_method

STRING

statement_description

STRING

status

STRING

category_data

OBJECT

closed_at

DATE-TIME

created_at

DATE-TIME

delay_action

STRING

delay_duration

STRING

delayed_until

STRING

discount_data

OBJECT

amount_money

OBJECT

amount

INTEGER

currency

STRING

discount_type

STRING

name

STRING

fulfillments

ARRAY

pickup_details

OBJECT

canceled_at

DATE-TIME

expired_at

DATE-TIME

expires_at

DATE-TIME

note

STRING

pickup_at

DATE-TIME

recipient

OBJECT

display_name

STRING

rejected_at

DATE-TIME

state

STRING

type

STRING

uid

STRING

id

STRING

is_deleted

BOOLEAN

line_items

ARRAY

base_price_money

OBJECT

amount

INTEGER

currency

STRING

catalog_object_id

STRING

gross_sales_money

OBJECT

amount

INTEGER

currency

STRING

name

STRING

note

STRING

quantity

STRING

total_discount_money

OBJECT

amount

INTEGER

currency

STRING

total_money

OBJECT

amount

INTEGER

currency

STRING

total_tax_money

OBJECT

amount

INTEGER

currency

STRING

uid

STRING

variation_name

STRING

variation_total_price_money

OBJECT

amount

INTEGER

currency

STRING

location_id

STRING

net_amounts

OBJECT

discount_money

OBJECT

amount

INTEGER

currency

STRING

service_charge_money

OBJECT

amount

INTEGER

currency

STRING

tax_money

OBJECT

amount

INTEGER

currency

STRING

tip_money

OBJECT

amount

INTEGER

currency

STRING

total_money

OBJECT

amount

INTEGER

currency

STRING

note

STRING

order_id

STRING

payment_id

STRING

present_at_all_locations

BOOLEAN

processing_fee

ARRAY

amount_money

OBJECT

amount

INTEGER

currency

STRING

effective_at

STRING

type

STRING

reason

STRING

receipt_number

STRING

receipt_url

STRING

refund_ids

ARRAY

refunded_money

OBJECT

amount

INTEGER

currency

STRING

refunds

ARRAY

amount_money

OBJECT

amount

INTEGER

currency

STRING

created_at

DATE-TIME

id

STRING

location_id

STRING

reason

STRING

status

STRING

tender_id

STRING

transaction_id

STRING

return_amounts

OBJECT

discount_money

OBJECT

amount

INTEGER

currency

STRING

service_charge_money

OBJECT

amount

INTEGER

currency

STRING

tax_money

OBJECT

amount

INTEGER

currency

STRING

tip_money

OBJECT

amount

INTEGER

currency

STRING

total_money

OBJECT

amount

INTEGER

currency

STRING

returns

ARRAY

return_line_items

ARRAY

applied_discounts

ARRAY

applied_money

OBJECT

amount

INTEGER

currency

STRING

discount_uid

STRING

uid

STRING

applied_taxes

ARRAY

applied_money

OBJECT

amount

INTEGER

currency

STRING

tax_uid

STRING

uid

STRING

base_price_money

OBJECT

amount

INTEGER

currency

STRING

catalog_object_id

STRING

gross_return_money

OBJECT

amount

INTEGER

currency

STRING

name

STRING

note

STRING

quantity

STRING

quantity_unit

OBJECT

measurement_unit

OBJECT

area_unit

STRING

custom_unit

OBJECT

abbreviation

STRING

name

STRING

generic_unit

STRING

length_unit

STRING

time_unit

STRING

type

STRING

volume_unit

STRING

weight_unit

STRING

precision

INTEGER

return_modifiers

ARRAY

base_price_money

OBJECT

amount

INTEGER

currency

STRING

catalog_object_id

STRING

name

STRING

source_modifier_uid

STRING

total_price_money

OBJECT

amount

INTEGER

currency

STRING

uid

STRING

source_line_item_uid

STRING

total_discount_money

OBJECT

amount

INTEGER

currency

STRING

total_money

OBJECT

amount

INTEGER

currency

STRING

total_tax_money

OBJECT

amount

INTEGER

currency

STRING

uid

STRING

variation_name

STRING

variation_total_price_money

OBJECT

amount

INTEGER

currency

STRING

source_order_id

STRING

uid

STRING

source

OBJECT

source_type

STRING

state

STRING

status

STRING

tax_data

OBJECT

tenders

ARRAY

amount_money

OBJECT

amount

INTEGER

currency

STRING

card_details

OBJECT

card

OBJECT

bin

STRING

card_brand

STRING

card_type

STRING

exp_month

INTEGER

exp_year

INTEGER

fingerprint

STRING

last_4

STRING

prepaid_type

STRING

entry_method

STRING

status

STRING

created_at

DATE-TIME

id

STRING

location_id

STRING

note

STRING

payment_id

STRING

transaction_id

STRING

type

STRING

total_discount_money

OBJECT

amount

INTEGER

currency

STRING

total_money

OBJECT

amount

INTEGER

currency

STRING

total_service_charge_money

OBJECT

amount

INTEGER

currency

STRING

total_tax_money

OBJECT

amount

INTEGER

currency

STRING

total_tip_money

OBJECT

amount

INTEGER

currency

STRING

type

STRING

updated_at

DATE-TIME

version

INTEGER

payments

The payments table contains information about all payments taken in Square.

Replication Method

Full Table

Primary Key

id

Useful links

Square documentation

payments schema on GitHub

Square API method

Join payments with on
bank_accounts
payments.id = bank_accounts.id
categories
payments.id = categories.absent_at_location_ids
discounts
payments.id = discounts.absent_at_location_ids
employees
payments.id = employees.location_ids
inventories
payments.id = inventories.location_id
items
payments.id = items.absent_at_location_ids
payments.id = items.item_data.variations.item_variation_data.location_overrides.location_id
payments.id = items.item_data.variations.present_at_location_ids
payments.id = items.present_at_location_ids
locations
payments.id = locations.id
modifier_lists
payments.id = modifier_lists.absent_at_location_ids
orders
payments.id = orders.id
payments.id = orders.refunds.id
payments.id = orders.tenders.id
payments.order_id = orders.id
payments.order_id = orders.order_id
payments.order_id = orders.returns.source_order_id
payments.id = orders.payment_id
payments.order_id = orders.refund_ids
payments.refund_ids = orders.refund_ids
payments.order_id = orders.refunds.id
payments.refund_ids = orders.refunds.id
refunds
payments.id = refunds.id
payments.order_id = refunds.order_id
payments.id = refunds.payment_id
payments.order_id = refunds.id
payments.refund_ids = refunds.id
shifts
payments.id = shifts.id
taxes
payments.id = taxes.absent_at_location_ids

amount_money

OBJECT

amount

INTEGER

currency

STRING

card_details

OBJECT

auth_result_code

STRING

avs_status

STRING

card

OBJECT

bin

STRING

card_brand

STRING

card_type

STRING

cardholder_name

STRING

exp_month

INTEGER

exp_year

INTEGER

fingerprint

STRING

last_4

STRING

prepaid_type

STRING

cvv_status

STRING

entry_method

STRING

errors

ARRAY

category

STRING

code

STRING

detail

STRING

statement_description

STRING

status

STRING

created_at

DATE-TIME

customer_id

STRING

delay_action

STRING

delay_duration

STRING

delayed_until

DATE-TIME

id

STRING

location_id

STRING

note

STRING

order_id

STRING

processing_fee

ARRAY

amount_money

OBJECT

amount

INTEGER

currency

STRING

effective_at

DATE-TIME

type

STRING

receipt_number

STRING

receipt_url

STRING

reference_id

STRING

refund_ids

ARRAY

refunded_money

OBJECT

amount

INTEGER

currency

STRING

risk_evaluation

OBJECT

created_at

DATE-TIME

risk_level

STRING

source_type

STRING

status

STRING

total_money

OBJECT

amount

INTEGER

currency

STRING

updated_at

DATE-TIME

refunds

The refunds table contains information about refunds on items in Square.

Replication Method

Full Table

Primary Key

id

Useful links

Square documentation

refunds schema on GitHub

Square API method

Join refunds with on
bank_accounts
refunds.id = bank_accounts.id
categories
refunds.id = categories.absent_at_location_ids
discounts
refunds.id = discounts.absent_at_location_ids
employees
refunds.id = employees.location_ids
inventories
refunds.id = inventories.location_id
items
refunds.id = items.absent_at_location_ids
refunds.id = items.item_data.variations.item_variation_data.location_overrides.location_id
refunds.id = items.item_data.variations.present_at_location_ids
refunds.id = items.present_at_location_ids
locations
refunds.id = locations.id
modifier_lists
refunds.id = modifier_lists.absent_at_location_ids
orders
refunds.id = orders.id
refunds.id = orders.refunds.id
refunds.id = orders.tenders.id
refunds.order_id = orders.id
refunds.order_id = orders.order_id
refunds.order_id = orders.returns.source_order_id
refunds.payment_id = orders.payment_id
refunds.payment_id = orders.tenders.id
refunds.id = orders.refund_ids
payments
refunds.id = payments.id
refunds.order_id = payments.order_id
refunds.payment_id = payments.id
refunds.id = payments.order_id
refunds.id = payments.refund_ids
shifts
refunds.id = shifts.id
taxes
refunds.id = taxes.absent_at_location_ids

amount_money

OBJECT

amount

INTEGER

currency

STRING

created_at

DATE-TIME

id

STRING

location_id

STRING

order_id

STRING

payment_id

STRING

processing_fee

ARRAY

amount_money

OBJECT

amount

INTEGER

currency

STRING

effective_at

DATE-TIME

type

STRING

reason

STRING

status

STRING

updated_at

DATE-TIME

roles

The roles table contains information about employees’ roles 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.

Replication Method

Full Table

Primary Key

id

Useful links

Square documentation

roles schema on GitHub

Square API method

created_at

DATE-TIME

id

STRING

is_owner

BOOLEAN

name

STRING

permissions

ARRAY

updated_at

DATE-TIME

settlements

The settlements table contains information about deposits and withdrawals issued by 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.

Replication Method

Full Table

Primary Key

id

Useful links

Square documentation

settlements schema on GitHub

Square API method

Join settlements with on
bank_accounts
settlements.bank_account_id = bank_accounts.id

bank_account_id

STRING

entries

ARRAY

`type`

STRING

amount_money

OBJECT

amount

INTEGER

currency_code

STRING

fee_money

OBJECT

amount

INTEGER

currency_code

STRING

payment_id

STRING

id

STRING

initiated_at

DATE-TIME

status

STRING

total_money

OBJECT

amount

INTEGER

currency_code

STRING

shifts

The shifts table contains information about employee’s shifts in Square.

Replication Method

Key-based Incremental

Primary Key

id

Replication Key

updated_at

Useful links

Square documentation

shifts schema on GitHub

Square API method

Join shifts with on
employees
shifts.employee_id = employees.id
shifts.id = employees.location_ids
bank_accounts
shifts.id = bank_accounts.id
categories
shifts.id = categories.absent_at_location_ids
discounts
shifts.id = discounts.absent_at_location_ids
inventories
shifts.id = inventories.location_id
items
shifts.id = items.absent_at_location_ids
shifts.id = items.item_data.variations.item_variation_data.location_overrides.location_id
shifts.id = items.item_data.variations.present_at_location_ids
shifts.id = items.present_at_location_ids
locations
shifts.id = locations.id
modifier_lists
shifts.id = modifier_lists.absent_at_location_ids
orders
shifts.id = orders.id
shifts.id = orders.refunds.id
shifts.id = orders.tenders.id
payments
shifts.id = payments.id
refunds
shifts.id = refunds.id
taxes
shifts.id = taxes.absent_at_location_ids

breaks

ARRAY

break_type_id

STRING

end_at

DATE-TIME

expected_duration

STRING

id

STRING

is_paid

BOOLEAN

name

STRING

start_at

DATE-TIME

created_at

DATE-TIME

employee_id

STRING

end_at

DATE-TIME

id

STRING

location_id

STRING

start_at

DATE-TIME

status

STRING

timezone

STRING

updated_at

DATE-TIME

version

INTEGER

wage

OBJECT

hourly_rate

OBJECT

amount

INTEGER

currency

STRING

title

STRING

taxes

The taxes table contains information about taxes enabled on your items in Square.

Replication Method

Key-based Incremental

Primary Key

id

Replication Key

updated_at

Useful links

taxes schema on GitHub

Square API method

Join taxes with on
bank_accounts
taxes.absent_at_location_ids = bank_accounts.id
categories
taxes.absent_at_location_ids = categories.absent_at_location_ids
discounts
taxes.absent_at_location_ids = discounts.absent_at_location_ids
employees
taxes.absent_at_location_ids = employees.location_ids
inventories
taxes.absent_at_location_ids = inventories.location_id
items
taxes.absent_at_location_ids = items.absent_at_location_ids
taxes.absent_at_location_ids = items.item_data.variations.item_variation_data.location_overrides.location_id
taxes.absent_at_location_ids = items.item_data.variations.present_at_location_ids
taxes.absent_at_location_ids = items.present_at_location_ids
taxes.id = items.item_data.tax_ids
locations
taxes.absent_at_location_ids = locations.id
modifier_lists
taxes.absent_at_location_ids = modifier_lists.absent_at_location_ids
orders
taxes.absent_at_location_ids = orders.id
taxes.absent_at_location_ids = orders.refunds.id
taxes.absent_at_location_ids = orders.tenders.id
payments
taxes.absent_at_location_ids = payments.id
refunds
taxes.absent_at_location_ids = refunds.id
shifts
taxes.absent_at_location_ids = shifts.id

absent_at_location_ids

ARRAY

id

STRING

is_deleted

BOOLEAN

present_at_all_locations

BOOLEAN

tax_data

OBJECT

applies_to_custom_amounts

BOOLEAN

calculation_phase

STRING

enabled

BOOLEAN

inclusion_type

STRING

name

STRING

percentage

STRING

tax_type_id

STRING

tax_type_name

STRING

type

STRING

updated_at

DATE-TIME

version

INTEGER


Questions? Feedback?

Did this article help? If you have questions or feedback, feel free to submit a pull request with your suggestions, open an issue on GitHub, or reach out to us.