List Cart Rule Coupons
Lists every coupon code attached to one cart rule — the coupon table on the admin Marketing → Promotions → Cart Rules → Coupons screen.
TIP
New here? Read the Cart Rule Coupons overview for what a coupon does and how its fields behave.
Operation
| Operation | Type | Purpose |
|---|---|---|
adminMarketingCartRuleCoupons | Query | Cursor-paginated list of one cart rule's coupons |
Details
- Requires an admin Bearer token in the
Authorizationheader. - This is a sub-resource of a cart rule —
cartRuleIdis required and scopes the list to that rule. Coupons from other rules never appear in the result. - An unknown
cartRuleIdreturns a404error. - Cursor pagination — pass
firstfor the page size andafter(theendCursorfrom the previous page) to advance.totalCountis the grand total.
Arguments
| Argument | Type | Required | Notes |
|---|---|---|---|
cartRuleId | Int | Yes | Parent cart-rule id; scopes the list |
first | Int | No | Page size |
after | String | No | Cursor (endCursor from the previous page) |

