Skip to main content
GET
Spree Admin SDK

Filters

Filter with q[<attribute>_<predicate>]=value, for example q[additional_tax_total_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[order_id_eq]. The same predicates apply.
Sort by: additional_tax_total, adjustment_total, cost_price, created_at, discount_total, id, included_tax_total, non_taxable_adjustment_total, order_id, pre_tax_amount, price, quantity, tax_category_id, taxable_adjustment_total, 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

Bearer token for admin authentication

Path Parameters

order_id
string
required

Order ID

Query Parameters

expand
string

Comma-separated associations to expand (e.g., variant, variant.product). Use dot notation for nested expand (max 4 levels).

fields
string

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

q
object

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

Response

200 - application/json

items found