Skip to main content
GET
Spree Admin SDK

Filters

Filter with q[<attribute>_<predicate>]=value, for example q[allocated_count_eq]=…. Send a list as q[<attribute>_in][]=a&q[<attribute>_in][]=b. How filters work.
Prefix an associated record’s attribute with the association, as in q[stock_location_id_eq]. The same predicates apply.
Sort by: allocated_count, count_on_hand, created_at, id, incoming_count, reserved_count, stock_location_id, updated_at, variant_id. Prefix a field with - to sort descending.

Authorizations

x-spree-api-key
string
header
required

Secret API key for admin access

Authorization
string
header
required

JWT token for admin user authentication

Headers

x-spree-api-key
string
required
Authorization
string
required

Query Parameters

Matches any of variant sku and variant product name (partial, case-insensitive).

q[with_stock_status][]
string[]

Applies with_stock_status to the given value.

page
integer

Page number

limit
integer

Number of records per page

q
object

Attribute filters, as q[<attribute>_<predicate>]=value. See Filters above for the list.

Response

200 - application/json

stock levels found

data
object[]
required
meta
object
required