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

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

order_id
string

A draft order to sell to: lists only what its buyer can be sold on its channel, priced in its market. Needs read_orders, and cannot be combined with the fields below.

market_id
string

Prices in this market and lists only variants with a price in its currency.

channel_id
string

Lists only variants published on this channel. When a market, customer, company or currency is given without it, the store default channel applies; an order uses its own.

customer_id
string

Narrows to the customer's catalogs and prices as they would pay. Needs read_customers.

company_id
string

Narrows to the company's catalogs and prices under its agreement. Needs read_customers.

currency
enum<string>

Lists only variants with a price in this currency. With market_id it must be the market's currency.

Available options:
AED,
AFN,
ALL,
AMD,
ANG,
AOA,
ARS,
AUD,
AWG,
AZN,
BAM,
BBD,
BDT,
BGN,
BHD,
BIF,
BMD,
BND,
BOB,
BRL,
BSD,
BTN,
BWP,
BYN,
BYR,
BZD,
CAD,
CDF,
CHF,
CLF,
CLP,
CNY,
COP,
CRC,
CUC,
CUP,
CVE,
CZK,
DJF,
DKK,
DOP,
DZD,
EEK,
EGP,
ERN,
ETB,
EUR,
FJD,
FKP,
GBP,
GEL,
GHS,
GIP,
GMD,
GNF,
GTQ,
GYD,
HKD,
HNL,
HRK,
HTG,
HUF,
IDR,
ILS,
INR,
IQD,
IRR,
ISK,
JMD,
JOD,
JPY,
KES,
KGS,
KHR,
KMF,
KPW,
KRW,
KWD,
KYD,
KZT,
LAK,
LBP,
LKR,
LRD,
LSL,
LTL,
LVL,
LYD,
MAD,
MDL,
MGA,
MKD,
MMK,
MNT,
MOP,
MRO,
MRU,
MTL,
MUR,
MVR,
MWK,
MXN,
MYR,
MZN,
NAD,
NGN,
NIO,
NOK,
NPR,
NZD,
OMR,
PAB,
PEN,
PGK,
PHP,
PKR,
PLN,
PYG,
QAR,
RON,
RSD,
RUB,
RWF,
SAR,
SBD,
SCR,
SDG,
SEK,
SGD,
SHP,
SKK,
SLE,
SLL,
SOS,
SRD,
SSP,
STD,
STN,
SVC,
SYP,
SZL,
THB,
TJS,
TMM,
TMT,
TND,
TOP,
TRY,
TTD,
TWD,
TZS,
UAH,
UGX,
USD,
UYI,
UYU,
UYW,
UZS,
VED,
VEF,
VES,
VND,
VUV,
WST,
XAF,
XCD,
XCG,
XOF,
XPF,
YER,
ZAR,
ZMK,
ZMW,
ZWD,
ZWG,
ZWL,
ZWN,
ZWR
q
object

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

Response

200 - application/json

variants found

data
object[]
required
meta
object
required