Square Connector
Square is a comprehensive commerce platform that provides payment processing, point-of-sale systems, online store capabilities, and business management tools.
This component allows you to manage 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
OAuth 2.0 connection for Square
To connect to Square using OAuth 2.0, create an application in the Square Developer Portal.
Prerequisites
- A Square account
- Access to the Square Developer Portal
Setup Steps
- Navigate to the Square Developer Portal and sign in
- Create a new application or select an existing application
- In the application settings, navigate to the OAuth section
- Add
https://oauth2.integrations.acme.com/callbackas a Redirect URL - Configure the required permissions (scopes) for the application based on the integration needs
- Copy the Application ID and Application Secret from the Credentials section
Configure the Connection
- Enter the Application ID as the Client ID
- Enter the Application Secret as the Client Secret
- For Scopes, configure the OAuth permissions the application requires. Refer to the Square OAuth Permissions documentation for available scopes.
Verify Connection
After configuring the connection, users will be redirected to Square to authorize access to the account. Once authorized, the integration can interact with the Square API on behalf of the user.
This connection uses OAuth 2.0, a common authentication mechanism for integrations. Read about how OAuth 2.0 works here.
| Input | Comments | Default |
|---|---|---|
| Authorize URL | The OAuth 2.0 Authorization URL for Square. Select Sandbox for testing or Production for live transactions. | https://connect.squareup.com/oauth2/authorize |
| Token URL | The OAuth 2.0 Token URL for Square. This must match the environment selected in the Authorize URL. | https://connect.squareup.com/oauth2/token |
| Scopes | Space separated list of OAuth permission scopes. These scopes should be configured in your Square Application. See Square OAuth Permissions for available scopes. | MERCHANT_PROFILE_READ PAYMENTS_READ PAYMENTS_WRITE |
| Application ID | The Application ID from the Square Developer Dashboard. Navigate to Applications > Your App > Credentials to find this value. | |
| Application Secret | The Application Secret from the Square Developer Dashboard. Keep this value secure and never share it publicly. | |
| API Version | Override the default Square API version (2025-08-20). Leave blank to use the default version. See Square API Versioning for version details. |
Triggers
Webhook
Receive and validate webhook requests from Square for webhooks you configure.
Actions
Batch Change Inventory
Applies adjustments and counts to the provided item quantities.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Idempotency Key | A unique string that identifies this request to ensure idempotent operations. | |
| Inventory Changes | Array of inventory changes in JSON format. See Square Inventory Changes for change types. | |
| Ignore Unchanged Counts | When true, unchanged inventory counts will be 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.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Object IDs | Array of catalog object IDs to retrieve in JSON format. | |
Batch Retrieve Catalog Objects
Returns a set of objects based on the provided ID.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Object IDs | Array of catalog object IDs to retrieve in JSON format. | |
| Include Related Objects | When true, the response will include additional objects that are related to the requested objects. | false |
| Catalog Version | The specific version of the catalog objects to be included in the response. This allows you to retrieve historical versions of objects. The specified version value is matched against the CatalogObjects' version attribute. | |
| Include Deleted Objects | When true, deleted objects will be included in the results. | false |
Batch Retrieve Inventory Counts
Returns current counts for the provided CatalogObjects at the requested Locations.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Catalog Object IDs | Array of catalog object IDs in JSON format to filter inventory results. | |
| Location IDs | Array of location IDs in JSON format. Used to filter results to specific locations. | |
| Updated After | The filter to return results with their calculated_at value after the given time as specified in an RFC 3339 timestamp. | |
| Cursor | A pagination cursor returned by a previous call to this endpoint. | |
| States | Array of inventory states in JSON format to filter results. Options: IN_STOCK, SOLD, RETURNED_BY_CUSTOMER, etc. | |
| Limit | The maximum number of results to be returned in a single page. |
Batch Retrieve Orders
Retrieves a set of orders by their IDs.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Location ID | The ID of the location to retrieve details for. | |
| Order IDs | Array of order IDs to retrieve in JSON format. A maximum of 100 orders can be retrieved per request. | |
Batch Upsert Catalog Objects
Creates or updates up to 10,000 target objects based on the provided list of objects.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Idempotency Key | A unique string that identifies this request to ensure idempotent operations. | |
| Batches | Array 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. | |
Cancel Invoice
Cancel an invoice.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Invoice ID | The ID of the invoice to retrieve. |
Cancel Payment
Cancels (voids) a payment.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Payment ID | A unique ID for the desired payment. |
Clone Order
Creates a new order, in the DRAFT state, by duplicating an existing order.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Order ID | The ID of the order to retrieve. | |
| Idempotency Key | A unique string that identifies this request to ensure idempotent operations. |
Complete Payment
Completes (captures) a payment.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Payment ID | A unique ID for the desired payment. | |
| Version Token | Version token for optimistic concurrency control. Identifies the current payment version. |
Create Customer
Create a new customer profile.
| Input | Comments | Default |
|---|---|---|
| Address | The customer's address in JSON format. See Square Address Object for field details. | |
| Birthday | The customer's birthday in YYYY-MM-DD format. | |
| Company Name | The name of the customer's company. | |
| Email Address | The customer's email address. | |
| Family Name | The customer's family name (last name). | |
| Given Name | The customer's given name (first name). | |
| Nickname | A nickname for the customer. | |
| Note | A note to associate with the customer. | |
| Phone Number | The customer's phone number in E.164 format (e.g., +14155552671). | |
| Reference Id | An optional reference ID to associate with the customer. | |
| Tax IDs | Tax identification numbers in JSON format. Only applicable for EU countries. See Square Tax IDs for supported formats. | |
| Idempotency Key | A unique string that identifies this request to ensure idempotent operations. | |
| Connection | The Square connection to use. |
Create Job
Create a job in a seller account with a title and tip eligibility.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Job Title | The job designation (e.g., Cashier, Server, Manager). | |
| Idempotency Key | A unique string that identifies this CreateJob request. | |
| Is Tip Eligible | When true, employees in this job role are eligible to receive tips. | true |
Create Order
Create a new order.
| Input | Comments | Default |
|---|---|---|
| Location ID | The ID of the location to retrieve details for. | |
| Order Object | The complete order object in JSON format. See Square Order Object for field details. | |
| Connection | The Square connection to use. |
Create Payment
Creates a payment using the provided source.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Payment Data | Payment data in JSON format. Amounts are in cents (smallest currency unit). See Square Create Payment for field details. | |
Create Team Member
Create a new team member.
| Input | Comments | Default |
|---|---|---|
| Team Member | The team member data in JSON format. See Square TeamMember Object for field details. | |
| Idempotency Key | A unique string that identifies this request to ensure idempotent operations. | |
| Connection | The Square connection to use. |
Create Webhook Subscription
Creates a webhook subscription.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Idempotency Key | A unique string that identifies this request to ensure idempotent operations. | |
| Webhook Subscription | 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.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Object ID | The unique identifier of the catalog object. |
Delete Customer
Delete a customer profile from a business.
| Input | Comments | Default |
|---|---|---|
| Customer ID | The ID of the customer to retrieve details for. | |
| Connection | The Square connection to use. |
Delete Instance Webhooks
Delete all webhooks that point to a flow in this instance
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. |
Delete Invoice
Delete an invoice.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Invoice ID | The ID of the invoice to retrieve. |
Delete Webhook Subscription
Deletes a webhook subscription.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Subscription ID | The ID of the Subscription to delete. |
Get Invoice
Retrieve an invoice by its ID.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Invoice ID | The ID of the invoice to retrieve. |
Get Payment
Retrieves details for a specific payment.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Payment ID | A unique ID for the desired payment. |
Get Payment Refund
Retrieves a specific refund using the refund_id.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Refund ID | The unique ID for the desired PaymentRefund. |
List Catalog
Returns a list of all CatalogObjects of the specified types in the catalog.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Cursor | A pagination cursor returned by a previous call to this endpoint. | |
| Types | An optional case-insensitive, comma-separated list of object types to retrieve. The valid values are defined in the CatalogObjectType enum, for example, ITEM, ITEM_VARIATION, CATEGORY, DISCOUNT, TAX, MODIFIER, MODIFIER_LIST, IMAGE, etc. | ITEM, ITEM_VARIATION, CATEGORY, DISCOUNT, TAX, MODIFIER, MODIFIER_LIST, IMAGE |
| Catalog Version | The specific version of the catalog objects to be included in the response. This allows you to retrieve historical versions of objects. The specified version value is matched against the CatalogObjects' version attribute. |
List Customers
List customer profiles associated with a Square account.
| Input | Comments | Default |
|---|---|---|
| Cursor | A pagination cursor returned by a previous call to this endpoint. | |
| Limit | The maximum number of results to be returned in a single page. | |
| Sort Field | Field to sort the customers on. | |
| Sort Order | Order to sort the customers. | |
| Connection | The Square connection to use. |
List Invoices
Returns a list of invoices for a given location.
| Input | Comments | Default |
|---|---|---|
| Location ID | The ID of the location to retrieve details for. | |
| Connection | The Square connection to use. | |
| Cursor | A pagination cursor returned by a previous call to this endpoint. | |
| Limit | The maximum number of results to be returned in a single page. |
List Jobs
List jobs in a seller account, sorted by title in ascending order.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Fetch All | When true, fetches all pages of results using pagination. | false |
| Cursor | A pagination cursor returned by a previous call to this endpoint. |
List Locations
List all of the seller's locations, including those with an inactive status.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. |
List Payment Refunds
Retrieves a list of refunds for the account making the request.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Begin Time | Return objects modified after this timestamp, in RFC 3339 format. | |
| End Time | End of the time range to retrieve payments for in RFC 3339 format. Filtered using the created_at field. | |
| Sort Order | Order to sort the customers. | |
| Cursor | A pagination cursor returned by a previous call to this endpoint. | |
| Location ID | The ID of the location to retrieve details for. | |
| Status | If provided, only refunds with the given status are returned. | |
| Source Type | If provided, only returns refunds whose payments have the indicated source type. | |
| Limit | The maximum number of results to be returned in a single page. |
List Payments
Retrieves a list of payments taken by the account making the request.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Begin Time | Return objects modified after this timestamp, in RFC 3339 format. | |
| End Time | End of the time range to retrieve payments for in RFC 3339 format. Filtered using the created_at field. | |
| Sort Order | Order to sort the customers. | |
| Cursor | A pagination cursor returned by a previous call to this endpoint. | |
| Location ID | The ID of the location to retrieve details for. | |
| Total | The exact payment amount in cents (smallest currency unit). For example, 1500 for $15.00. | |
| Last 4 digits of Card | The last four digits of a payment card. | |
| Card Brand | The brand of the payment card (for example, VISA, MASTERCARD, AMEX). | |
| Limit | The maximum number of results to be returned in a single page. |
List Webhook Subscriptions
Lists all webhook subscriptions owned by your application.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Cursor | A pagination cursor returned by a previous call to this endpoint. | |
| Include Disabled | When true, includes disabled Subscriptions. By default, only enabled Subscriptions are returned. | false |
| Sort Order | Sort order for subscriptions by creation date. Options: ASC (oldest first), DESC (newest first). | |
| Limit | The maximum number of results to be returned in a single page. |
Publish Invoice
Publish an invoice.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Invoice ID | The ID of the invoice to retrieve. | |
| Idempotency Key | A unique string that identifies this request to ensure idempotent operations. |
Raw Request
Send raw HTTP request to Square
| Input | Comments | Default |
|---|---|---|
| URL | This is the URL to call. | |
| Method | The HTTP method to use. | |
| Data | The HTTP body payload to send to the URL. | |
| Form Data | The Form Data to be sent as a multipart form upload. | |
| File Data | File Data to be sent as a multipart form upload. | |
| File Data File Names | File names to apply to the file data inputs. Keys must match the file data keys above. | |
| Query Parameter | A 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. | |
| Header | A list of headers to send with the request. | |
| Response Type | The type of data you expect in the response. You can request json, text, or binary data. | json |
| Timeout | The 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 Errors | If 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 Count | The maximum number of retries to attempt. Specify 0 for no retries. | 0 |
| Use Exponential Backoff | Specifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored. | false |
| Connection | The Square connection to use. |
Refund Payment
Refunds a payment. You can refund the entire payment amount or a portion of it.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Payment ID | A unique ID for the desired payment. | |
| Idempotency Key | A unique string that identifies this request to ensure idempotent operations. | |
| Refund Amount | The refund amount in JSON format. Amount is in cents (smallest currency unit). Cannot exceed the payment total minus previous refunds. | |
| Reason | A description of the reason for the refund. |
Retrieve Catalog Object
Returns a single CatalogObject based on the provided ID.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Object ID | The unique identifier of the catalog object. | |
| Include Related Objects | When true, the response will include additional objects that are related to the requested objects. | false |
| Catalog Version | The specific version of the catalog objects to be included in the response. This allows you to retrieve historical versions of objects. The specified version value is matched against the CatalogObjects' version attribute. |
Retrieve Customer
Retrieve details for a single customer.
| Input | Comments | Default |
|---|---|---|
| Customer ID | The ID of the customer to retrieve details for. | |
| Connection | The Square connection to use. |
Retrieve Job
Retrieve a specified job by ID.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Job ID | The unique identifier of the job. |
Retrieve Location
Retrieves details of a specific location.
| Input | Comments | Default |
|---|---|---|
| Location ID | The ID of the location to retrieve details for. | |
| Connection | The Square connection to use. |
Retrieve Order
Retrieves an Order by its ID.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Order ID | The ID of the order to retrieve. |
Retrieve Team Member
Retrieve a team member based on the provided ID.
| Input | Comments | Default |
|---|---|---|
| Team Member ID | The ID of the TeamMember to be retrieved. | |
| Connection | The Square connection to use. |
Retrieve Webhook Subscription
Retrieves a webhook subscription identified by its ID.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Subscription ID | The ID of the Subscription to retrieve. |
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.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Text Filter | The text filter expression to return items or item variations containing specified text. | |
| Category IDs | Array of category IDs in JSON format to filter items by category. | |
| Stock Levels | Array of stock levels in JSON format to filter items. Options: OUT, LOW. | |
| Enabled Location IDs | Array of location IDs in JSON format to filter items by enabled locations. | |
| Cursor | A pagination cursor returned by a previous call to this endpoint. | |
| Limit | The maximum number of results to be returned in a single page. | |
| Sort Order | Order to sort the customers. | |
| Product Types | Array of product types in JSON format to filter items. Options: REGULAR, APPOINTMENTS_SERVICE. | |
| Custom Attribute Filters | Array of custom attribute filters in JSON format to match items with specific custom attributes. | |
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.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Cursor | A pagination cursor returned by a previous call to this endpoint. | |
| Object Types | Comma-separated list of catalog object types to include in search results. Options: ITEM, CATEGORY, TAX, DISCOUNT, MODIFIER_LIST, etc. | |
| Include Deleted Objects | When true, deleted objects will be included in the results. | false |
| Include Related Objects | When true, the response will include additional objects that are related to the requested objects. | false |
| Begin Time | Return objects modified after this timestamp, in RFC 3339 format. | |
| Catalog Query | Query to filter or sort catalog results in JSON format. See Square Catalog Query for query options. | |
| Limit | The maximum number of results to be returned in a single page. |
Search Customers
Search customer profiles.
| Input | Comments | Default |
|---|---|---|
| Limit | The maximum number of results to be returned in a single page. | |
| Query | The query to search for customers. See Square Search Customers for filter and sort options. | |
| Cursor | A pagination cursor returned by a previous call to this endpoint. | |
| Connection | The Square connection to use. |
Search Invoices
Searches for invoices from a location specified in the filter.
| Input | Comments | Default |
|---|---|---|
| Limit | The maximum number of results to be returned in a single page. | |
| Query | The query to search for invoices. See Square Search Invoices for filter and sort options. | |
| Cursor | A pagination cursor returned by a previous call to this endpoint. | |
| Connection | The Square connection to use. |
Search Orders
Search all orders for one or more locations.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Location IDs | Array of location IDs in JSON format. Used to filter results to specific locations. | |
| Query | The query to search for orders. See Square Search Orders for filter and sort options. | |
| Limit | The maximum number of results to be returned in a single page. | |
| Return Entries | When true, the entries associated with the orders will be returned. | true |
| Cursor | A pagination cursor returned by a previous call to this endpoint. |
Search Team Members
Search for team members based on given filters.
| Input | Comments | Default |
|---|---|---|
| Search Query | The query parameters to filter team members. See Square Search Team Members for filter options. | |
| Connection | The Square connection to use. | |
| Limit | The maximum number of results to be returned in a single page. | |
| Cursor | A pagination cursor returned by a previous call to this endpoint. |
Update Customer
Update a customer profile.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Customer ID | The ID of the customer to retrieve details for. | |
| Address | The customer's address in JSON format. See Square Address Object for field details. | |
| Birthday | The customer's birthday in YYYY-MM-DD format. | |
| Company Name | The name of the customer's company. | |
| Email Address | The customer's email address. | |
| Family Name | The customer's family name (last name). | |
| Given Name | The customer's given name (first name). | |
| Nickname | A nickname for the customer. | |
| Note | A note to associate with the customer. | |
| Phone Number | The customer's phone number in E.164 format (e.g., +14155552671). | |
| Reference Id | An optional reference ID to associate with the customer. | |
| Tax IDs | Tax identification numbers in JSON format. Only applicable for EU countries. See Square Tax IDs for supported formats. | |
Update Invoice
Update an invoice.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Invoice ID | The ID of the invoice to retrieve. | |
| Update Invoice | The invoice data to update in JSON format. See Square Update Invoice for field details. | |
Update Job
Update the title or tip eligibility of a job. Changes propagate to all job assignments, shifts, and wage settings.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Job ID | The unique identifier of the job. | |
| Job Title | Updated job title. Only include if changing the title. | |
| Is Tip Eligible | When true, employees in this job role are eligible to receive tips. Only include if changing tip eligibility. | true |
| Version | Version number for optimistic concurrency control. Ensures the object hasn't been modified by another request. |
Update Location
Updates a location associated with a Square account.
| Input | Comments | Default |
|---|---|---|
| Location ID | The ID of the location to retrieve details for. | |
| Location Update | The location data to update in JSON format. See Square Location Object for field details. | |
| Connection | The Square connection to use. |
Update Order
Updates an open order by adding, replacing, or deleting fields.
| Input | Comments | Default |
|---|---|---|
| Order ID | The ID of the order to retrieve. | |
| Order Object | The complete order object in JSON format. See Square Order Object for field details. | |
| Fields to Clear | Array of dot notation paths for fields to clear in JSON format. For example: line_items[uid].note or discounts[uid]. | |
| Idempotency Key | A unique string that identifies this request to ensure idempotent operations. | |
| Connection | The Square connection to use. |
Update Payment
Updates a payment with the APPROVED status.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Payment ID | A unique ID for the desired payment. | |
| Payment | Payment data in JSON format. Amounts are in cents (smallest currency unit). See Square Payment Object for field details. | |
Update Team Member
Update a team member.
| Input | Comments | Default |
|---|---|---|
| Team Member ID | The ID of the TeamMember to be retrieved. | |
| Team Member | The team member data in JSON format. See Square TeamMember Object for field details. | |
| Connection | The Square connection to use. |
Update Webhook Subscription
Updates a webhook subscription.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Subscription ID | The ID of the Subscription to retrieve. | |
| Webhook Subscription | Updated webhook subscription data in JSON format. Only include fields you want to modify. | |
Upsert Catalog Object
Creates a new or updates the specified CatalogObject.
| Input | Comments | Default |
|---|---|---|
| Connection | The Square connection to use. | |
| Idempotency Key | A unique string that identifies this request to ensure idempotent operations. | |
| Catalog Object | Catalog object data in JSON format. See Square Catalog Object for field details. | |