Skip to content

Catalog Rule Detail

Returns a single catalog rule with its full field set — the data behind the admin Marketing → Promotions → Catalog Rules view screen.

TIP

New here? Read the Catalog Rules overview for what a catalog rule does and how its fields behave.

Endpoint

EndpointMethod
/api/admin/marketing/catalog-rules/{id}GET

Details

  • Requires an admin Bearer token in the Authorization header.
  • Unlike list rows, the detail endpoint returns conditions, channels, and customerGroups — the per-rule targeting and price-filter data.
  • An unknown id returns a 404.

Response fields

FieldTypeNotes
idintNumeric id
namestringRule name
descriptionstringFree-text description
startsFromstringStart date (YYYY-MM-DD) or null
endsTillstringEnd date (YYYY-MM-DD) or null
statusint0 inactive / 1 active
sortOrderintPriority — lower runs first
conditionTypeint1 match all conditions / 0 match any
conditionsarrayProduct-attribute filters
endOtherRulesint1 stops lower-priority rules from also applying
actionTypestringby_percent, by_fixed, to_percent, to_fixed
discountAmountnumberDiscount value (capped at 100 for by_percent)
channelsobject[]Channels the rule applies to — each { id, code, name }
customerGroupsobject[]Customer groups the rule applies to — each { id, code, name }
createdAtstringCreation timestamp
updatedAtstringLast-update timestamp

Released under the MIT License.