Create a Location 

Terminal
Location
Create a Location

Creates a new Location object. For further details, including which address fields are required in each country, see the Manage locations guide.

Parameters

  • addressobjectRequired

    The full address of the location.

    • address.countrystringRequired

      Two-letter country code (ISO 3166-1 alpha-2).

    • address.citystringRequired in certain countries

      City, district, suburb, town, or village.

    • address.line1stringRequired

      Address line 1 (e.g., street, PO Box, or company name).

    • address.line2string

      Address line 2 (e.g., apartment, suite, unit, or building).

    • address.postal_codestringRequired in certain countries

      ZIP or postal code.

    • address.statestringRequired in certain countries

      State, county, province, or region.

  • display_namestringRequired

    A name for the location. Maximum length is 1000 characters.

  • metadataobject

    Set of key-value pairs 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.

More parameters

  • configuration_overridesstring

    The ID of a configuration that will be used to customize all readers in this location.

Returns

Returns a Location object if creation succeeds.

POST /v1/terminal/locations
curl https://api.stripe.com/v1/terminal/locations \
-u "sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2:" \
-d display_name="My First Store" \
-d "address[line1]"="1234 Main Street" \
-d "address[city]"="San Francisco" \
-d "address[postal_code]"=94111 \
-d "address[state]"=CA \
-d "address[country]"=US
Response
{
"id": "tml_FBakXQG8bQk4Mm",
"object": "terminal.location",
"address": {
"city": "San Francisco",
"country": "US",
"line1": "1234 Main Street",
"line2": "",
"postal_code": "94111",
"state": "CA"
},
"display_name": "My First Store",
"livemode": false,
"metadata": {}
}