Skip to main content
GET
Spree 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. Sort by: channel_id, completed_at, created_at, currency, customer_id, delivery_total, 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

Publishable API key for store access

Authorization
string
header
required

JWT token for authenticated customers

Headers

x-spree-api-key
string
required
Authorization
string
required

Query Parameters

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 (default: 1)

limit
integer

Number of results per page (default: 25, max: 100)

sort
string

Sort order. Prefix with - for descending. Values: created_at, -created_at, updated_at, -updated_at

q
object

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

expand
string

Comma-separated associations to expand (items, fulfillments, payments, discounts, billing_address, shipping_address, gift_card, payment_methods). Use "none" to skip associations.

fields
string

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

Response

carts listed