Skip to main content
GET
Spree Admin SDK

Filters

Filter with q[<attribute>_<predicate>]=value, for example q[number_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[bill_address_id_eq]. The same predicates apply.
Sort by: channel_id, completed_at, considered_risky, coupon_code, created_at, currency, customer_id, delivery_total, email, fulfillment_status, id, item_total, locale, market_id, number, order_group_id, payment_status, po_number, seller_id, status, total, total_quantity, updated_at. 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 order number or purchase order number (partial), the billing first or last name, or the exact email.

q[complete]
boolean

Set to true to apply complete.

q[incomplete]
boolean

Set to true to apply incomplete.

q[partially_refunded]
boolean

Set to true to apply partially_refunded.

q[refunded]
boolean

Set to true to apply refunded.

page
integer

Page number

limit
integer

Number of records per page

sort
string

Sort field (e.g., created_at, -created_at, completed_at)

q
object

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

expand
string

Comma-separated associations to expand (e.g., items, fulfillments, payments, customer, discounts, billing_address, shipping_address). Use dot notation for nested expand (max 4 levels).

fields
string

Comma-separated list of fields to include (e.g., number,total,status,completed_at). id is always included.

Response

orders found