Skip to main content
GET
Spree Admin SDK

Filters

Filter with q[<attribute>_<predicate>]=value, for example q[hs_code_cont]=…. 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[option_values_id_eq]. The same predicates apply.
Sort by: carton_package_type_id, carton_weight, cartons_per_pallet, cost_currency, cost_price, country_of_origin, created_at, deleted_at, depth, discontinue_on, height, hs_code, id, minimum_order_quantity, order_multiple, position, product_id, purchase_unit, sku, track_inventory, units_per_carton, updated_at, weight, width. 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

Bearer token for admin authentication

Path Parameters

product_id
string
required

Product ID

Query Parameters

Matches SKU, option value or product name (partial, case-insensitive; at least three characters).

q[available_at_stock_location]
string

Applies available_at_stock_location to the given value.

q[product_name_or_sku_cont]
string

Applies product_name_or_sku_cont to the given value.

q[search_by_product_name_or_sku]
string

Applies search_by_product_name_or_sku to the given value.

page
integer

Page number

limit
integer

Number of records per page

expand
string

Comma-separated associations to expand (e.g., images, prices, stock_levels, option_values). Use dot notation for nested expand (max 4 levels).

fields
string

Comma-separated list of fields to include (e.g., sku,price,stock). id is always included.

q
object

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

Response

200 - application/json

variants found