Skip to main content
GET
Spree Admin SDK

Filters

Filter with q[<attribute>_<predicate>]=value, for example q[email_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[addresses_id_eq]. The same predicates apply.
Sort by: accepts_email_marketing, created_at, email, first_name, id, last_name, phone, 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 email, first name, last name or full name (partial, case-insensitive).

q[anonymized]
boolean

Set to true to apply anonymized.

q[with_min_total_spent]
number

Applies with_min_total_spent to the given value.

q[with_standing_for_company][]
string[]

Applies with_standing_for_company to the given value.

page
integer
limit
integer
q
object

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

expand
string

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

fields
string

Comma-separated list of fields to include (e.g., email,first_name,last_name). id is always included.

Response

200 - application/json

customers found