Skip to main content

Square Connector

Square Square is a comprehensive commerce platform that provides payment processing, point-of-sale systems, online store capabilities, and business management tools. This component enables management of payments, customers, orders, inventory, invoices, team members, and webhooks in a Square account.

API Documentation

This component was built using the Square API Documentation

Connections

OAuth 2.0

Authenticate using OAuth 2.0.

To connect to Square using OAuth 2.0, create an application in the Square Developer Portal.

Prerequisites

Setup Steps

  1. Navigate to the Square Developer Portal and sign in
  2. Create a new application or select an existing application
  3. In the application settings, navigate to the OAuth section
  4. Add https://oauth2.integrations.acme.com/callback as a Redirect URL
  5. Configure the required permissions (scopes) for the application based on the integration needs
  6. Copy the Application ID and Application Secret from the Credentials section

Configure the Connection

  • Select the Authorize URL matching the target Square environment. Defaults to the Production URL https://connect.squareup.com/oauth2/authorize; select the Sandbox URL https://connect.squareupsandbox.com/oauth2/authorize for testing.
  • Select the Token URL matching the same environment as the Authorize URL. Defaults to the Production URL https://connect.squareup.com/oauth2/token; select the Sandbox URL https://connect.squareupsandbox.com/oauth2/token for testing.
  • For Scopes, enter a space-separated list of OAuth permissions required by the application. Refer to the Square OAuth Permissions documentation for available scopes.
  • Enter the Application ID as the Client ID.
  • Enter the Application Secret as the Client Secret.
  • (Optional) Set the API Version to override the default Square API version. Leave blank to use the default. See Square API Versioning for details.

Verify Connection

After configuring the connection, the authorizing user is redirected to Square to authorize access to the account. Once authorized, the integration can interact with the Square API on behalf of the merchant.

Production Credentials

Square separates its development environment from production to prevent test operations from affecting live merchant data. Sandbox and production credentials are distinct. Switching to production credentials is a required step before the integration can interact with real Square accounts.

Square sandbox and production environments use separate credentials. The sandbox environment is for testing only. To connect to real Square accounts, use production credentials.

  1. Navigate to the application in the Square Developer Portal
  2. Toggle from Sandbox to Production in the top navigation
  3. Copy the Application ID and Application Secret from the Production > Credentials section

Update the connection configuration with the production Application ID (Client ID) and Application Secret (Client Secret).

App Marketplace

If distributing the app publicly through the Square App Marketplace, a formal app review is required, including having at least 5 active sellers using the integration. For private integrations within a single organization, App Marketplace listing is not required and no formal review applies.

This connection uses OAuth 2.0, a common authentication mechanism for integrations. Read about how OAuth 2.0 works here.

InputCommentsDefault
Authorize URLThe OAuth 2.0 Authorization URL for Square. Select Sandbox for testing or Production for live transactions.https://connect.squareup.com/oauth2/authorize
Token URLThe OAuth 2.0 Token URL for Square. This must match the environment selected in the Authorize URL.https://connect.squareup.com/oauth2/token
ScopesA space-separated list of OAuth permission scopes. These scopes must be configured in the Square Application. See Square OAuth Permissions for available scopes.MERCHANT_PROFILE_READ PAYMENTS_READ PAYMENTS_WRITE
Application IDThe Application ID from the Square Developer Dashboard. Navigate to Applications > [App Name] > Credentials to find this value.
Application SecretThe Application Secret from the Square Developer Dashboard. Keep this value secure and never share it publicly.
API VersionOverride the default Square API version (2025-08-20). Leave blank to use the default version. See Square API Versioning for version details.

Triggers

New and Updated Payments

Fetches Square payments created or updated since the last execution, separated into new and updated buckets.

InputCommentsDefault
ConnectionThe Square connection to use.
Show New RecordsWhen true, newly created payments are included in the trigger output.true
Show Updated RecordsWhen true, payments updated since the last poll are included in the trigger output.true

Webhook

Receive and validate webhook requests from Square for manually configured webhook subscriptions.

Actions

Batch Change Inventory

Applies adjustments and counts to the provided item quantities.

InputCommentsDefault
ConnectionThe Square connection to use.
Idempotency KeyA unique string that identifies this request to ensure idempotent operations.
Inventory ChangesAn array of inventory changes in JSON format. See Square Inventory Changes for change types.
[
{
"type": "PHYSICAL_COUNT",
"physical_count": {
"catalog_object_id": "W62UWFY35CWMYGVWK6TWJDNI",
"state": "IN_STOCK",
"quantity": "10",
"location_id": "LH2G9VFHJRWKR",
"occurred_at": "2024-07-01T00:00:00Z",
"created_at": "2024-07-01T00:00:00Z"
}
},
{
"type": "ADJUSTMENT",
"adjustment": {
"catalog_object_id": "W62UWFY35CWMYGVWK6TWJDNI",
"from_state": "IN_STOCK",
"to_state": "SOLD",
"quantity": "-1",
"location_id": "LH2G9VFHJRWKR",
"occurred_at": "2024-07-01T00:00:00Z",
"created_at": "2024-07-01T00:00:00Z",
"source": {
"product": "SQUARE_POS",
"application_id": "sandbox-sq0idb-example",
"name": "Point of Sale",
"type": "APPLICATION"
}
}
}
]
Ignore Unchanged CountsWhen true, unchanged inventory counts are ignored.false

Batch Delete Catalog Objects

Deletes a set of CatalogItems based on the provided list of target IDs and returns a set of successfully deleted IDs in the response.

InputCommentsDefault
ConnectionThe Square connection to use.
Object IDsArray of catalog object IDs to retrieve in JSON format.
[
"W62UWFY35CWMYGVWK6TWJDNI",
"X73VXGZ46DXNZHXWL7UXKENJ",
"Y84WHHA57EYOAIYWM8VYLOFK"
]

Batch Retrieve Catalog Objects

Returns a set of objects based on the provided ID.

InputCommentsDefault
ConnectionThe Square connection to use.
Object IDsArray of catalog object IDs to retrieve in JSON format.
[
"W62UWFY35CWMYGVWK6TWJDNI",
"X73VXGZ46DXNZHXWL7UXKENJ",
"Y84WHHA57EYOAIYWM8VYLOFK"
]
Include Related ObjectsWhen true, the response includes additional objects that are related to the requested objects.false
Include Deleted ObjectsWhen true, deleted objects are included in the results.false
Catalog VersionThe specific version of the catalog objects to include in the response. Used to retrieve historical versions of objects. The value is matched against the CatalogObject version attribute.

Batch Retrieve Inventory Counts

Returns current counts for the provided CatalogObjects at the requested Locations.

InputCommentsDefault
ConnectionThe Square connection to use.
Catalog Object IDsAn array of catalog object IDs in JSON format used to filter inventory results.
[
"W62UWFY35CWMYGVWK6TWJDNI",
"X73VXGZ46DXNZHXWL7UXKENJ"
]
Location IDsAn array of location IDs in JSON format used to filter results to specific locations.
[
"LH2G9VFHJRWKR",
"LK3H8WGIKSMLA"
]
CursorThe pagination cursor returned by a previous call to this endpoint.
LimitThe maximum number of results to return in a single page.
Updated AfterThe timestamp filter used to return results whose calculated_at value is after the given time. Format: RFC 3339.
StatesAn array of inventory states in JSON format used to filter results. Options: IN_STOCK, SOLD, RETURNED_BY_CUSTOMER.
[
"IN_STOCK",
"SOLD"
]

Batch Retrieve Orders

Retrieves a set of orders by their IDs.

InputCommentsDefault
ConnectionThe Square connection to use.
Location IDThe unique identifier for the location.
Order IDsAn array of order IDs to retrieve in JSON format. A maximum of 100 orders can be retrieved per request.
[
"CAISEHUwyPjyk5QFnMR1k5axW5YgAQ",
"CAISEHUwyPjyk5QFnMR1k5axW5YgAB"
]

Batch Upsert Catalog Objects

Creates or updates up to 10,000 target objects based on the provided list of objects.

InputCommentsDefault
ConnectionThe Square connection to use.
Idempotency KeyA unique string that identifies this request to ensure idempotent operations.
BatchesArray of batches containing catalog objects in JSON format. Each batch may contain up to 1,000 objects. Maximum 10,000 objects total across all batches.
[
{
"objects": [
{
"type": "ITEM",
"id": "#coffee-mug",
"item_data": {
"name": "Coffee Mug",
"description": "Ceramic coffee mug"
}
}
]
}
]

Cancel Invoice

Cancels an invoice.

InputCommentsDefault
ConnectionThe Square connection to use.
Invoice IDThe unique identifier for the invoice.

Cancel Payment

Cancels (voids) a payment.

InputCommentsDefault
ConnectionThe Square connection to use.
Payment IDThe unique identifier for the payment.

Clone Order

Creates a new order, in the DRAFT state, by duplicating an existing order.

InputCommentsDefault
ConnectionThe Square connection to use.
Order IDThe unique identifier for the order.
Idempotency KeyA unique string that identifies this request to ensure idempotent operations.

Complete Payment

Completes (captures) a payment.

InputCommentsDefault
ConnectionThe Square connection to use.
Payment IDThe unique identifier for the payment.
Version TokenThe version token used for optimistic concurrency control. Identifies the current payment version.

Create Customer

Creates a new customer profile.

InputCommentsDefault
ConnectionThe Square connection to use.
AddressThe customer's mailing address in JSON format. See Square Address Object for field details.
{
"address_line_1": "1234 Main Street",
"address_line_2": "Suite 100",
"locality": "San Francisco",
"administrative_district_level_1": "CA",
"postal_code": "94102",
"country": "US",
"first_name": "John",
"last_name": "Doe"
}
BirthdayThe customer's date of birth. Format: YYYY-MM-DD.
Company NameThe name of the company associated with the customer.
Email AddressThe email address of the customer.
Family NameThe last name of the customer.
Given NameThe first name of the customer.
NicknameAn informal name to associate with the customer.
NoteA free-form note to associate with the customer.
Phone NumberThe phone number of the customer in E.164 format (e.g., +14155552671).
Reference IDAn optional external reference ID to associate with the customer.
Tax IDsTax identification numbers in JSON format. Only applicable for EU countries. See Square Tax IDs for supported formats.
{
"eu_vat": "IE3426675K"
}
Idempotency KeyA unique string that identifies this request to ensure idempotent operations.

Create Job

Creates a job in a seller account with a title and tip eligibility.

InputCommentsDefault
ConnectionThe Square connection to use.
Job TitleThe designation for the job role (for example, Cashier, Server, Manager).
Idempotency KeyA unique string that identifies this CreateJob request.
Is Tip EligibleWhen true, employees in this job role are eligible to receive tips.true

Create Order

Creates a new order.

InputCommentsDefault
ConnectionThe Square connection to use.
Location IDThe unique identifier for the location.
Order ObjectThe complete order object in JSON format. See Square Order Object for field details.
{
"idempotency_key": "a7c8e4b1-3f5d-4e2a-9c1b-7d3e5f8a2c6b",
"order": {
"location_id": "LH2G9VFHJRWKR",
"line_items": [
{
"name": "Coffee Mug",
"quantity": "1",
"base_price_money": {
"amount": 1500,
"currency": "USD"
}
}
]
}
}

Create Payment

Creates a payment using the provided source.

InputCommentsDefault
ConnectionThe Square connection to use.
Payment DataPayment data in JSON format. Amounts are in cents (smallest currency unit). See Square Create Payment for field details.
{
"source_id": "cnon:card-nonce-ok",
"idempotency_key": "a7c8e4b1-3f5d-4e2a-9c1b-7d3e5f8a2c6b",
"amount_money": {
"amount": 1500,
"currency": "USD"
},
"location_id": "LH2G9VFHJRWKR"
}

Create Team Member

Creates a new team member.

InputCommentsDefault
ConnectionThe Square connection to use.
Team MemberThe team member data in JSON format. See Square TeamMember Object for field details.
Idempotency KeyA unique string that identifies this request to ensure idempotent operations.

Create Webhook Subscription

Creates a webhook subscription.

InputCommentsDefault
ConnectionThe Square connection to use.
Idempotency KeyA unique string that identifies this request to ensure idempotent operations.
Webhook SubscriptionThe webhook subscription data in JSON format. See Square Webhook Subscription for configuration details.

Delete Catalog Object

Deletes a single CatalogObject based on the provided ID and returns the set of successfully deleted IDs in the response.

InputCommentsDefault
ConnectionThe Square connection to use.
Object IDThe unique identifier for the catalog object.

Delete Customer

Deletes a customer profile from a business.

InputCommentsDefault
ConnectionThe Square connection to use.
Customer IDThe unique identifier for the customer.

Delete Instance Webhooks

Deletes all webhooks that point to a flow in this instance.

InputCommentsDefault
ConnectionThe Square connection to use.

Delete Invoice

Deletes an invoice.

InputCommentsDefault
ConnectionThe Square connection to use.
Invoice IDThe unique identifier for the invoice.

Delete Webhook Subscription

Deletes a webhook subscription.

InputCommentsDefault
ConnectionThe Square connection to use.
Subscription IDThe unique identifier for the webhook subscription to delete.

Get Invoice

Retrieves an invoice by its ID.

InputCommentsDefault
ConnectionThe Square connection to use.
Invoice IDThe unique identifier for the invoice.

Get Payment

Retrieves details for a specific payment.

InputCommentsDefault
ConnectionThe Square connection to use.
Payment IDThe unique identifier for the payment.

Get Payment Refund

Retrieves a specific refund using the refund_id.

InputCommentsDefault
ConnectionThe Square connection to use.
Refund IDThe unique identifier for the payment refund.

List Catalog

Returns a list of all CatalogObjects of the specified types in the catalog.

InputCommentsDefault
ConnectionThe Square connection to use.
CursorThe pagination cursor returned by a previous call to this endpoint.
TypesAn optional case-insensitive, comma-separated list of object types to retrieve. Valid values are defined in the CatalogObjectType enum, for example, ITEM, ITEM_VARIATION, CATEGORY, DISCOUNT, TAX, MODIFIER, MODIFIER_LIST, IMAGE.ITEM, ITEM_VARIATION, CATEGORY, DISCOUNT, TAX, MODIFIER, MODIFIER_LIST, IMAGE
Catalog VersionThe specific version of the catalog objects to include in the response. Used to retrieve historical versions of objects. The value is matched against the CatalogObject version attribute.

List Customers

Lists customer profiles associated with a Square account.

InputCommentsDefault
ConnectionThe Square connection to use.
CursorThe pagination cursor returned by a previous call to this endpoint.
LimitThe maximum number of results to return in a single page.
Sort FieldThe field used to sort the results.
Sort OrderThe order in which results are sorted.

List Invoices

Returns a list of invoices for a given location.

InputCommentsDefault
ConnectionThe Square connection to use.
Location IDThe unique identifier for the location.
CursorThe pagination cursor returned by a previous call to this endpoint.
LimitThe maximum number of results to return in a single page.

List Jobs

Lists jobs in a seller account, sorted by title in ascending order.

InputCommentsDefault
ConnectionThe Square connection to use.
Fetch AllWhen true, automatically fetches all pages of results using cursor pagination.false
CursorThe pagination cursor returned by a previous call to this endpoint.

List Locations

Lists all of the seller's locations, including those with an inactive status.

InputCommentsDefault
ConnectionThe Square connection to use.

List Payment Refunds

Retrieves a list of refunds for the account making the request.

InputCommentsDefault
ConnectionThe Square connection to use.
Begin TimeThe timestamp marking the start of the time range. Format: RFC 3339.
Location IDThe unique identifier for the location.
CursorThe pagination cursor returned by a previous call to this endpoint.
LimitThe maximum number of results to return in a single page.
End TimeThe end of the time range used to retrieve payments. Filtered using the created_at field. Format: RFC 3339.
Sort OrderThe order in which results are sorted.
StatusWhen provided, only refunds with the given status are returned.
Source TypeWhen provided, only refunds whose payments have the indicated source type are returned.

List Payments

Retrieves a list of payments taken by the account making the request.

InputCommentsDefault
ConnectionThe Square connection to use.
Begin TimeThe timestamp marking the start of the time range. Format: RFC 3339.
Location IDThe unique identifier for the location.
CursorThe pagination cursor returned by a previous call to this endpoint.
LimitThe maximum number of results to return in a single page.
End TimeThe end of the time range used to retrieve payments. Filtered using the created_at field. Format: RFC 3339.
Sort OrderThe order in which results are sorted.
TotalThe exact payment amount in cents (smallest currency unit). For example, 1500 for $15.00.
Last 4 Digits of CardThe last four digits of the payment card used.
Card BrandThe brand of the payment card (for example, VISA, MASTERCARD, AMEX).

List Webhook Subscriptions

Lists all webhook subscriptions owned by your application.

InputCommentsDefault
ConnectionThe Square connection to use.
CursorThe pagination cursor returned by a previous call to this endpoint.
LimitThe maximum number of results to return in a single page.
Include DisabledWhen true, disabled subscriptions are included in the results. By default, only enabled subscriptions are returned.false
Sort OrderThe sort order for subscriptions by creation date. Options: ASC (oldest first), DESC (newest first).

Publish Invoice

Publishes an invoice.

InputCommentsDefault
ConnectionThe Square connection to use.
Invoice IDThe unique identifier for the invoice.
Idempotency KeyA unique string that identifies this request to ensure idempotent operations.

Raw Request

Sends a raw HTTP request to the Square API.

InputCommentsDefault
URLThis is the URL to call.
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
File Data File NamesFile names to apply to the file data inputs. Keys must match the file data keys above.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Retry Delay (ms)The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.false
Max Retry CountThe maximum number of retries to attempt. Specify 0 for no retries.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.false
ConnectionThe Square connection to use.

Refund Payment

Refunds a payment. You can refund the entire payment amount or a portion of it.

InputCommentsDefault
ConnectionThe Square connection to use.
Payment IDThe unique identifier for the payment.
Idempotency KeyA unique string that identifies this request to ensure idempotent operations.
Refund AmountThe refund amount in JSON format. Amount is in cents (smallest currency unit). Cannot exceed the payment total minus previous refunds.
ReasonA description of the reason for the refund.

Retrieve Catalog Object

Returns a single CatalogObject based on the provided ID.

InputCommentsDefault
ConnectionThe Square connection to use.
Object IDThe unique identifier for the catalog object.
Include Related ObjectsWhen true, the response includes additional objects that are related to the requested objects.false
Catalog VersionThe specific version of the catalog objects to include in the response. Used to retrieve historical versions of objects. The value is matched against the CatalogObject version attribute.

Retrieve Customer

Retrieves details for a single customer.

InputCommentsDefault
ConnectionThe Square connection to use.
Customer IDThe unique identifier for the customer.

Retrieve Job

Retrieves a specified job by ID.

InputCommentsDefault
ConnectionThe Square connection to use.
Job IDThe unique identifier for the job.

Retrieve Location

Retrieves details of a specific location.

InputCommentsDefault
ConnectionThe Square connection to use.
Location IDThe unique identifier for the location.

Retrieve Order

Retrieves an Order by its ID.

InputCommentsDefault
ConnectionThe Square connection to use.
Order IDThe unique identifier for the order.

Retrieve Team Member

Retrieves a team member based on the provided ID.

InputCommentsDefault
ConnectionThe Square connection to use.
Team Member IDThe unique identifier for the team member.

Retrieve Webhook Subscription

Retrieves a webhook subscription identified by its ID.

InputCommentsDefault
ConnectionThe Square connection to use.
Subscription IDThe unique identifier for the webhook subscription.

Search Catalog Items

Searches for catalog items or item variations by matching supported search attribute values, including custom attribute values, against one or more of the specified query filters.

InputCommentsDefault
ConnectionThe Square connection to use.
CursorThe pagination cursor returned by a previous call to this endpoint.
LimitThe maximum number of results to return in a single page.
Text FilterThe text filter expression used to return items or item variations containing the specified text.
Category IDsAn array of category IDs in JSON format used to filter items by category.
[
"W62UWFY35CWMYGVWK6TWJDNI",
"X73VXGZ46DXNZHXWL7UXKENJ"
]
Stock LevelsAn array of stock levels in JSON format used to filter items. Options: OUT, LOW.
[
"OUT",
"LOW"
]
Enabled Location IDsAn array of location IDs in JSON format used to filter items by enabled locations.
[
"LH2G9VFHJRWKR",
"LK3H8WGIKSMLA"
]
Sort OrderThe order in which results are sorted.
Product TypesAn array of product types in JSON format used to filter items. Options: REGULAR, APPOINTMENTS_SERVICE.
[
"REGULAR",
"APPOINTMENTS_SERVICE"
]
Custom Attribute FiltersAn array of custom attribute filters in JSON format used to match items with specific custom attributes.
[
{
"custom_attribute_definition_id": "W62UWFY35CWMYGVWK6TWJDNI",
"key": "color",
"string_filter": "blue",
"bool_filter": true
}
]

Search Catalog Objects

Searches for CatalogObject of any type by matching supported search attribute values, excluding custom attribute values on items or item variations, against one or more of the specified query filters.

InputCommentsDefault
ConnectionThe Square connection to use.
Object TypesA comma-separated list of catalog object types to include in the search results. Options: ITEM, CATEGORY, TAX, DISCOUNT, MODIFIER_LIST.
Include Deleted ObjectsWhen true, deleted objects are included in the results.false
Include Related ObjectsWhen true, the response includes additional objects that are related to the requested objects.false
Begin TimeThe timestamp marking the start of the time range. Format: RFC 3339.
Catalog QueryQuery to filter or sort catalog results in JSON format. See Square Catalog Query for query options.
{
"sorted_attribute_query": {
"attribute_name": "name",
"initial_attribute_value": "A",
"sort_order": "ASC"
},
"exact_query": {
"attribute_name": "type",
"attribute_value": "ITEM"
}
}
CursorThe pagination cursor returned by a previous call to this endpoint.
LimitThe maximum number of results to return in a single page.

Search Customers

Searches for customer profiles.

InputCommentsDefault
ConnectionThe Square connection to use.
QueryThe query to search for customers. See Square Search Customers for filter and sort options.
{
"query": {
"filter": {
"creation_source": {
"values": [
"THIRD_PARTY"
],
"rule": "INCLUDE"
},
"created_at": {
"start_at": "2024-01-01T00:00:00-00:00",
"end_at": "2024-02-01T00:00:00-00:00"
},
"email_address": {
"fuzzy": "example.com"
},
"group_ids": {
"all": [
"JDKYHBWT1D4F8MFH63DBMEN8Y4"
]
}
},
"sort": {
"field": "CREATED_AT",
"order": "ASC"
}
}
}
CursorThe pagination cursor returned by a previous call to this endpoint.
LimitThe maximum number of results to return in a single page.

Search Invoices

Searches for invoices from a location specified in the filter.

InputCommentsDefault
ConnectionThe Square connection to use.
QueryThe query to search for invoices. See Square Search Invoices for filter and sort options.
{
"filter": {
"location_ids": [
"LH2G9VFHJRWKR"
],
"customer_ids": [
"JDKYHBWT1D4F8MFH63DBMEN8Y4"
]
},
"sort": {
"field": "INVOICE_SORT_DATE",
"order": "DESC"
}
}
CursorThe pagination cursor returned by a previous call to this endpoint.
LimitThe maximum number of results to return in a single page.

Search Orders

Searches all orders for one or more locations.

InputCommentsDefault
ConnectionThe Square connection to use.
Location IDsAn array of location IDs in JSON format used to filter results to specific locations.
[
"LH2G9VFHJRWKR",
"LK3H8WGIKSMLA"
]
QueryThe query to search for orders. See Square Search Orders for filter and sort options.
{
"filter": {
"state_filter": {
"states": [
"COMPLETED"
]
},
"date_time_filter": {
"closed_at": {
"start_at": "2024-01-01T00:00:00+00:00",
"end_at": "2024-12-31T23:59:59+00:00"
}
},
"customer_filter": {
"customer_ids": [
"JDKYHBWT1D4F8MFH63DBMEN8Y4"
]
}
},
"sort": {
"sort_field": "CLOSED_AT",
"sort_order": "DESC"
}
}
Return EntriesWhen true, the entries associated with the orders are returned.true
CursorThe pagination cursor returned by a previous call to this endpoint.
LimitThe maximum number of results to return in a single page.

Search Team Members

Searches for team members based on the given filters.

InputCommentsDefault
ConnectionThe Square connection to use.
Search QueryThe query parameters to filter team members. See Square Search Team Members for filter options.
{
"filter": {
"location_ids": [
"LH2G9VFHJRWKR"
],
"status": "ACTIVE",
"is_owner": false
}
}
CursorThe pagination cursor returned by a previous call to this endpoint.
LimitThe maximum number of results to return in a single page.

Update Customer

Updates a customer profile.

InputCommentsDefault
ConnectionThe Square connection to use.
Customer IDThe unique identifier for the customer.
AddressThe customer's mailing address in JSON format. See Square Address Object for field details.
{
"address_line_1": "1234 Main Street",
"address_line_2": "Suite 100",
"locality": "San Francisco",
"administrative_district_level_1": "CA",
"postal_code": "94102",
"country": "US",
"first_name": "John",
"last_name": "Doe"
}
BirthdayThe customer's date of birth. Format: YYYY-MM-DD.
Company NameThe name of the company associated with the customer.
Email AddressThe email address of the customer.
Family NameThe last name of the customer.
Given NameThe first name of the customer.
NicknameAn informal name to associate with the customer.
NoteA free-form note to associate with the customer.
Phone NumberThe phone number of the customer in E.164 format (e.g., +14155552671).
Reference IDAn optional external reference ID to associate with the customer.
Tax IDsTax identification numbers in JSON format. Only applicable for EU countries. See Square Tax IDs for supported formats.
{
"eu_vat": "IE3426675K"
}

Update Invoice

Updates an invoice.

InputCommentsDefault
ConnectionThe Square connection to use.
Invoice IDThe unique identifier for the invoice.
Update InvoiceThe invoice data to update in JSON format. See Square Update Invoice for field details.
{
"invoice": {
"version": 1,
"payment_requests": [
{
"uid": "2da7964f-f3d2-4f43-81e8-5aa220bf3355",
"tipping_enabled": false
}
]
},
"idempotency_key": "4ee82288-0910-499e-ab4c-5d0071dad1be",
"fields_to_clear": [
"payment_requests[2da7964f-f3d2-4f43-81e8-5aa220bf3355].reminders"
]
}

Update Job

Updates the title or tip eligibility of a job. Changes propagate to all job assignments, shifts, and wage settings.

InputCommentsDefault
ConnectionThe Square connection to use.
Job IDThe unique identifier for the job.
Job TitleUpdated job title. Only include if changing the title.
Is Tip EligibleWhen true, employees in this job role are eligible to receive tips. Only include if changing tip eligibility.true
VersionThe version number used for optimistic concurrency control. Ensures the object has not been modified by another request.

Update Location

Updates a location associated with a Square account.

InputCommentsDefault
ConnectionThe Square connection to use.
Location IDThe unique identifier for the location.
Location UpdateThe location data to update in JSON format. See Square Location Object for field details.
{
"id": "LH2G9VFHJRWKR",
"name": "Downtown Store",
"address": {
"address_line_1": "1234 Main Street",
"locality": "San Francisco",
"administrative_district_level_1": "CA",
"postal_code": "94102"
},
"timezone": "America/Los_Angeles",
"status": "ACTIVE",
"country": "US",
"language_code": "en-US",
"currency": "USD",
"type": "PHYSICAL",
"description": "Main downtown retail location",
"coordinates": {
"latitude": 37.7749,
"longitude": -122.4194
},
"business_hours": {
"periods": [
{
"day_of_week": "MON",
"start_local_time": "09:00",
"end_local_time": "18:00"
},
{
"day_of_week": "TUE",
"start_local_time": "09:00",
"end_local_time": "18:00"
}
]
},
"business_name": "Example Business",
"mcc": "5999"
}

Update Order

Updates an open order by adding, replacing, or deleting fields.

InputCommentsDefault
ConnectionThe Square connection to use.
Order IDThe unique identifier for the order.
Order ObjectThe complete order object in JSON format. See Square Order Object for field details.
{
"idempotency_key": "a7c8e4b1-3f5d-4e2a-9c1b-7d3e5f8a2c6b",
"order": {
"location_id": "LH2G9VFHJRWKR",
"line_items": [
{
"name": "Coffee Mug",
"quantity": "1",
"base_price_money": {
"amount": 1500,
"currency": "USD"
}
}
]
}
}
Fields to ClearArray of dot notation paths for fields to clear in JSON format. For example: line_items[uid].note or discounts[uid].
[
"line_items[uid].note",
"discounts[uid]"
]
Idempotency KeyA unique string that identifies this request to ensure idempotent operations.

Update Payment

Updates a payment with the APPROVED status.

InputCommentsDefault
ConnectionThe Square connection to use.
Payment IDThe unique identifier for the payment.
PaymentPayment data in JSON format. Amounts are in cents (smallest currency unit). See Square Payment Object for field details.
{
"amount_money": {
"amount": 1500,
"currency": "USD"
},
"tip_money": {
"amount": 300,
"currency": "USD"
}
}

Update Team Member

Updates a team member.

InputCommentsDefault
ConnectionThe Square connection to use.
Team Member IDThe unique identifier for the team member.
Team MemberThe team member data in JSON format. See Square TeamMember Object for field details.

Update Webhook Subscription

Updates a webhook subscription.

InputCommentsDefault
ConnectionThe Square connection to use.
Subscription IDThe unique identifier for the webhook subscription.
Webhook SubscriptionThe updated webhook subscription data in JSON format. Include only the fields to modify.
{
"name": "Updated Order Webhook",
"enabled": true,
"event_types": [
"order.created",
"order.updated",
"order.fulfilled"
],
"notification_url": "https://your-webhook-endpoint.com/square/webhooks"
}

Upsert Catalog Object

Creates a new or updates the specified CatalogObject.

InputCommentsDefault
ConnectionThe Square connection to use.
Idempotency KeyA unique string that identifies this request to ensure idempotent operations.
Catalog ObjectCatalog object data in JSON format. See Square Catalog Object for field details.
{
"type": "ITEM",
"id": "#temp-item-id",
"item_data": {
"name": "Coffee Mug",
"description": "Ceramic coffee mug - 12oz capacity",
"abbreviation": "MUG",
"category_id": "W62UWFY35CWMYGVWK6TWJDNI",
"variations": [
{
"type": "ITEM_VARIATION",
"id": "#temp-variation-id",
"item_variation_data": {
"item_id": "#temp-item-id",
"name": "Regular",
"pricing_type": "FIXED_PRICING",
"price_money": {
"amount": 1500,
"currency": "USD"
}
}
}
]
}
}