Skip to main content
GET
Spree Admin SDK

Filters

Filter with q[<attribute>_<predicate>]=value, for example q[memo_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[customer_id_eq]. The same predicates apply.
Sort by: amount, created_at, created_by_id, currency, customer_id, id, memo, 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

Path Parameters

customer_id
string
required

Query Parameters

Matches any of memo (partial, case-insensitive).

q[from_gift_card]
boolean

Set to true to apply from_gift_card.

q[outstanding]
boolean

Set to true to apply outstanding.

expand
string

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

fields
string

Comma-separated list of fields to include (e.g., amount,amount_used,memo,currency). id is always included.

q
object

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

Response

200 - application/json

store credits found