Skip to main content
POST
/
v1
/
inventory
/
warehouses
Create Warehouse
curl --request POST \
  --url https://{base_url_domain}/api/global/v1/inventory/warehouses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "East Coast 1",
  "is_active": true
}'
{
  "resource": {
    "type": "<string>",
    "id": 1
  },
  "meta": {
    "processing_time": 123
  }
}

Authorizations

Authorization
string
header
required

Generate a JWT access token through a Custom Global Integration and provide it with each request in the Authorization header prefixed with "Bearer" and then a single space.

Body

application/json

An object conforming to the Warehouse schema to be created.

A Warehouse represents a physical location from which you can store inventory and perform operations independently of other warehouses.

name
string

The display name for the Warehouse.

Maximum length: 255
Example:

"East Coast 1"

is_active
boolean

This flag determines if the Warehouse is active and viable for fulfillment.

Example:

true

Response

Created - The resource was created successfully.

resource
object

An object describing the resource that was created.

meta
object
I