Skip to content

List Cart Rules

EndpointMethod
/api/admin/marketing/cart-rulesGET

Query Parameters

ParameterNotes
pagePage number.
per_pagePage size (default 10, cap 50).
idSingle id or comma-separated list (e.g. 1,4,9).
namePartial match.
status0/1.
coupon_type1/2.
coupon_codePartial match on the rule's primary coupon code.
sort_orderPriority, exact match.
starts_from_fromStart-date range lower bound (ISO 8601).
starts_from_toStart-date range upper bound (ISO 8601).
ends_till_fromEnd-date range lower bound (ISO 8601).
ends_till_toEnd-date range upper bound (ISO 8601).
sortid, name, sort_order.
orderasc/desc.

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

Released under the MIT License.