Skip to content

Stripe: Create a Location

Stripe terminal.postTerminalLocations: arguments, response, policy and SDK examples.

← Terminal operations · Get started

Operation stripe.postterminallocations

Provider route: POST /v1/terminal/locations. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/stripe with npm, or alter-sdk-stripe with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { StripeIntegration } from "@alter-ai/stripe";
async function execute(input: Parameters<StripeIntegration["terminal"]["postTerminalLocations"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new StripeIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.terminal.postTerminalLocations(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_stripe import StripeIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = StripeIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.terminal.post_terminal_locations(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
headersobjectOptionalAdditional keys: not allowed
headers.Idempotency-KeystringOptionalMinimum length: 1
Maximum length: 255
bodyobjectOptionalAdditional keys: not allowed
body.addressobjectOptionalThe full address of the location.
body.address.citystringOptionalMaximum length: 5000
body.address.countrystringRequired within parentMaximum length: 5000
body.address.line1stringOptionalMaximum length: 5000
body.address.line2stringOptionalMaximum length: 5000
body.address.postal_codestringOptionalMaximum length: 5000
body.address.statestringOptionalMaximum length: 5000
body.address_kanaobjectOptionalThe Kana variation of the full address of the location (Japan only).
body.address_kana.citystringOptionalMaximum length: 5000
body.address_kana.countrystringOptionalMaximum length: 5000
body.address_kana.line1stringOptionalMaximum length: 5000
body.address_kana.line2stringOptionalMaximum length: 5000
body.address_kana.postal_codestringOptionalMaximum length: 5000
body.address_kana.statestringOptionalMaximum length: 5000
body.address_kana.townstringOptionalMaximum length: 5000
body.address_kanjiobjectOptionalThe Kanji variation of the full address of the location (Japan only).
body.address_kanji.citystringOptionalMaximum length: 5000
body.address_kanji.countrystringOptionalMaximum length: 5000
body.address_kanji.line1stringOptionalMaximum length: 5000
body.address_kanji.line2stringOptionalMaximum length: 5000
body.address_kanji.postal_codestringOptionalMaximum length: 5000
body.address_kanji.statestringOptionalMaximum length: 5000
body.address_kanji.townstringOptionalMaximum length: 5000
body.configuration_overridesstringOptionalThe ID of a configuration that will be used to customize all readers in this location.
Maximum length: 500
body.display_namestringOptionalA name for the location. Maximum length is 1000 characters.
Maximum length: 1000
body.display_name_kanastringOptionalThe Kana variation of the name for the location (Japan only). Maximum length is 1000 characters.
Maximum length: 1000
body.display_name_kanjistringOptionalThe Kanji variation of the name for the location (Japan only). Maximum length is 1000 characters.
Maximum length: 1000
body.expandarrayOptionalSpecifies which fields in the response should be expanded.
body.expand[]stringEach itemMaximum length: 5000
body.metadataJSONOptionalSet of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
body.metadata (anyOf 1)objectAlternativeAdditional keys: see wildcard field
body.metadata (anyOf 1).*stringAdditional keys
body.metadata (anyOf 2)stringAlternativeOne of:
body.phonestringOptionalThe phone number for the location.

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

FieldTypePresenceDescription and constraints
$ModelRootExpand Create a Location — response body

Referenced models: Create a Location — response body

Create a Location — response body
FieldTypePresenceDescription and constraints
$objectRootA Location represents a grouping of readers.

Related guide: [Fleet management](https://docs.stripe.com/terminal/fleet/locations)
addressModelRequired within parentExpand Create a Location — response body — address
address_kanaModelOptionalExpand Create a Location — response body — address kana
address_kanjiModelOptionalExpand Create a Location — response body — address kana
configuration_overridesstringOptionalThe ID of a configuration that will be used to customize all readers in this location.
Maximum length: 5000
display_namestringRequired within parentThe display name of the location.
Maximum length: 5000
display_name_kanastringOptionalThe Kana variation of the display name of the location.
Maximum length: 5000
display_name_kanjistringOptionalThe Kanji variation of the display name of the location.
Maximum length: 5000
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
metadataobjectRequired within parentSet of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Additional keys: see wildcard field
metadata.*stringAdditional keysMaximum length: 500
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: terminal.location
phonestringOptionalThe phone number of the location.
Maximum length: 5000

Referenced models: Create a Location — response body — address, Create a Location — response body — address kana

Create a Location — response body — address
FieldTypePresenceDescription and constraints
$objectRoot
cityJSONOptional
city (anyOf 1)stringAlternativeCity, district, suburb, town, or village.
Maximum length: 5000
city (anyOf 2)nullAlternative
countryJSONOptional
country (anyOf 1)stringAlternativeTwo-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
Maximum length: 5000
country (anyOf 2)nullAlternative
line1JSONOptional
line1 (anyOf 1)stringAlternativeAddress line 1, such as the street, PO Box, or company name.
Maximum length: 5000
line1 (anyOf 2)nullAlternative
line2JSONOptional
line2 (anyOf 1)stringAlternativeAddress line 2, such as the apartment, suite, unit, or building.
Maximum length: 5000
line2 (anyOf 2)nullAlternative
postal_codeJSONOptional
postal_code (anyOf 1)stringAlternativeZIP or postal code.
Maximum length: 5000
postal_code (anyOf 2)nullAlternative
stateJSONOptional
state (anyOf 1)stringAlternativeState, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
Maximum length: 5000
state (anyOf 2)nullAlternative
Create a Location — response body — address kana
FieldTypePresenceDescription and constraints
$objectRoot
cityJSONOptional
city (anyOf 1)stringAlternativeCity/Ward.
Maximum length: 5000
city (anyOf 2)nullAlternative
countryJSONOptional
country (anyOf 1)stringAlternativeTwo-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
Maximum length: 5000
country (anyOf 2)nullAlternative
line1JSONOptional
line1 (anyOf 1)stringAlternativeBlock/Building number.
Maximum length: 5000
line1 (anyOf 2)nullAlternative
line2JSONOptional
line2 (anyOf 1)stringAlternativeBuilding details.
Maximum length: 5000
line2 (anyOf 2)nullAlternative
postal_codeJSONOptional
postal_code (anyOf 1)stringAlternativeZIP or postal code.
Maximum length: 5000
postal_code (anyOf 2)nullAlternative
stateJSONOptional
state (anyOf 1)stringAlternativePrefecture.
Maximum length: 5000
state (anyOf 2)nullAlternative
townJSONOptional
town (anyOf 1)stringAlternativeTown/cho-me.
Maximum length: 5000
town (anyOf 2)nullAlternative

SDK function policy ID: stripe.postterminallocations. Catalog operation: PostTerminalLocations. 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.

Pinned headers: {"Stripe-Version": "2026-09-30.endive"}

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 which product and documentation features are useful.

Performance diagnostics

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

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