GET
/
v1
/
inventory
/
warehouses
List all Warehouses
curl --request GET \
  --url https://{client_id}.shipstream.app/api/global/v1/inventory/warehouses
{
  "collection": [
    {
      "type": "Warehouse",
      "id": 3,
      "name": "East Coast 1",
      "is_active": true
    }
  ],
  "has_more": true,
  "next": "<string>",
  "previous": "<string>",
  "meta": {
    "processing_time": 0.2525252525,
    "cursor_start": 123,
    "cursor_end": 123,
    "count": 123
  }
}

Query Parameters

filter
string[]

Using the filtering syntax, you may filter the results using the following fields:

  • id
  • name
  • is_active
sort
string

The default sort order is descending by primary key (sort=-id).

Using the sorting syntax, the following fields are available for sorting:

  • id
  • name
count
integer

If specified as 1, the meta.count property of the response will be present and populated with the total count of items matching the query before any paging is applied. This is not included by default to improve performance in some edge cases and is not required to perform paging using the next property of the response. See paging parameters for more information.

Required range: 0 <= x <= 1
cursor_end
integer

A cursor for use in pagination which defines the last id of the next page of results, non-inclusive. See paging parameters for more information on paging.

cursor_start
integer

A cursor for use in pagination which defines the starting id of the next page of results. See paging parameters for more information on paging.

limit
integer
default:100

A limit on the number of objects to be returned.

Required range: 1 <= x <= 1000
Example:

100

Response

200
application/json

A dictionary with a collection property that contains an array of up to limit Warehouse objects. If no warehouses are found the array will be empty.

The response is of type object.