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.

Operation

OperationTypePurpose
adminMarketingCatalogRuleQueryFetch one catalog rule by id

Details

  • Requires an admin Bearer token in the Authorization header.
  • Pass the rule's IRI (e.g. /api/admin/marketing/catalog-rules/126) as the id argument; _id in the response is the numeric id.
  • Unlike list rows, the detail query resolves conditions, channels, and customerGroups — the per-rule targeting and price-filter data.
  • channels and customerGroups are connections — sub-select { edges { node { id _id code name } } }. Each node is the channel / customer-group it targets.

Fields

FieldTypeNotes
idIDThe rule's IRI
_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
discountAmountFloatDiscount value (capped at 100 for by_percent)
channelsConnectionChannels the rule applies to — edges { node { id _id code name } }
customerGroupsConnectionCustomer groups the rule applies to — edges { node { id _id code name } }
createdAtStringCreation timestamp
updatedAtStringLast-update timestamp

Released under the MIT License.