Skip to main content

Square API Endpoints

The Square API endpoints the iPaaS.com integration calls — customers, orders, catalog, locations, webhooks, and OAuth — with base URLs, authentication, pagination, and rate limits.

This document lists the Square API endpoints the iPaaS.com integration calls, grouped by entity. Use it as a reference for firewall allow-listing, API-scope configuration, troubleshooting, and to determine whether the integration is affected when Square publishes a change to its API.

Portal Info

Square applications and their credentials are managed in the Square Developer Dashboard at https://developer.squareup.com. Each application's Credentials page provides the Sandbox and Production access tokens used to connect (see the Square Connections and Settings article).

API Endpoints Intro

Square exposes a REST API. The integration calls the Square Connect v2 API, with the base URL determined by the environment configured in the subscription's API URL setting:

Environment

Base URL

Production

https://connect.squareup.com

Sandbox

https://connect.squareupsandbox.com

Endpoint paths below are shown with a [Base URL] prefix that stands for the environment base URL above. Square manages API versioning through the Square-Version request header rather than the URL path.

Table of Contents

  • Customer Endpoints

  • Order Endpoints

  • Catalog Endpoints

  • Location Endpoints

  • Webhook Subscription Endpoints

  • Authorization Endpoint

Customer Endpoints

Get a Customer by Id (GET)

[Base URL]/v2/customers/{Id}

Retrieves a Square customer by its identifier. Used when recording a Square customer in iPaaS.com, including when a customer is transferred as a prerequisite of an order.

Order Endpoints

Get an Order by Id (GET)

[Base URL]/v2/orders/{Id}

Retrieves a Square order by its identifier. Used when recording a Square order in iPaaS.com as a transaction.

Catalog Endpoints

Products, product variations, options, option values, and categories are all Square catalog objects and are accessed through the catalog endpoints.

Search Catalog Objects (POST)

[Base URL]/v2/catalog/search

Searches the Square catalog. Used to find a product or variation by SKU — for example, to confirm that an order's line-item products already exist in Square, and to match an existing Square item before writing a product.

Get a Catalog Object by Id (GET)

[Base URL]/v2/catalog/object/{ObjectId}

Retrieves a single catalog object — a product, variation, option, or category — by its identifier. Used to read an item's SKU, resolve a product's category hierarchy, and fetch the current catalog version before an update.

Create or Update a Catalog Object (POST)

[Base URL]/v2/catalog/object

Creates or updates a catalog object. Used to write iPaaS.com products, variations, options, and option values to Square.

List Catalog Objects (GET)

[Base URL]/v2/catalog/list?types=ITEM_OPTION&limit=100&cursor={Cursor}

Lists catalog objects of a given type. Used to retrieve the existing Square product options and their values. Results are paginated with a cursor (see Pagination).

Location Endpoints

Get a Location by Id (GET)

[Base URL]/v2/locations/{LocationId}

Retrieves a Square location by its identifier. Used to resolve the location name recorded on an order.

Webhook Subscription Endpoints

The integration manages the Square webhook subscriptions that drive automatic order transfers.

List Webhook Subscriptions (GET)

[Base URL]/v2/webhooks/subscriptions

Lists the webhook subscriptions registered for the Square application.

Create a Webhook Subscription (POST)

[Base URL]/v2/webhooks/subscriptions

Registers a webhook subscription so Square notifies iPaaS.com of order events.

Update a Webhook Subscription (PUT)

[Base URL]/v2/webhooks/subscriptions/{SubscriptionId}

Updates an existing webhook subscription.

Delete a Webhook Subscription (DELETE)

[Base URL]/v2/webhooks/subscriptions/{SubscriptionId}

Removes a webhook subscription.

Authorization Endpoint

Obtain or Refresh an OAuth Token (POST)

[Base URL]/oauth2/token

Exchanges the authorization granted in Square for an access token and a refresh token, and later exchanges the refresh token for a new access token when the current one expires. See Authentication.

Authentication

Square uses OAuth 2.0. After the subscriber authorizes the integration in Square, iPaaS.com holds an access token and a refresh token; API calls are made with the access token as a bearer credential. Access tokens are short-lived, and the integration uses the refresh token to obtain a new access token automatically through the Authorization Endpoint above. See the Square Connections and Settings article for the authorization steps.

Pagination

List responses are paginated with a cursor. When more results exist, Square returns a cursor value; the integration passes it back as the cursor query parameter (for GET requests) or request-body field (for POST requests) to retrieve the next page, until no cursor is returned. A cursor is valid for a limited time (Square expires cursors after 5 minutes), so pages are retrieved in sequence.

Rate Limits and Concurrency

Square applies adaptive rate limiting rather than a fixed published request-per-second limit, and returns HTTP 429 when the current limit is exceeded. When this happens, the integration automatically reschedules the transfer to resume shortly after, so no subscriber action is required. The volume the integration sends is bounded by the API Throttle Limit, API Throttle Seconds, Concurrent Connections, and Concurrent Batch Executions settings on the subscription (see the Square Connections and Settings article).

Related Documents

External References

Did this answer your question?