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.
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"]["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 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.retrieve_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 |
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 Retrieve Location Settings — response body |
Referenced models: Retrieve Location Settings — response body
Schemas
Section titled “Schemas”3 more schemas are linked from the tables above, on the schema pages.
Retrieve Location Settings — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
location_settings | Model | Optional | Expand 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
| 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 — 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 |
Update Location Settings — response body — location settings branding button color, button shape, header type
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
button_color | JSON | Optional | |
button_color (anyOf 1) | string | Alternative | The HTML-supported hex color for the button on the checkout page (for example, "#FFFFFF"). Maximum length: 7 Minimum length: 7 |
button_color (anyOf 2) | null | Alternative | |
button_shape | JSON | Optional | |
button_shape (anyOf 1) | string | Alternative | The shape of the button on the checkout page. See [ButtonShape](#type-buttonshape) for possible values Known values: SQUARED, ROUNDED, PILL |
button_shape (anyOf 2) | null | Alternative | |
header_type | JSON | Optional | |
header_type (anyOf 1) | string | Alternative | Show 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) | null | Alternative |
Update Location Settings — response body — location settings tipping default percent, default smart tip, percentages, smart tipping enabled, smart tips
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
default_percent | JSON | Optional | |
default_percent (anyOf 1) | JSON | Alternative | |
default_percent (anyOf 1) (anyOf 1) | integer | Alternative | Set 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) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
default_percent (anyOf 2) | null | Alternative | |
default_smart_tip | JSON | Optional | |
default_smart_tip (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
percentages | JSON | Optional | |
percentages (anyOf 1) | array | Alternative | Set 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)[] | JSON | Each item | |
percentages (anyOf 1)[] (anyOf 1) | integer | Alternative | |
percentages (anyOf 1)[] (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
percentages (anyOf 2) | null | Alternative | |
smart_tipping_enabled | JSON | Optional | |
smart_tipping_enabled (anyOf 1) | boolean | Alternative | Enables 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) | null | Alternative | |
smart_tips | JSON | Optional | |
smart_tips (anyOf 1) | array | Alternative | Show the Smart Tip Amounts for this location. |
smart_tips (anyOf 1)[] | Model | Each item | Expand Pay Order — response body — order total money |
smart_tips (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order total money
Policy, approvals and errors
Section titled “Policy, approvals and errors”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"}