Square: Catalog Info
Square catalog.catalogInfo: arguments, response, policy and SDK examples.
← Catalog operations · Get started
Operation square.cataloginfo
Provider route: GET /v2/catalog/info. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”Install @alter-ai/sdk @alter-ai/square with npm, or alter-sdk-square with pip. Supply your connected customer’s grant ID and the arguments described below.
import { App } from "@alter-ai/sdk";import { SquareIntegration } from "@alter-ai/square";
async function execute(input: Parameters<SquareIntegration["catalog"]["catalogInfo"]>[0]) { const app = new App({ apiKey: process.env.ALTER_API_KEY! }); try { const provider = new SquareIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! }); const call = await provider.catalog.catalogInfo(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom alter_sdk_square import SquareIntegration
async def execute(arguments): async with App(api_key=os.environ["ALTER_API_KEY"]) as app: provider = SquareIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]}) call = await provider.catalog.catalog_info(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | Model | Root | Expand Catalog Info — response body |
Referenced models: Catalog Info — response body
Schemas
Section titled “Schemas”3 more schemas are linked from the tables above, on the schema pages.
Catalog Info — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
limits | Model | Optional | Expand Catalog Info — response body — limits Limits that apply to this API. |
standard_unit_description_group | Model | Optional | Expand Catalog Info — response body — standard unit description group Names and abbreviations for standard units. |
Referenced models: Catalog Info — response body — limits, Get Shift — response body — errors item, Catalog Info — response body — standard unit description group
Catalog Info — response body — limits
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
batch_delete_max_object_ids | JSON | Optional | |
batch_delete_max_object_ids (anyOf 1) | JSON | Alternative | |
batch_delete_max_object_ids (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of object IDs that may be included in a single `/v2/catalog/batch-delete` request. |
batch_delete_max_object_ids (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
batch_delete_max_object_ids (anyOf 2) | null | Alternative | |
batch_retrieve_max_object_ids | JSON | Optional | |
batch_retrieve_max_object_ids (anyOf 1) | JSON | Alternative | |
batch_retrieve_max_object_ids (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of object IDs that may appear in a `/v2/catalog/batch-retrieve` request. |
batch_retrieve_max_object_ids (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
batch_retrieve_max_object_ids (anyOf 2) | null | Alternative | |
batch_upsert_max_objects_per_batch | JSON | Optional | |
batch_upsert_max_objects_per_batch (anyOf 1) | JSON | Alternative | |
batch_upsert_max_objects_per_batch (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of objects that may appear within a single batch in a `/v2/catalog/batch-upsert` request. |
batch_upsert_max_objects_per_batch (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
batch_upsert_max_objects_per_batch (anyOf 2) | null | Alternative | |
batch_upsert_max_total_objects | JSON | Optional | |
batch_upsert_max_total_objects (anyOf 1) | JSON | Alternative | |
batch_upsert_max_total_objects (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of objects that may appear across all batches in a `/v2/catalog/batch-upsert` request. |
batch_upsert_max_total_objects (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
batch_upsert_max_total_objects (anyOf 2) | null | Alternative | |
search_max_page_limit | JSON | Optional | |
search_max_page_limit (anyOf 1) | JSON | Alternative | |
search_max_page_limit (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of results that may be returned in a page of a `/v2/catalog/search` response. |
search_max_page_limit (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
search_max_page_limit (anyOf 2) | null | Alternative | |
update_item_modifier_lists_max_item_ids | JSON | Optional | |
update_item_modifier_lists_max_item_ids (anyOf 1) | JSON | Alternative | |
update_item_modifier_lists_max_item_ids (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of item IDs that may be included in a single `/v2/catalog/update-item-modifier-lists` request. |
update_item_modifier_lists_max_item_ids (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
update_item_modifier_lists_max_item_ids (anyOf 2) | null | Alternative | |
update_item_modifier_lists_max_modifier_lists_to_disable | JSON | Optional | |
update_item_modifier_lists_max_modifier_lists_to_disable (anyOf 1) | JSON | Alternative | |
update_item_modifier_lists_max_modifier_lists_to_disable (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of modifier list IDs to be disabled that may be included in a single `/v2/catalog/update-item-modifier-lists` request. |
update_item_modifier_lists_max_modifier_lists_to_disable (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
update_item_modifier_lists_max_modifier_lists_to_disable (anyOf 2) | null | Alternative | |
update_item_modifier_lists_max_modifier_lists_to_enable | JSON | Optional | |
update_item_modifier_lists_max_modifier_lists_to_enable (anyOf 1) | JSON | Alternative | |
update_item_modifier_lists_max_modifier_lists_to_enable (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of modifier list IDs to be enabled that may be included in a single `/v2/catalog/update-item-modifier-lists` request. |
update_item_modifier_lists_max_modifier_lists_to_enable (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
update_item_modifier_lists_max_modifier_lists_to_enable (anyOf 2) | null | Alternative | |
update_item_taxes_max_item_ids | JSON | Optional | |
update_item_taxes_max_item_ids (anyOf 1) | JSON | Alternative | |
update_item_taxes_max_item_ids (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of item IDs that may be included in a single `/v2/catalog/update-item-taxes` request. |
update_item_taxes_max_item_ids (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
update_item_taxes_max_item_ids (anyOf 2) | null | Alternative | |
update_item_taxes_max_taxes_to_disable | JSON | Optional | |
update_item_taxes_max_taxes_to_disable (anyOf 1) | JSON | Alternative | |
update_item_taxes_max_taxes_to_disable (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of tax IDs to be disabled that may be included in a single `/v2/catalog/update-item-taxes` request. |
update_item_taxes_max_taxes_to_disable (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
update_item_taxes_max_taxes_to_disable (anyOf 2) | null | Alternative | |
update_item_taxes_max_taxes_to_enable | JSON | Optional | |
update_item_taxes_max_taxes_to_enable (anyOf 1) | JSON | Alternative | |
update_item_taxes_max_taxes_to_enable (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of tax IDs to be enabled that may be included in a single `/v2/catalog/update-item-taxes` request. |
update_item_taxes_max_taxes_to_enable (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
update_item_taxes_max_taxes_to_enable (anyOf 2) | null | Alternative |
Get Shift — response body — errors item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an error encountered during a request to the Connect API. See [Handling errors](https://developer.squareup.com/docs/build-basics/handling-errors) for more information. |
category | string | Required within parent | Indicates which high-level category of error has occurred during a request to the Connect API. The high-level category for the error. See [ErrorCategory](#type-errorcategory) for possible values Known values: API_ERROR, AUTHENTICATION_ERROR, INVALID_REQUEST_ERROR, RATE_LIMIT_ERROR, PAYMENT_METHOD_ERROR, REFUND_ERROR, MERCHANT_SUBSCRIPTION_ERROR, EXTERNAL_VENDOR_ERROR |
code | Model | Required within parent | Expand Get Shift — response body — errors item code The specific code of the error. See [ErrorCode](#type-errorcode) for possible values |
detail | string | Optional | A human-readable description of the error for debugging purposes. |
field | string | Optional | The name of the field provided in the original request (if any) that the error pertains to. |
Referenced models: Get Shift — response body — errors item code
Catalog Info — response body — standard unit description group
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Group of standard measurement units. |
language_code | JSON | Optional | |
language_code (anyOf 1) | string | Alternative | IETF language tag. |
language_code (anyOf 2) | null | Alternative | |
standard_unit_descriptions | JSON | Optional | |
standard_unit_descriptions (anyOf 1) | array | Alternative | List of standard (non-custom) measurement units in this description group. |
standard_unit_descriptions (anyOf 1)[] | Model | Each item | Expand Catalog Info — response body — standard unit description group standard unit descriptions array item |
standard_unit_descriptions (anyOf 2) | null | Alternative |
Referenced models: Catalog Info — response body — standard unit description group standard unit descriptions array item
Batch Change Inventory — response body — changes item measurement unit measurement unit area unit, custom unit, generic unit, length unit, time unit, type, volume unit, weight unit custom unit abbreviation, name
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The information needed to define a custom unit, provided by the seller. |
abbreviation | string | Required within parent | The abbreviation of the custom unit, such as "bsh" (bushel). This appears in the cart for the Point of Sale app, and in reports. |
name | string | Required within parent | The name of the custom unit, for example "bushel". |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: square.cataloginfo. Catalog operation: CatalogInfo. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.
Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.
Required provider scopes: ["ITEMS_READ"]
Pinned headers: {"Square-Version": "2026-11-18"}