Skip to main content
Server path: /square-locations | Type: Application | PCID required: Yes

Tools

ToolDescription
square_locations_bulk_delete_location_custom_attributesBulkDeleteLocationCustomAttributes
square_locations_bulk_delete_merchant_custom_attributesBulkDeleteMerchantCustomAttributes
square_locations_bulk_retrieve_channelsBulkRetrieveChannels
square_locations_bulk_upsert_location_custom_attributesBulkUpsertLocationCustomAttributes
square_locations_bulk_upsert_merchant_custom_attributesBulkUpsertMerchantCustomAttributes
square_locations_create_locationCreateLocation
square_locations_create_location_custom_attribute_definitionCreateLocationCustomAttributeDefinition
square_locations_create_merchant_custom_attribute_definitionCreateMerchantCustomAttributeDefinition
square_locations_create_webhook_subscriptionCreateWebhookSubscription
square_locations_delete_location_custom_attributeDeleteLocationCustomAttribute
square_locations_delete_location_custom_attribute_definitionDeleteLocationCustomAttributeDefinition
square_locations_delete_merchant_custom_attributeDeleteMerchantCustomAttribute
square_locations_delete_merchant_custom_attribute_definitionDeleteMerchantCustomAttributeDefinition
square_locations_delete_snippetDeleteSnippet
square_locations_delete_webhook_subscriptionDeleteWebhookSubscription
square_locations_disable_eventsDisableEvents
square_locations_enable_eventsEnableEvents
square_locations_list_channelsListChannels
square_locations_list_event_typesListEventTypes
square_locations_list_location_custom_attribute_definitionsListLocationCustomAttributeDefinitions
square_locations_list_location_custom_attributesListLocationCustomAttributes
square_locations_list_locationsListLocations
square_locations_list_merchant_custom_attribute_definitionsListMerchantCustomAttributeDefinitions
square_locations_list_merchant_custom_attributesListMerchantCustomAttributes
square_locations_list_merchantsListMerchants
square_locations_list_sitesListSites
square_locations_list_webhook_event_typesListWebhookEventTypes
square_locations_list_webhook_subscriptionsListWebhookSubscriptions
square_locations_retrieve_channelRetrieveChannel
square_locations_retrieve_locationRetrieveLocation
square_locations_retrieve_location_custom_attributeRetrieveLocationCustomAttribute
square_locations_retrieve_location_custom_attribute_definitionRetrieveLocationCustomAttributeDefinition
square_locations_retrieve_merchantRetrieveMerchant
square_locations_retrieve_merchant_custom_attributeRetrieveMerchantCustomAttribute
square_locations_retrieve_merchant_custom_attribute_definitionRetrieveMerchantCustomAttributeDefinition
square_locations_retrieve_snippetRetrieveSnippet
square_locations_retrieve_webhook_subscriptionRetrieveWebhookSubscription
square_locations_search_eventsSearchEvents
square_locations_test_webhook_subscriptionTestWebhookSubscription
square_locations_update_locationUpdateLocation
square_locations_update_location_custom_attribute_definitionUpdateLocationCustomAttributeDefinition
square_locations_update_merchant_custom_attribute_definitionUpdateMerchantCustomAttributeDefinition
square_locations_update_webhook_subscriptionUpdateWebhookSubscription
square_locations_update_webhook_subscription_signature_keyUpdateWebhookSubscriptionSignatureKey
square_locations_upsert_location_custom_attributeUpsertLocationCustomAttribute
square_locations_upsert_merchant_custom_attributeUpsertMerchantCustomAttribute
square_locations_upsert_snippetUpsertSnippet

square_locations_bulk_delete_location_custom_attributes

BulkDeleteLocationCustomAttributes Parameters:
ParameterTypeRequiredDefaultDescription
valuesobjectYesThe 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:
ParameterTypeRequiredDefaultDescription
valuesobjectYesThe 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:
ParameterTypeRequiredDefaultDescription
channel_idsstring[]YesChannel Ids

square_locations_bulk_upsert_location_custom_attributes

BulkUpsertLocationCustomAttributes Parameters:
ParameterTypeRequiredDefaultDescription
valuesobjectYesA 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:
ParameterTypeRequiredDefaultDescription
valuesobjectYesA 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:
ParameterTypeRequiredDefaultDescription
locationobjectNoRepresents one of a business’ locations.

square_locations_create_location_custom_attribute_definition

CreateLocationCustomAttributeDefinition Parameters:
ParameterTypeRequiredDefaultDescription
custom_attribute_definitionobjectYesRepresents a definition for custom attribute values. A custom attribute definition specifies the key, visibility, schema, and other properties for a custom attribute.
idempotency_keystringNoA unique identifier for this request, used to ensure idempotency. For more information, see Idempotency.

square_locations_create_merchant_custom_attribute_definition

CreateMerchantCustomAttributeDefinition Parameters:
ParameterTypeRequiredDefaultDescription
custom_attribute_definitionobjectYesRepresents a definition for custom attribute values. A custom attribute definition specifies the key, visibility, schema, and other properties for a custom attribute.
idempotency_keystringNoA unique identifier for this request, used to ensure idempotency. For more information, see Idempotency.

square_locations_create_webhook_subscription

CreateWebhookSubscription Parameters:
ParameterTypeRequiredDefaultDescription
idempotency_keystringNoA unique string that identifies the CreateWebhookSubscription request.
subscriptionobjectYesRepresents the details of a webhook subscription, including notification URL, event types, and signature key.

square_locations_delete_location_custom_attribute

DeleteLocationCustomAttribute Parameters:
ParameterTypeRequiredDefaultDescription
location_idstringYesThe ID of the target location.
keystringYesThe 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:
ParameterTypeRequiredDefaultDescription
keystringYesThe key of the custom attribute definition to delete.

square_locations_delete_merchant_custom_attribute

DeleteMerchantCustomAttribute Parameters:
ParameterTypeRequiredDefaultDescription
merchant_idstringYesThe ID of the target merchant.
keystringYesThe 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:
ParameterTypeRequiredDefaultDescription
keystringYesThe key of the custom attribute definition to delete.

square_locations_delete_snippet

DeleteSnippet Parameters:
ParameterTypeRequiredDefaultDescription
site_idstringYesThe ID of the site that contains the snippet.

square_locations_delete_webhook_subscription

DeleteWebhookSubscription Parameters:
ParameterTypeRequiredDefaultDescription
subscription_idstringYes[REQUIRED] The ID of the Subscription to delete.

square_locations_disable_events

DisableEvents

square_locations_enable_events

EnableEvents

square_locations_list_channels

ListChannels Parameters:
ParameterTypeRequiredDefaultDescription
reference_typestringNoType of reference associated to channel
reference_idstringNoid of reference associated to channel
statusstringNoStatus of channel
cursorstringNoCursor to fetch the next result
limitintegerNoMaximum number of results to return. When not provided the returned results will be cap at 100 channels.

square_locations_list_event_types

ListEventTypes Parameters:
ParameterTypeRequiredDefaultDescription
api_versionstringNoThe 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:
ParameterTypeRequiredDefaultDescription
visibility_filterstringNoFilters the CustomAttributeDefinition results by their visibility values.
limitintegerNoThe 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.
cursorstringNoThe 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:
ParameterTypeRequiredDefaultDescription
location_idstringYesThe ID of the target location.
visibility_filterstringNoFilters the CustomAttributeDefinition results by their visibility values.
limitintegerNoThe 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.
cursorstringNoThe 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_definitionsbooleanNoIndicates 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

ListLocations

square_locations_list_merchant_custom_attribute_definitions

ListMerchantCustomAttributeDefinitions Parameters:
ParameterTypeRequiredDefaultDescription
visibility_filterstringNoFilters the CustomAttributeDefinition results by their visibility values.
limitintegerNoThe 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.
cursorstringNoThe 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:
ParameterTypeRequiredDefaultDescription
merchant_idstringYesThe ID of the target merchant.
visibility_filterstringNoFilters the CustomAttributeDefinition results by their visibility values.
limitintegerNoThe 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.
cursorstringNoThe 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_definitionsbooleanNoIndicates 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:
ParameterTypeRequiredDefaultDescription
cursorintegerNoThe cursor generated by the previous response.

square_locations_list_sites

ListSites

square_locations_list_webhook_event_types

ListWebhookEventTypes Parameters:
ParameterTypeRequiredDefaultDescription
api_versionstringNoThe 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:
ParameterTypeRequiredDefaultDescription
cursorstringNoA 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_disabledbooleanNoIncludes disabled Subscriptions. By default, all enabled Subscriptions are returned.
sort_orderstringNoSorts the returned list by when the Subscription was created with the specified order. This field defaults to ASC.
limitintegerNoThe 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:
ParameterTypeRequiredDefaultDescription
channel_idstringYesA channel id

square_locations_retrieve_location

RetrieveLocation Parameters:
ParameterTypeRequiredDefaultDescription
location_idstringYesThe ID of the location to retrieve. Specify the string “main” to return the main location.

square_locations_retrieve_location_custom_attribute

RetrieveLocationCustomAttribute Parameters:
ParameterTypeRequiredDefaultDescription
location_idstringYesThe ID of the target location.
keystringYesThe 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_definitionbooleanNoIndicates 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.
versionintegerNoThe 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:
ParameterTypeRequiredDefaultDescription
keystringYesThe key of the custom attribute definition to retrieve. If the requesting application is not the definition owner, you must use the qualified key.
versionintegerNoThe 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:
ParameterTypeRequiredDefaultDescription
merchant_idstringYesThe 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:
ParameterTypeRequiredDefaultDescription
merchant_idstringYesThe ID of the target merchant.
keystringYesThe 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_definitionbooleanNoIndicates 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.
versionintegerNoThe 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:
ParameterTypeRequiredDefaultDescription
keystringYesThe key of the custom attribute definition to retrieve. If the requesting application is not the definition owner, you must use the qualified key.
versionintegerNoThe 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:
ParameterTypeRequiredDefaultDescription
site_idstringYesThe ID of the site that contains the snippet.

square_locations_retrieve_webhook_subscription

RetrieveWebhookSubscription Parameters:
ParameterTypeRequiredDefaultDescription
subscription_idstringYes[REQUIRED] The ID of the Subscription to retrieve.

square_locations_search_events

SearchEvents Parameters:
ParameterTypeRequiredDefaultDescription
cursorstringNoA 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.
limitintegerNoThe 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
queryobjectNoContains query criteria for the search.

square_locations_test_webhook_subscription

TestWebhookSubscription Parameters:
ParameterTypeRequiredDefaultDescription
subscription_idstringYes[REQUIRED] The ID of the Subscription to test.
event_typestringNoThe 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:
ParameterTypeRequiredDefaultDescription
location_idstringYesThe ID of the location to update.
locationobjectNoRepresents one of a business’ locations.

square_locations_update_location_custom_attribute_definition

UpdateLocationCustomAttributeDefinition Parameters:
ParameterTypeRequiredDefaultDescription
keystringYesThe key of the custom attribute definition to update.
custom_attribute_definitionobjectYesRepresents a definition for custom attribute values. A custom attribute definition specifies the key, visibility, schema, and other properties for a custom attribute.
idempotency_keystringNoA unique identifier for this request, used to ensure idempotency. For more information, see Idempotency.

square_locations_update_merchant_custom_attribute_definition

UpdateMerchantCustomAttributeDefinition Parameters:
ParameterTypeRequiredDefaultDescription
keystringYesThe key of the custom attribute definition to update.
custom_attribute_definitionobjectYesRepresents a definition for custom attribute values. A custom attribute definition specifies the key, visibility, schema, and other properties for a custom attribute.
idempotency_keystringNoA unique identifier for this request, used to ensure idempotency. For more information, see Idempotency.

square_locations_update_webhook_subscription

UpdateWebhookSubscription Parameters:
ParameterTypeRequiredDefaultDescription
subscription_idstringYes[REQUIRED] The ID of the Subscription to update.
subscriptionobjectNoRepresents the details of a webhook subscription, including notification URL, event types, and signature key.

square_locations_update_webhook_subscription_signature_key

UpdateWebhookSubscriptionSignatureKey Parameters:
ParameterTypeRequiredDefaultDescription
subscription_idstringYes[REQUIRED] The ID of the Subscription to update.
idempotency_keystringNoA unique string that identifies the UpdateWebhookSubscriptionSignatureKey request.

square_locations_upsert_location_custom_attribute

UpsertLocationCustomAttribute Parameters:
ParameterTypeRequiredDefaultDescription
location_idstringYesThe ID of the target location.
keystringYesThe 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_attributeobjectYesA custom attribute value. Each custom attribute value has a corresponding CustomAttributeDefinition object.
idempotency_keystringNoA unique identifier for this request, used to ensure idempotency. For more information, see Idempotency.

square_locations_upsert_merchant_custom_attribute

UpsertMerchantCustomAttribute Parameters:
ParameterTypeRequiredDefaultDescription
merchant_idstringYesThe ID of the target merchant.
keystringYesThe 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_attributeobjectYesA custom attribute value. Each custom attribute value has a corresponding CustomAttributeDefinition object.
idempotency_keystringNoA unique identifier for this request, used to ensure idempotency. For more information, see Idempotency.

square_locations_upsert_snippet

UpsertSnippet Parameters:
ParameterTypeRequiredDefaultDescription
site_idstringYesThe ID of the site where you want to add or update the snippet.
snippetobjectYesRepresents 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.