Create a Warehouse
POST /warehouses
Create a new warehouse with the specified details.
Request Body required
Section titled “Request Body required ”object
object
The name of the warehouse.
The first line of the warehouse address.
The second line of the warehouse address.
The warehouse’s city.
The warehouse’s state or county.
The warehouse’s country.
The warehouse’s postal/ZIP code.
The warehouse’s phone number, if applicable.
Whether cut-off times are enabled for this warehouse.
Cut-off times for the warehouse.
object
object
Example
{ "warehouse": { "properties": { "id": 123, "name": "My Warehouse", "address_line_1": "221 High Street", "address_line_2": "Floor 4", "city": "Swansea", "region": "Glamorgan", "country": "GB", "post_code": "SA1 1NW", "phone": "01792 720740", "cut_off_times_enabled": true, "cut_off_times": { "default": { "monday": "18:00", "tuesday": "13:00", "wednesday": "15:00", "thursday": "19:00", "friday": "13:00", "saturday": "", "sunday": "" } } } }}
Responses
Section titled “ Responses ”The warehouse was successfully created.
object
The name of the warehouse.
The first line of the warehouse address.
The second line of the warehouse address.
The warehouse’s city.
The warehouse’s state or county.
The warehouse’s country.
The warehouse’s postal/ZIP code.
The warehouse’s phone number, if applicable.
Whether cut-off times are enabled for this warehouse.
Cut-off times for the warehouse.
object
object
Example
{ "id": 123, "name": "My Warehouse", "address_line_1": "221 High Street", "address_line_2": "Floor 4", "city": "Swansea", "region": "Glamorgan", "country": "GB", "post_code": "SA1 1NW", "phone": "01792 720740", "cut_off_times_enabled": true, "cut_off_times": { "default": { "monday": "18:00", "tuesday": "13:00", "wednesday": "15:00", "thursday": "19:00", "friday": "13:00", "saturday": "", "sunday": "" } }}
Bad Request. Check that you have included the minimum required fields - address line 1, city, region, country, and post code.