Skip to content

Square: Retrieve Location Settings

Square checkout.retrieveLocationSettings: arguments, response, policy and SDK examples.

← Checkout operations · Get started

Operation square.retrievelocationsettings

Provider route: GET /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"]["retrieveLocationSettings"]>[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.retrieveLocationSettings(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.retrieve_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

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

FieldTypePresenceDescription and constraints
$ModelRootExpand Retrieve Location Settings — response body

Referenced models: Retrieve Location Settings — response body

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

Retrieve Location Settings — response body
FieldTypePresenceDescription and constraints
$objectRoot
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
location_settingsModelOptionalExpand Update Location Settings — response body — location settings
The location settings.

Referenced models: Update Location Settings — response body — location settings, Get Shift — response body — errors item

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 — 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
Update Location Settings — response body — location settings branding button color, button shape, header type
FieldTypePresenceDescription and constraints
$objectRoot
button_colorJSONOptional
button_color (anyOf 1)stringAlternativeThe HTML-supported hex color for the button on the checkout page (for example, "#FFFFFF").
Maximum length: 7
Minimum length: 7
button_color (anyOf 2)nullAlternative
button_shapeJSONOptional
button_shape (anyOf 1)stringAlternativeThe shape of the button on the checkout page.
See [ButtonShape](#type-buttonshape) for possible values
Known values: SQUARED, ROUNDED, PILL
button_shape (anyOf 2)nullAlternative
header_typeJSONOptional
header_type (anyOf 1)stringAlternativeShow the location logo on the checkout page.
See [HeaderType](#type-headertype) for possible values
Known values: BUSINESS_NAME, FRAMED_LOGO, FULL_WIDTH_LOGO
header_type (anyOf 2)nullAlternative
Update Location Settings — response body — location settings tipping default percent, default smart tip, percentages, smart tipping enabled, smart tips
FieldTypePresenceDescription and constraints
$objectRoot
default_percentJSONOptional
default_percent (anyOf 1)JSONAlternative
default_percent (anyOf 1) (anyOf 1)integerAlternativeSet the pre-selected percentage amounts that appear at checkout. If Smart Tip is enabled, this only applies to transactions totaling $10 or more.
default_percent (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
default_percent (anyOf 2)nullAlternative
default_smart_tipJSONOptional
default_smart_tip (anyOf 1)ModelAlternativeExpand Pay Order — response body — order total money
Set the pre-selected whole amount that appears at checkout when Smart Tip is enabled and the transaction amount is less than $10.
default_smart_tip (anyOf 2)nullAlternative
percentagesJSONOptional
percentages (anyOf 1)arrayAlternativeSet three custom percentage amounts that buyers can select at checkout. If Smart Tip is enabled, this only applies to transactions totaling $10 or more.
percentages (anyOf 1)[]JSONEach item
percentages (anyOf 1)[] (anyOf 1)integerAlternative
percentages (anyOf 1)[] (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
percentages (anyOf 2)nullAlternative
smart_tipping_enabledJSONOptional
smart_tipping_enabled (anyOf 1)booleanAlternativeEnables Smart Tip Amounts. If Smart Tip Amounts is enabled, tipping works as follows:
If a transaction is less than $10, the available tipping options include No Tip, $1, $2, or $3.
If a transaction is $10 or more, the available tipping options include No Tip, 15%, 20%, or 25%.
You can set custom percentage amounts with the `percentages` field.
smart_tipping_enabled (anyOf 2)nullAlternative
smart_tipsJSONOptional
smart_tips (anyOf 1)arrayAlternativeShow the Smart Tip Amounts for this location.
smart_tips (anyOf 1)[]ModelEach itemExpand Pay Order — response body — order total money
smart_tips (anyOf 2)nullAlternative

Referenced models: Pay Order — response body — order total money

SDK function policy ID: square.retrievelocationsettings. Catalog operation: RetrieveLocationSettings. 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"]

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.