Skip to content

List Cart Rules (GraphQL)

Query: adminMarketingCartRules (cursor pagination).

Each row carries couponCode — the rule's primary coupon code (null when the rule has no coupon).

Args (plus standard first, after):

ArgNotes
idSingle id or comma-separated list.
namePartial match.
status0/1.
coupon_type1/2.
coupon_codePartial match on the primary coupon code.
sort_orderPriority, exact match.
starts_from_from / starts_from_toStart-date range (ISO 8601).
ends_till_from / ends_till_toEnd-date range (ISO 8601).
sort, orderid/name/sort_order, asc/desc.

Released under the MIT License.