Skip to main content
POST
Create Location

Authorizations

X-Authorization
string
header
required

API Scope: "Locations (write)"

Body

application/json
sales_channel
string
required

If a channel with this name is not already associated with the shop, it will be used to create a new channel.

Maximum string length: 255
Example:

"shopify"

name
string
required

The name of the location.

Maximum string length: 100
Example:

"Main Warehouse"

status
enum<string>
required

The status of the location.

Available options:
active,
inactive
Maximum string length: 100
address
object
required

The address of the location.

external_id
string | null

The provided external_id must be unique. If a non-unique external_id is provided, the API will respond with an error.

Required string length: 1 - 64
Example:

"62291d16-9b61-4fbb-b868-21c2d32dc155"

Response

Success

location
object
required