Skip to main content
GET
Spree Admin SDK

Filters

Filter with q[<attribute>_<predicate>]=value, for example q[amount_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[price_list_id_eq]. The same predicates apply.
Sort by: amount, compare_at_amount, created_at, currency, id, min_quantity, price_list_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 the variant's SKU, option value or product name, as variant search does.

page
integer
limit
integer
q
object

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

sort
string

Comma-separated sort keys. Supports e.g. variant_product_name,variant_id.

expand
string

Comma-separated associations to embed. Supported: variant.

Response

200 - application/json

prices found

data
object[]
required
meta
object
required