Spree Admin SDK
List promotions
Returns the store’s promotions, including manual coupon and automatic promotions.
Required scope: read_promotions (for API-key authentication).
GET
Spree Admin SDK
Filters
Filter withq[<attribute>_<predicate>]=value, for example q[name_cont]=…. Send a list as q[<attribute>_in][]=a&q[<attribute>_in][]=b. How filters work.
Filters through associations
Filters through associations
Prefix an associated record’s attribute with the association, as in
q[coupon_codes_id_eq]. The same predicates apply.code, created_at, expires_at, id, kind, name, path, promotion_category_id, starts_at, updated_at. Prefix a field with - to sort descending.Authorizations
Secret API key for admin access
JWT token for admin user authentication
Query Parameters
Matches any of name and code (partial, case-insensitive).
Attribute filters, as q[<attribute>_<predicate>]=value. See Filters above for the list.
Response
200 - application/json
promotions found

