Square: Update Location Settings
Square checkout.updateLocationSettings: arguments, response, policy and SDK examples.
← Checkout operations · Get started
Operation square.updatelocationsettings
Provider route: PUT /v2/online-checkout/location-settings/{location_id}. 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["checkout"]["updateLocationSettings"]>[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.checkout.updateLocationSettings(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.checkout.update_location_settings(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
path | object | Required within parent | Additional keys: not allowed |
path.location_id | string | Required within parent | |
body | Model | Required within parent | Expand Update Location Settings — request body — body |
Referenced models: Update Location Settings — request body — body
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 Update Location Settings — response body |
Referenced models: Update Location Settings — response body
Schemas
Section titled “Schemas”9 more schemas are linked from the tables above, on the schema pages.
Update Location Settings — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred when updating the location settings. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
location_settings | Model | Optional | Expand Update Location Settings — response body — location settings The updated location settings. |
Referenced models: Update Location Settings — response body — location settings, Get Shift — response body — errors item
Update Location Settings — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
location_settings | Model | Required within parent | Expand Update Location Settings — request body — body location settings Describe your updates using the `location_settings` object. Make sure it contains only the fields that have changed. |
Referenced models: Update Location Settings — request body — body location settings
Update Location Settings — response body — location settings
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
branding | JSON | Optional | |
branding (anyOf 1) | Model | Alternative | Expand Update Location Settings — response body — location settings branding button color, button shape, header type The branding settings for this location. |
branding (anyOf 2) | null | Alternative | |
coupons | JSON | Optional | |
coupons (anyOf 1) | Model | Alternative | Expand Update Location Settings — response body — location settings coupons enabled The coupon settings for this location. |
coupons (anyOf 2) | null | Alternative | |
customer_notes_enabled | JSON | Optional | |
customer_notes_enabled (anyOf 1) | boolean | Alternative | Indicates whether customers are allowed to leave notes at checkout. |
customer_notes_enabled (anyOf 2) | null | Alternative | |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The ID of the location that these settings apply to. |
location_id (anyOf 2) | null | Alternative | |
policies | JSON | Optional | |
policies (anyOf 1) | array | Alternative | Policy information is displayed at the bottom of the checkout pages. You can set a maximum of two policies. |
policies (anyOf 1)[] | Model | Each item | Expand Update Location Settings — response body — location settings policies array item |
policies (anyOf 2) | null | Alternative | |
tipping | JSON | Optional | |
tipping (anyOf 1) | Model | Alternative | Expand Update Location Settings — response body — location settings tipping default percent, default smart tip, percentages, smart tipping enabled, smart tips The tip settings for this location. |
tipping (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The timestamp when the settings were last updated, in RFC 3339 format. Examples for January 25th, 2020 6:25:34pm Pacific Standard Time: UTC: 2020-01-26T02:25:34Z Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00 Read only: true |
Referenced models: Update Location Settings — response body — location settings coupons enabled, Update Location Settings — response body — location settings policies array item, Update Location Settings — response body — location settings branding button color, button shape, header type, Update Location Settings — response body — location settings tipping default percent, default smart tip, percentages, smart tipping enabled, smart tips
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
Update Location Settings — request body — body location settings
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
branding | JSON | Optional | |
branding (anyOf 1) | Model | Alternative | Expand Update Location Settings — request body — body location settings branding button color, button shape, header type The branding settings for this location. |
branding (anyOf 2) | null | Alternative | |
coupons | JSON | Optional | |
coupons (anyOf 1) | Model | Alternative | Expand Update Location Settings — response body — location settings coupons enabled The coupon settings for this location. |
coupons (anyOf 2) | null | Alternative | |
customer_notes_enabled | JSON | Optional | |
customer_notes_enabled (anyOf 1) | boolean | Alternative | Indicates whether customers are allowed to leave notes at checkout. |
customer_notes_enabled (anyOf 2) | null | Alternative | |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The ID of the location that these settings apply to. |
location_id (anyOf 2) | null | Alternative | |
policies | JSON | Optional | |
policies (anyOf 1) | array | Alternative | Policy information is displayed at the bottom of the checkout pages. You can set a maximum of two policies. |
policies (anyOf 1)[] | Model | Each item | Expand Update Location Settings — response body — location settings policies array item |
policies (anyOf 2) | null | Alternative | |
tipping | JSON | Optional | |
tipping (anyOf 1) | Model | Alternative | Expand Update Location Settings — request body — body location settings tipping default percent, default smart tip, percentages, smart tipping enabled, smart tips The tip settings for this location. |
tipping (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The timestamp when the settings were last updated, in RFC 3339 format. Examples for January 25th, 2020 6:25:34pm Pacific Standard Time: UTC: 2020-01-26T02:25:34Z Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00 Read only: true |
Referenced models: Update Location Settings — request body — body location settings branding button color, button shape, header type, Update Location Settings — response body — location settings coupons enabled, Update Location Settings — response body — location settings policies array item, Update Location Settings — request body — body location settings tipping default percent, default smart tip, percentages, smart tipping enabled, smart tips
Update Location Settings — response body — location settings coupons enabled
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
enabled | JSON | Optional | |
enabled (anyOf 1) | boolean | Alternative | Indicates whether coupons are enabled for this location. |
enabled (anyOf 2) | null | Alternative |
Update Location Settings — response body — location settings policies array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | The description of the policy. Maximum length: 4096 |
description (anyOf 2) | null | Alternative | |
title | JSON | Optional | |
title (anyOf 1) | string | Alternative | The title of the policy. This is required when setting the description, though you can update it in a different request. Maximum length: 50 |
title (anyOf 2) | null | Alternative | |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID to identify the policy when making changes. You must set the UID for policy updates, but it’s optional when setting new policies. |
uid (anyOf 2) | null | Alternative |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: square.updatelocationsettings. Catalog operation: UpdateLocationSettings. 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: ["MERCHANT_PROFILE_READ", "MERCHANT_PROFILE_WRITE"]
Pinned headers: {"Square-Version": "2026-11-18"}