GraphQL API
Warehouse API
Warehouse / Stock locations

stockLocations

List stock locations

Arguments

7 arguments
afterString

A cursor after which elements are returned.

beforeString

A cursor before which elements are returned.

firstInt

Limits number of fetched items. Maximum allowed value: 250.

lastInt

Limits number of fetched items. Maximum allowed value: 250.

queryString

Search and filter expression for stock locations. A filter made up of field terms, connectives, modifiers, and comparators. You can apply one or more filters to a query.

Supported filters
stock_location_type.iduuid
Any value
namestring
Any value
codestring
Any value
searchstring
Any value
parent.iduuid
Any value
pickablebool
Any value
has_empty_stockbool
Any value
has_stockbool
Any value
reverseBoolean!Default: false

Reverse the order of the underlying list.

sortKeyStockLocationsSortKeyDefault: ID

Sort the underlying list using a key.

IDNAME

Possible return

cursorString!

A unique cursor that can be used for pagination.

endCursorString

The cursor to continue paginating forwards.

hasNextPageBoolean!

When paginating forwards, are there more items?

hasPreviousPageBoolean!

When paginating backwards, are there more items?

startCursorString

The cursor to continue paginating backwards.