Warehouses

Manage the warehouse addresses that orders ship from.

Scopes: GET endpoints need read:warehouses. POST, PUT, and DELETE need write:warehouses. A Shipping API key (read:*, write:*) has both. See Authentication.

Warehouse responses can include fields that aren't listed on this page. Rely only on the documented fields; undocumented fields can change or be removed without notice.

The Warehouse Object

FieldTypeDescription
idstringWarehouse ID
namestringWarehouse name
isDefaultbooleanWhether this is marked as a default warehouse
storeIdstring | nullStore the warehouse is associated with, if any
shopifyLocationIdstring | nullLinked Shopify location ID, for warehouses synced from Shopify
addressIdstringID of the warehouse's address
addressobjectThe warehouse address (below)
createdAtstringISO 8601 creation time
updatedAtstringISO 8601 time of the last change

Address object:

FieldTypeDescription
idstringAddress ID
namestring | nullName on the address. Defaults to the warehouse name.
street1stringStreet line 1
street2string | nullStreet line 2
citystringCity
statestringState or province
zipstringPostal code
countrystringCountry code, for example US
phonestring | nullPhone number
emailstring | nullEmail address

List Warehouses

GET /api/v1/warehouses

Returns all of your warehouses as a single array, newest first. This endpoint is not paginated.

Example

curl https://shipwave.app/api/v1/warehouses \
  -H "Authorization: Bearer sw_live_abc123..."
const res = await fetch("https://shipwave.app/api/v1/warehouses", {
  headers: { Authorization: "Bearer sw_live_abc123..." },
});
const { data } = await res.json();

Response

{
  "data": [
    {
      "id": "clw9wh1",
      "name": "Main Warehouse",
      "isDefault": true,
      "storeId": null,
      "shopifyLocationId": null,
      "addressId": "clw9addr1",
      "createdAt": "2026-01-10T12:00:00.000Z",
      "updatedAt": "2026-02-01T08:30:00.000Z",
      "address": {
        "id": "clw9addr1",
        "name": "Main Warehouse",
        "street1": "500 Commerce Dr",
        "street2": "Suite 100",
        "city": "Portland",
        "state": "OR",
        "zip": "97201",
        "country": "US",
        "phone": "503-555-0100",
        "email": "warehouse@example.com"
      }
    }
  ]
}

Create Warehouse

POST /api/v1/warehouses

Request Body

FieldTypeRequiredDescription
namestringyesWarehouse name
addressobjectyesWarehouse address (below)
isDefaultbooleannoMark as a default warehouse (default false)
storeIdstringnoAssociate with one of your stores

Address object:

FieldTypeRequiredNotes
namestringnoDefaults to the warehouse name
street1stringyes
street2stringno
citystringyes
statestringyes
zipstringyes
countrystringnoDefaults to US
phonestringno
emailstringno

An account has one default warehouse. Creating a warehouse with isDefault: true makes it the default and clears isDefault on your other warehouses.

Example

curl -X POST https://shipwave.app/api/v1/warehouses \
  -H "Authorization: Bearer sw_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "name": "East Coast Warehouse",
    "address": {
      "street1": "200 Industrial Pkwy",
      "city": "Newark",
      "state": "NJ",
      "zip": "07102",
      "country": "US",
      "phone": "973-555-0200"
    },
    "isDefault": false
  }'
const res = await fetch("https://shipwave.app/api/v1/warehouses", {
  method: "POST",
  headers: {
    Authorization: "Bearer sw_live_abc123...",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    name: "East Coast Warehouse",
    address: {
      street1: "200 Industrial Pkwy",
      city: "Newark",
      state: "NJ",
      zip: "07102",
      country: "US",
      phone: "973-555-0200",
    },
    isDefault: false,
  }),
});
const { data } = await res.json(); // 201 Created

Response (201 Created)

Returns the new warehouse object, including its address.

Errors

StatusCodeCause
400VALIDATION_ERRORThe body is missing or isn't valid JSON (Invalid request body)
400VALIDATION_ERRORA required field is missing: name is required, address is required, address.street1 is required, address.city is required, address.state is required, or address.zip is required
404NOT_FOUNDstoreId isn't one of your stores (Store not found)
400VALIDATION_ERRORA field has the wrong type (for example isDefault must be a boolean)

Get Warehouse

GET /api/v1/warehouses/:id

Returns one warehouse object with its address.

Example

curl https://shipwave.app/api/v1/warehouses/clw9wh1 \
  -H "Authorization: Bearer sw_live_abc123..."

Errors

StatusCodeCause
404NOT_FOUNDNo warehouse with this ID on your account. A warehouse that belongs to another account also returns 404.

Update Warehouse

PUT /api/v1/warehouses/:id

Updates an existing warehouse. Send only the fields you want to change; omitted fields keep their current values. Returns the updated warehouse object.

Request Body

FieldTypeDescription
namestringWarehouse name
isDefaultbooleantrue makes this the default warehouse and clears isDefault on your other warehouses. Must be a boolean.
addressobjectAny of name, street1, street2, city, state, zip, country, phone

storeId can't be changed with this endpoint; it is ignored if sent.

Example

curl -X PUT https://shipwave.app/api/v1/warehouses/clw9wh1 \
  -H "Authorization: Bearer sw_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Main Warehouse (Updated)",
    "address": {
      "phone": "503-555-0199"
    }
  }'
const res = await fetch("https://shipwave.app/api/v1/warehouses/clw9wh1", {
  method: "PUT",
  headers: {
    Authorization: "Bearer sw_live_abc123...",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    name: "Main Warehouse (Updated)",
    address: { phone: "503-555-0199" },
  }),
});
const { data } = await res.json();

Errors

StatusCodeCause
400VALIDATION_ERRORThe body is missing or isn't valid JSON (Invalid request body)
404NOT_FOUNDNo warehouse with this ID on your account. A warehouse that belongs to another account also returns 404.
400VALIDATION_ERRORA field has the wrong type, or name or a required address field is empty or null

Delete Warehouse

DELETE /api/v1/warehouses/:id

Permanently deletes a warehouse that nothing uses yet. If the warehouse still has stock records, bin locations, or orders assigned to it, the request returns 409 CONFLICT with the counts in details and nothing is deleted. Reassign or remove those in ShipWave first. The same 409 is returned if other records, such as fulfillment assignments or a connected marketplace ship node, still depend on it.

Example

curl -X DELETE https://shipwave.app/api/v1/warehouses/clw9wh2 \
  -H "Authorization: Bearer sw_live_abc123..."

Response

{
  "data": {
    "id": "clw9wh2",
    "deleted": true
  }
}

Errors

StatusCodeCause
404NOT_FOUNDNo warehouse with this ID on your account. A warehouse that belongs to another account also returns 404.
409CONFLICTThe warehouse still has stock records, bins, or orders, or other records depend on it

For 401, 403, and 429 responses, see Errors.

Warehouses — API Documentation | ShipWave