Skip to main content
GET
Spree Admin SDK

Filters

Filter with q[<attribute>_<predicate>]=value, for example q[reason_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[stock_level_id_eq]. The same predicates apply.
Sort by: created_at, exchange_id, fulfillment_id, id, kind, order_id, purchase_order_id, quantity, reason, return_id, stock_level_id, stock_receipt_id, stock_transfer_id, unit_cost, 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

page
integer

Page number

limit
integer

Number of records per page

q
object

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

fields
string

Comma-separated list of fields to include. id is always included.

Response

stock movements found

data
object[]
required
meta
object
required