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",
    "address": {
      "name": "SureCart",
      "line_1": "123 Main St",
      "city": "San Francisco",
      "state": "CA",
      "postal_code": "94105",
      "country": "US"
    }
  }
}
'
{
  "id": "5883499e-a1f9-490f-96ed-d88036fc4d17",
  "object": "warehouse",
  "label": "Main Warehouse",
  "default": false,
  "address": "e523c9e4-a62f-49af-97a7-429c8b3cd34f",
  "created_at": 1773748404,
  "updated_at": 1773748404
}

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 name of this warehouse.

default
boolean

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

address

Expandable – The associated address 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.