Skip to main content
POST
/
v1
/
warehouses
Create
curl --request POST \
  --url https://{defaultHost}/v1/warehouses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "warehouse": {
    "label": "Main Warehouse",
    "contact": {
      "name": "SureCart",
      "email": "warehouse@surecart.com",
      "phone": "555-0100",
      "address": {
        "name": "SureCart",
        "line_1": "123 Main St",
        "city": "San Francisco",
        "state": "CA",
        "postal_code": "94105",
        "country": "US"
      }
    }
  }
}
'
{
  "id": "156dcf3b-beb9-4e1d-a11c-d19bce22b69f",
  "object": "warehouse",
  "label": "Main Warehouse",
  "default": false,
  "contact": "2b2a407f-d52a-4b27-906f-1df3d9bb8c75",
  "created_at": 1775219060,
  "updated_at": 1775219060
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
warehouse
object

Response

200 - application/json

Success

id
string | null

The UUID of the specific object.

object
string

A string describing the object type returned.

label
string

The label for this warehouse.

default
boolean

Whether or not this warehouse is the account's default.

contact

Expandable – The associated contact ID.

created_at
integer | null

Time at which the object was created. Measured in seconds since the Unix epoch.

updated_at
integer | null

Time at which the object was last updated. Measured in seconds since the Unix epoch.