Update location by ID

patch
/locations/{id}

Update a location by ID. Use the id value returned in a Location resource response, such as from GET /locations, as this path parameter. Omit a field to keep its current value. Top-level objects and scalar fields cannot be set to null. For platform-sourced locations, only address.email, address.phone, timezone_identifier, opening_hours, and order_processing can be patched; other fields are managed by the ecommerce platform.

id
string
required

Location ID. Use the id value returned in a Location resource response, such as from GET /locations, as this path parameter.

name
string

The location name. This field cannot be patched for platform-sourced locations.

<= 256 characters
Example:
SF Warehouse
address
object

Patch the address and contact information of the location. The address object itself cannot be null; omit a field to keep its current value. For platform-sourced locations, only email and phone can be patched. For Location resources, first_name and last_name are joined into one contact name on write; on read, the full contact name is returned as first_name and last_name is empty. The type field is accepted by the schema but not used for Location resources — omit it on write; on read it is always empty.

company
string

The name of the company associated to the address.

<= 256 characters
Example:
AfterShip
first_name
string

The first name of the person associated to the address.

<= 256 characters
Example:
John
last_name
string

The last name of the person associated to the address.

<= 256 characters
Example:
Doe
phone
string

The phone number of the person associated to the address.

<= 256 characters
Example:
+14155551234
email
string

The email address of the person associated to the address.

<= 256 characters
street_1
string

First line of the street address.

<= 256 characters
Example:
123 Main St
street_2
string

Second line of the street address.

<= 256 characters
Example:
Suite 100
street_3
string

Third line of the street address.

<= 256 characters
Example:
city
string

The location's city, town, or village.

<= 256 characters
Example:
San Francisco
state
string

The state or region of the location, such as a province, state, or prefecture.

<= 256 characters
Example:
CA
country_region
string

The address country/region in ISO 3166-1 alpha-3 format.

Example:
USA
Match pattern:
^[A-Z]{3}$
postal_code
string

The postal code of the location.

<= 256 characters
Example:
94105
coordinate
object

The coordinate of the address. If coordinate is provided, both latitude and longitude are required.

timezone_identifier
string

The name of the timezone where the location is located, as defined by the IANA timezone database standard.

<= 256 characters
Example:
America/New_York
opening_hours
OpeningHours

Patch the regular opening hours of the location. The opening_hours object itself cannot be null. You may provide only the weekdays to update, but each provided weekday object is replaced atomically and must include open. When open is false, from and to must be null or omitted. When open is true, from and to must both be provided in HH:mm format or both be null for 24-hour operation.

sunday
OpeningHourPeriod

The OpeningHourPeriod model provides detailed information about a location's operating hours for a specific day. It includes the start and end times, and indicates whether the location is open on that particular day.

Example:
{"open":true,"from":"10:30","to":"20:30"}
monday
OpeningHourPeriod

The OpeningHourPeriod model provides detailed information about a location's operating hours for a specific day. It includes the start and end times, and indicates whether the location is open on that particular day.

Example:
{"open":true,"from":"10:30","to":"20:30"}
tuesday
OpeningHourPeriod

The OpeningHourPeriod model provides detailed information about a location's operating hours for a specific day. It includes the start and end times, and indicates whether the location is open on that particular day.

Example:
{"open":true,"from":"10:30","to":"20:30"}
wednesday
OpeningHourPeriod

The OpeningHourPeriod model provides detailed information about a location's operating hours for a specific day. It includes the start and end times, and indicates whether the location is open on that particular day.

Example:
{"open":true,"from":"10:30","to":"20:30"}
thursday
OpeningHourPeriod

The OpeningHourPeriod model provides detailed information about a location's operating hours for a specific day. It includes the start and end times, and indicates whether the location is open on that particular day.

Example:
{"open":true,"from":"10:30","to":"20:30"}
friday
OpeningHourPeriod

The OpeningHourPeriod model provides detailed information about a location's operating hours for a specific day. It includes the start and end times, and indicates whether the location is open on that particular day.

Example:
{"open":true,"from":"10:30","to":"20:30"}
saturday
OpeningHourPeriod

The OpeningHourPeriod model provides detailed information about a location's operating hours for a specific day. It includes the start and end times, and indicates whether the location is open on that particular day.

Example:
{"open":true,"from":"10:30","to":"20:30"}
order_processing
object

Patch the order processing setting for this location. The order_processing object itself cannot be null. Omitted fields keep their current values. Sending only enabled toggles the setting without clearing order_cutoff_time or order_processing_duration_days; when enabling order processing, the final setting must include a valid cutoff time and processing duration.

enabled
boolean

Whether order processing is enabled for this location.

Example:
true
order_cutoff_time
string

The daily cutoff time for processing orders in HH:mm format.

Example:
14:00
order_processing_duration_days
integer

The number of business days needed to process an order. Use 0 when fulfillment can be completed within 1 business day.

>= 0
Example:
0
pickup_setting
object

Patch the pickup setting for this location. The pickup_setting object itself cannot be null. Omitted fields keep their current values. Sending only enabled toggles the setting without clearing existing pickup fields; when enabling pickup, the final setting must include valid minimum and maximum processing durations. This field cannot be patched for platform-sourced locations.

enabled
boolean

Whether pickup is enabled for this location.

Example:
true
instructions
string

Pickup instructions shown to the customer.

<= 2048 characters
Example:
Please pick up at the front desk.
order_processing_duration_seconds_min
integer

The minimum number of seconds needed before the order is ready for pickup.

>= 0
Example:
3600
order_processing_duration_seconds_max
integer

The maximum number of seconds needed before the order is ready for pickup.

>= 0
Example:
7200
Auth
:
Parameters
:
Body
preparing...