List Rules of a Promotion
Retrieve a list of rules in a promotion. The type of rules retrieved depend on the value of the rule_type
path parameter:
-
If
rule_type
isrules
, the promotion’s rules are retrivied. - Ifrule_type
istarget-rules
, the target rules of the promotion’s application method are retrieved. -
If
rule_type
isbuy-rules
, the buy rules of the promotion’s application method are retrieved.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The promotion's ID.
The type of rules to retrieve.
rules
, target-rules
, buy-rules
Query Parameters
Comma-separated fields that should be included in the returned data. if a field is prefixed with +
it will be added to the default fields, using -
will remove it from the default fields. without prefix it will replace the entire default fields.
Response
OK
The list of promotion rules.