Skip to content

List Cart Rule Coupons

Lists every coupon code attached to a cart rule — the data behind the Coupons tab of the admin Marketing → Promotions → Cart Rules screen.

TIP

New here? Read the Cart Rule Coupons overview for what these coupons do and how they relate to a cart rule.

Endpoint

EndpointMethod
/api/admin/marketing/cart-rules/{cartRuleId}/couponsGET

Response envelope

Admin collections return a { data, meta } body envelope:

  • data — the coupon rows for this page, scoped to the parent rule.
  • metacurrentPage, perPage, lastPage, total, from, to.

Only coupons belonging to the named cartRuleId are returned — coupons from other rules never appear. An unknown parent rule returns a 404.

Query parameters

ParameterDescription
page, per_pagePagination (per_page default 10, max 50)

Fields

FieldTypeNotes
idintCoupon id
cartRuleIdintParent cart-rule id
codestringThe coupon code shoppers enter
usageLimitintTotal redemptions allowed (0 = unlimited; inherits the rule when unset)
usagePerCustomerintRedemptions allowed per customer (0 = unlimited)
timesUsedintTimes redeemed so far — read-only
typeint0 the rule's primary code / 1 a secondary code
isPrimarybooleantrue for the rule's own primary code, false for secondary codes
expiredAtstringExpiry date (YYYY-MM-DD) or null
createdAtstringISO 8601 timestamp
updatedAtstringISO 8601 timestamp

Every /api/admin/* request requires an admin Bearer token.

Released under the MIT License.