/square-locations | Type: Application | PCID required: Yes
Tools
square_locations_bulk_delete_location_custom_attributes
BulkDeleteLocationCustomAttributes Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
values | object | Yes | — | The data used to update the CustomAttribute objects. The keys must be unique and are used to map to the corresponding response. |
square_locations_bulk_delete_merchant_custom_attributes
BulkDeleteMerchantCustomAttributes Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
values | object | Yes | — | The data used to update the CustomAttribute objects. The keys must be unique and are used to map to the corresponding response. |
square_locations_bulk_retrieve_channels
BulkRetrieveChannels Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
channel_ids | string[] | Yes | — | Channel Ids |
square_locations_bulk_upsert_location_custom_attributes
BulkUpsertLocationCustomAttributes Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
values | object | Yes | — | A map containing 1 to 25 individual upsert requests. For each request, provide an arbitrary ID that is unique for this BulkUpsertLocationCustomAttributes request and the information needed to create or update a custom attribute. |
square_locations_bulk_upsert_merchant_custom_attributes
BulkUpsertMerchantCustomAttributes Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
values | object | Yes | — | A map containing 1 to 25 individual upsert requests. For each request, provide an arbitrary ID that is unique for this BulkUpsertMerchantCustomAttributes request and the information needed to create or update a custom attribute. |
square_locations_create_location
CreateLocation Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
location | object | No | — | Represents one of a business’ locations. |
square_locations_create_location_custom_attribute_definition
CreateLocationCustomAttributeDefinition Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
custom_attribute_definition | object | Yes | — | Represents a definition for custom attribute values. A custom attribute definition specifies the key, visibility, schema, and other properties for a custom attribute. |
idempotency_key | string | No | — | A unique identifier for this request, used to ensure idempotency. For more information, see Idempotency. |
square_locations_create_merchant_custom_attribute_definition
CreateMerchantCustomAttributeDefinition Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
custom_attribute_definition | object | Yes | — | Represents a definition for custom attribute values. A custom attribute definition specifies the key, visibility, schema, and other properties for a custom attribute. |
idempotency_key | string | No | — | A unique identifier for this request, used to ensure idempotency. For more information, see Idempotency. |
square_locations_create_webhook_subscription
CreateWebhookSubscription Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
idempotency_key | string | No | — | A unique string that identifies the CreateWebhookSubscription request. |
subscription | object | Yes | — | Represents the details of a webhook subscription, including notification URL, event types, and signature key. |
square_locations_delete_location_custom_attribute
DeleteLocationCustomAttribute Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
location_id | string | Yes | — | The ID of the target location. |
key | string | Yes | — | The key of the custom attribute to delete. This key must match the key of a custom attribute definition in the Square seller account. If the requesting application is not the definition owner, you must use the qualified key. |
square_locations_delete_location_custom_attribute_definition
DeleteLocationCustomAttributeDefinition Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
key | string | Yes | — | The key of the custom attribute definition to delete. |
square_locations_delete_merchant_custom_attribute
DeleteMerchantCustomAttribute Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
merchant_id | string | Yes | — | The ID of the target merchant. |
key | string | Yes | — | The key of the custom attribute to delete. This key must match the key of a custom attribute definition in the Square seller account. If the requesting application is not the definition owner, you must use the qualified key. |
square_locations_delete_merchant_custom_attribute_definition
DeleteMerchantCustomAttributeDefinition Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
key | string | Yes | — | The key of the custom attribute definition to delete. |
square_locations_delete_snippet
DeleteSnippet Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
site_id | string | Yes | — | The ID of the site that contains the snippet. |
square_locations_delete_webhook_subscription
DeleteWebhookSubscription Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
subscription_id | string | Yes | — | [REQUIRED] The ID of the Subscription to delete. |
square_locations_disable_events
DisableEventssquare_locations_enable_events
EnableEventssquare_locations_list_channels
ListChannels Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
reference_type | string | No | — | Type of reference associated to channel |
reference_id | string | No | — | id of reference associated to channel |
status | string | No | — | Status of channel |
cursor | string | No | — | Cursor to fetch the next result |
limit | integer | No | — | Maximum number of results to return. When not provided the returned results will be cap at 100 channels. |
square_locations_list_event_types
ListEventTypes Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
api_version | string | No | — | The API version for which to list event types. Setting this field overrides the default version used by the application. |
square_locations_list_location_custom_attribute_definitions
ListLocationCustomAttributeDefinitions Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
visibility_filter | string | No | — | Filters the CustomAttributeDefinition results by their visibility values. |
limit | integer | No | — | The maximum number of results to return in a single paged response. This limit is advisory. The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100. The default value is 20. For more information, see Pagination. |
cursor | string | No | — | The cursor returned in the paged response from the previous call to this endpoint. Provide this cursor to retrieve the next page of results for your original request. For more information, see Pagination. |
square_locations_list_location_custom_attributes
ListLocationCustomAttributes Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
location_id | string | Yes | — | The ID of the target location. |
visibility_filter | string | No | — | Filters the CustomAttributeDefinition results by their visibility values. |
limit | integer | No | — | The maximum number of results to return in a single paged response. This limit is advisory. The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100. The default value is 20. For more information, see Pagination. |
cursor | string | No | — | The cursor returned in the paged response from the previous call to this endpoint. Provide this cursor to retrieve the next page of results for your original request. For more information, see Pagination. |
with_definitions | boolean | No | — | Indicates whether to return the custom attribute definition in the definition field of each custom attribute. Set this parameter to true to get the name and description of each custom attribute, information about the data type, or other definition details. The default value is false. |
square_locations_list_locations
ListLocationssquare_locations_list_merchant_custom_attribute_definitions
ListMerchantCustomAttributeDefinitions Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
visibility_filter | string | No | — | Filters the CustomAttributeDefinition results by their visibility values. |
limit | integer | No | — | The maximum number of results to return in a single paged response. This limit is advisory. The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100. The default value is 20. For more information, see Pagination. |
cursor | string | No | — | The cursor returned in the paged response from the previous call to this endpoint. Provide this cursor to retrieve the next page of results for your original request. For more information, see Pagination. |
square_locations_list_merchant_custom_attributes
ListMerchantCustomAttributes Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
merchant_id | string | Yes | — | The ID of the target merchant. |
visibility_filter | string | No | — | Filters the CustomAttributeDefinition results by their visibility values. |
limit | integer | No | — | The maximum number of results to return in a single paged response. This limit is advisory. The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100. The default value is 20. For more information, see Pagination. |
cursor | string | No | — | The cursor returned in the paged response from the previous call to this endpoint. Provide this cursor to retrieve the next page of results for your original request. For more information, see Pagination. |
with_definitions | boolean | No | — | Indicates whether to return the custom attribute definition in the definition field of each custom attribute. Set this parameter to true to get the name and description of each custom attribute, information about the data type, or other definition details. The default value is false. |
square_locations_list_merchants
ListMerchants Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
cursor | integer | No | — | The cursor generated by the previous response. |
square_locations_list_sites
ListSitessquare_locations_list_webhook_event_types
ListWebhookEventTypes Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
api_version | string | No | — | The API version for which to list event types. Setting this field overrides the default version used by the application. |
square_locations_list_webhook_subscriptions
ListWebhookSubscriptions Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
cursor | string | No | — | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. For more information, see Pagination. |
include_disabled | boolean | No | — | Includes disabled Subscriptions. By default, all enabled Subscriptions are returned. |
sort_order | string | No | — | Sorts the returned list by when the Subscription was created with the specified order. This field defaults to ASC. |
limit | integer | No | — | The maximum number of results to be returned in a single page. It is possible to receive fewer results than the specified limit on a given page. The default value of 100 is also the maximum allowed value. Default: 100 |
square_locations_retrieve_channel
RetrieveChannel Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
channel_id | string | Yes | — | A channel id |
square_locations_retrieve_location
RetrieveLocation Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
location_id | string | Yes | — | The ID of the location to retrieve. Specify the string “main” to return the main location. |
square_locations_retrieve_location_custom_attribute
RetrieveLocationCustomAttribute Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
location_id | string | Yes | — | The ID of the target location. |
key | string | Yes | — | The key of the custom attribute to retrieve. This key must match the key of a custom attribute definition in the Square seller account. If the requesting application is not the definition owner, you must use the qualified key. |
with_definition | boolean | No | — | Indicates whether to return the custom attribute definition in the definition field of the custom attribute. Set this parameter to true to get the name and description of the custom attribute, information about the data type, or other definition details. The default value is false. |
version | integer | No | — | The current version of the custom attribute, which is used for strongly consistent reads to guarantee that you receive the most up-to-date data. When included in the request, Square returns the specified version or a higher version if one exists. If the specified version is higher than the current version, Square returns a BAD_REQUEST error. |
square_locations_retrieve_location_custom_attribute_definition
RetrieveLocationCustomAttributeDefinition Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
key | string | Yes | — | The key of the custom attribute definition to retrieve. If the requesting application is not the definition owner, you must use the qualified key. |
version | integer | No | — | The current version of the custom attribute definition, which is used for strongly consistent reads to guarantee that you receive the most up-to-date data. When included in the request, Square returns the specified version or a higher version if one exists. If the specified version is higher than the current version, Square returns a BAD_REQUEST error. |
square_locations_retrieve_merchant
RetrieveMerchant Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
merchant_id | string | Yes | — | The ID of the merchant to retrieve. If the string “me” is supplied as the ID, then retrieve the merchant that is currently accessible to this call. |
square_locations_retrieve_merchant_custom_attribute
RetrieveMerchantCustomAttribute Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
merchant_id | string | Yes | — | The ID of the target merchant. |
key | string | Yes | — | The key of the custom attribute to retrieve. This key must match the key of a custom attribute definition in the Square seller account. If the requesting application is not the definition owner, you must use the qualified key. |
with_definition | boolean | No | — | Indicates whether to return the custom attribute definition in the definition field of the custom attribute. Set this parameter to true to get the name and description of the custom attribute, information about the data type, or other definition details. The default value is false. |
version | integer | No | — | The current version of the custom attribute, which is used for strongly consistent reads to guarantee that you receive the most up-to-date data. When included in the request, Square returns the specified version or a higher version if one exists. If the specified version is higher than the current version, Square returns a BAD_REQUEST error. |
square_locations_retrieve_merchant_custom_attribute_definition
RetrieveMerchantCustomAttributeDefinition Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
key | string | Yes | — | The key of the custom attribute definition to retrieve. If the requesting application is not the definition owner, you must use the qualified key. |
version | integer | No | — | The current version of the custom attribute definition, which is used for strongly consistent reads to guarantee that you receive the most up-to-date data. When included in the request, Square returns the specified version or a higher version if one exists. If the specified version is higher than the current version, Square returns a BAD_REQUEST error. |
square_locations_retrieve_snippet
RetrieveSnippet Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
site_id | string | Yes | — | The ID of the site that contains the snippet. |
square_locations_retrieve_webhook_subscription
RetrieveWebhookSubscription Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
subscription_id | string | Yes | — | [REQUIRED] The ID of the Subscription to retrieve. |
square_locations_search_events
SearchEvents Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
cursor | string | No | — | A pagination cursor returned by a previous call to this endpoint. Provide this cursor to retrieve the next set of events for your original query. For more information, see Pagination. |
limit | integer | No | — | The maximum number of events to return in a single page. The response might contain fewer events. The default value is 100, which is also the maximum allowed value. For more information, see Pagination. Default: 100 |
query | object | No | — | Contains query criteria for the search. |
square_locations_test_webhook_subscription
TestWebhookSubscription Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
subscription_id | string | Yes | — | [REQUIRED] The ID of the Subscription to test. |
event_type | string | No | — | The event type that will be used to test the Subscription. The event type must be contained in the list of event types in the Subscription. |
square_locations_update_location
UpdateLocation Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
location_id | string | Yes | — | The ID of the location to update. |
location | object | No | — | Represents one of a business’ locations. |
square_locations_update_location_custom_attribute_definition
UpdateLocationCustomAttributeDefinition Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
key | string | Yes | — | The key of the custom attribute definition to update. |
custom_attribute_definition | object | Yes | — | Represents a definition for custom attribute values. A custom attribute definition specifies the key, visibility, schema, and other properties for a custom attribute. |
idempotency_key | string | No | — | A unique identifier for this request, used to ensure idempotency. For more information, see Idempotency. |
square_locations_update_merchant_custom_attribute_definition
UpdateMerchantCustomAttributeDefinition Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
key | string | Yes | — | The key of the custom attribute definition to update. |
custom_attribute_definition | object | Yes | — | Represents a definition for custom attribute values. A custom attribute definition specifies the key, visibility, schema, and other properties for a custom attribute. |
idempotency_key | string | No | — | A unique identifier for this request, used to ensure idempotency. For more information, see Idempotency. |
square_locations_update_webhook_subscription
UpdateWebhookSubscription Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
subscription_id | string | Yes | — | [REQUIRED] The ID of the Subscription to update. |
subscription | object | No | — | Represents the details of a webhook subscription, including notification URL, event types, and signature key. |
square_locations_update_webhook_subscription_signature_key
UpdateWebhookSubscriptionSignatureKey Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
subscription_id | string | Yes | — | [REQUIRED] The ID of the Subscription to update. |
idempotency_key | string | No | — | A unique string that identifies the UpdateWebhookSubscriptionSignatureKey request. |
square_locations_upsert_location_custom_attribute
UpsertLocationCustomAttribute Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
location_id | string | Yes | — | The ID of the target location. |
key | string | Yes | — | The key of the custom attribute to create or update. This key must match the key of a custom attribute definition in the Square seller account. If the requesting application is not the definition owner, you must use the qualified key. |
custom_attribute | object | Yes | — | A custom attribute value. Each custom attribute value has a corresponding CustomAttributeDefinition object. |
idempotency_key | string | No | — | A unique identifier for this request, used to ensure idempotency. For more information, see Idempotency. |
square_locations_upsert_merchant_custom_attribute
UpsertMerchantCustomAttribute Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
merchant_id | string | Yes | — | The ID of the target merchant. |
key | string | Yes | — | The key of the custom attribute to create or update. This key must match the key of a custom attribute definition in the Square seller account. If the requesting application is not the definition owner, you must use the qualified key. |
custom_attribute | object | Yes | — | A custom attribute value. Each custom attribute value has a corresponding CustomAttributeDefinition object. |
idempotency_key | string | No | — | A unique identifier for this request, used to ensure idempotency. For more information, see Idempotency. |
square_locations_upsert_snippet
UpsertSnippet Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
site_id | string | Yes | — | The ID of the site where you want to add or update the snippet. |
snippet | object | Yes | — | Represents the snippet that is added to a Square Online site. The snippet code is injected into the head element of all pages on the site, except for checkout pages. |

