Create a Warehouse
POST /warehouses
POST
/warehouses
Request Body required
object
warehouse
required
object
name
The name of the new warehouse.
string
address_line_1
The first line of the warehouse address.
string
address_line_2
The second line of the warehouse address.
string
city
The warehouse’s city.
string
region
The warehouse’s state or county.
string
country
The warehouse’s country.
string
post_code
The warehouse’s postal/ZIP code.
string
phone
The warehouse’s phone number, if applicable.
string
Example
{ "warehouse": { "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" }}
Responses
201
Created
object
id
number
name
string
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"}