Skip to content

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.

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 os
from alter_sdk import App
from 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()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.location_idstringRequired within parent
bodyModelRequired within parentExpand Update Location Settings — request body — body

Referenced models: Update Location Settings — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Update Location Settings — response body

Referenced models: Update Location Settings — response body

9 more schemas are linked from the tables above, on the schema pages.

Update Location Settings — response body
FieldTypePresenceDescription and constraints
$objectRoot
errorsarrayOptionalAny errors that occurred when updating the location settings.
errors[]ModelEach itemExpand Get Shift — response body — errors item
location_settingsModelOptionalExpand 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
FieldTypePresenceDescription and constraints
$objectRoot
location_settingsModelRequired within parentExpand 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
FieldTypePresenceDescription and constraints
$objectRoot
brandingJSONOptional
branding (anyOf 1)ModelAlternativeExpand Update Location Settings — response body — location settings branding button color, button shape, header type
The branding settings for this location.
branding (anyOf 2)nullAlternative
couponsJSONOptional
coupons (anyOf 1)ModelAlternativeExpand Update Location Settings — response body — location settings coupons enabled
The coupon settings for this location.
coupons (anyOf 2)nullAlternative
customer_notes_enabledJSONOptional
customer_notes_enabled (anyOf 1)booleanAlternativeIndicates whether customers are allowed to leave notes at checkout.
customer_notes_enabled (anyOf 2)nullAlternative
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe ID of the location that these settings apply to.
location_id (anyOf 2)nullAlternative
policiesJSONOptional
policies (anyOf 1)arrayAlternativePolicy information is displayed at the bottom of the checkout pages.
You can set a maximum of two policies.
policies (anyOf 1)[]ModelEach itemExpand Update Location Settings — response body — location settings policies array item
policies (anyOf 2)nullAlternative
tippingJSONOptional
tipping (anyOf 1)ModelAlternativeExpand 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)nullAlternative
updated_atstringOptionalThe 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
FieldTypePresenceDescription and constraints
$objectRootRepresents 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.
categorystringRequired within parentIndicates 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
codeModelRequired within parentExpand Get Shift — response body — errors item code
The specific code of the error.
See [ErrorCode](#type-errorcode) for possible values
detailstringOptionalA human-readable description of the error for debugging purposes.
fieldstringOptionalThe 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
FieldTypePresenceDescription and constraints
$objectRoot
brandingJSONOptional
branding (anyOf 1)ModelAlternativeExpand Update Location Settings — request body — body location settings branding button color, button shape, header type
The branding settings for this location.
branding (anyOf 2)nullAlternative
couponsJSONOptional
coupons (anyOf 1)ModelAlternativeExpand Update Location Settings — response body — location settings coupons enabled
The coupon settings for this location.
coupons (anyOf 2)nullAlternative
customer_notes_enabledJSONOptional
customer_notes_enabled (anyOf 1)booleanAlternativeIndicates whether customers are allowed to leave notes at checkout.
customer_notes_enabled (anyOf 2)nullAlternative
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe ID of the location that these settings apply to.
location_id (anyOf 2)nullAlternative
policiesJSONOptional
policies (anyOf 1)arrayAlternativePolicy information is displayed at the bottom of the checkout pages.
You can set a maximum of two policies.
policies (anyOf 1)[]ModelEach itemExpand Update Location Settings — response body — location settings policies array item
policies (anyOf 2)nullAlternative
tippingJSONOptional
tipping (anyOf 1)ModelAlternativeExpand 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)nullAlternative
updated_atstringOptionalThe 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
FieldTypePresenceDescription and constraints
$objectRoot
enabledJSONOptional
enabled (anyOf 1)booleanAlternativeIndicates whether coupons are enabled for this location.
enabled (anyOf 2)nullAlternative
Update Location Settings — response body — location settings policies array item
FieldTypePresenceDescription and constraints
$objectRoot
descriptionJSONOptional
description (anyOf 1)stringAlternativeThe description of the policy.
Maximum length: 4096
description (anyOf 2)nullAlternative
titleJSONOptional
title (anyOf 1)stringAlternativeThe 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)nullAlternative
uidJSONOptional
uid (anyOf 1)stringAlternativeA 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)nullAlternative

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"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.