Create a warehouse

POST https://api.tamio.com/v2/warehouses/create

Creates a new warehouse location with address, contact details, and geographical service areas defining which destinations the warehouse can fulfill orders for.

Body Parameters

label string*

Human-readable name for the warehouse.

custom_id string

Custom identifier for external system integration.

areas_served array of string*

Destination codes this warehouse can fulfill orders for.

country string*

Country code where the warehouse is located.

address string*

Street address.

city string*

City.

postcode string

Postal code.

state string

State or province code.

email string

Contact email.

telephone string

Contact phone number.

Responses

200 Warehouse created

Warehouse created

status integer
warehouse Warehouse
400 Validation or business-logic error
401 Missing or invalid API key
/warehouses/create
1const response = await fetch("https://api.tamio.com/v2/warehouses/create", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200,
  "warehouse": {
    "id": "string",
    "object": "warehouse",
    "label": "string",
    "custom_id": "string",
    "country": "string",
    "address": "string",
    "city": "string",
    "postcode": "string",
    "state": "string",
    "email": "string",
    "telephone": "string",
    "areas_served": [],
    "products": 0,
    "variants": 0,
    "has_notes": false
  }
}