List coupon codes for a promotion
Returns the auto-generated coupon codes for a multi-code promotion. Single-code promotions store the code on the promotion itself; this endpoint returns an empty list for them.
Required scope: read_promotions (for API-key authentication).
GET
Spree Admin SDK
Filters
Filter withq[<attribute>_<predicate>]=value, for example q[code_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[promotion_id_eq]. The same predicates apply.code, created_at, id, promotion_id, state, updated_at. Prefix a field with - to sort descending.Authorizations
Query Parameters
Response
200 - application/json
coupon codes found
Spree Admin SDK

