Path Parameters
Provide the unique identifier of the project.
"proj_TrlkLiH4"
Provide the unique identifier of the stacking rules.
"stk_0d6264108617006147"
Body
Defines the stacking rules to be updated.
Request body schema for PUT /management/v1/projects/{projectId}/stacking-rules/{stackingRulesId}
.
Object representing basic stacking rule parameters.
Lists the IDs of exclusive categories. A redeemable from a campaign with an exclusive category is the only redeemable to be redeemed when applied with redeemables from other campaigns unless these campaigns are exclusive or joint.
Lists the IDs of the joint categories. A campaign with a joint category is always applied regardless of the exclusivity of other campaigns.
Defines how many redeemables can be sent in one request. Note: more redeemables means more processing time.
1 <= x <= 30
Defines how many redeemables can be applied in one request. The number must be less than or equal to redeemables_limit
. For example, a user can select 30 discounts but only 5 will be applied to the order and the remaining will be SKIPPED
according to the redeemables_sorting_rule
.
1 <= x <= 30
Defines how many redeemables with the same category can be applied in one request. The number must be less than or equal to applicable_redeemables_limit
. The ones above the limit will be SKIPPED
according to the redeemables_sorting_rule
.
1 <= x <= 30
Defines how many redeemables with an assigned exclusive category can be applied in one request. The ones above the limit will be SKIPPED
according to the redeemables_sorting_rule
.
1 <= x <= 5
Defines how many redeemables with an assigned exclusive category can be applied in one request. The ones above the limit will be SKIPPED
according to the redeemables_sorting_rule
. The number must be less than or equal to applicable_exclusive_redeemables_limit
.
1 <= x <= 30
Defines if the discounts are applied by taking into account the initial order amount or the discounted order amount.
INITIAL_AMOUNT
, DISCOUNTED_AMOUNT
Lists the IDs of the categories that apply a discount based on the initial amount.
Lists the IDs of the categories that apply a discount based on the discounted amount.
Defines the application mode for redeemables.
"ALL"
means that all redeemables must be validated for the redemption to be successful.
"PARTIAL"
means that only those redeemables that can be validated will be redeemed. The redeemables that fail validaton will be skipped.
ALL
, PARTIAL
Defines redeemables sorting rule. CATEGORY_HIERARCHY
means that redeemables are applied oaccording to the category priority. REQUESTED_ORDER
means that redeemables are applied in the sequence provided in the request.
CATEGORY_HIERARCHY
, REQUESTED_ORDER
Defines redeemables products application mode. STACK
means that multiple discounts can be applied to a product. ONCE
means that only one discount can be applied to the same product.
STACK
, ONCE
Defines redeemables no effect rule. REDEEM_ANYWAY
means that the redeemable will be redeemed regardless of any restrictions or conditions in place. SKIP
means that the redeemable will be processed only when an applicable effect is calculated.
REDEEM_ANYWAY
, SKIP
Lists category IDs. Redeemables with a given category are skipped even if the redeemables_no_effect_rule
is set to REDEEM_ANYWAY
. Category IDs can't overlap with the IDs in no_effect_redeem_anyway_categories
.
Lists category IDs. Redeemables with a given category are redeemed anyway even if the redeemables_no_effect_rule
is set to SKIP
. Category IDs can't overlap with the IDs in no_effect_skip_categories
.
Defines the rollback mode for the order. WITH_ORDER
is a default setting. The redemption is rolled back together with the data about the order, including related discount values. WITHOUT_ORDER
allows rolling the redemption back without affecting order data, including the applied discount values.
WITH_ORDER
, WITHOUT_ORDER
Response
Returns the details about the updated stacking rules.
Response body schema for PUT /management/v1/projects/{projectId}/stacking-rules/{stackingRulesId}
.
Object representing the details of the stacking rules.
Object representing basic stacking rule parameters.
The unique identifier of the stacking rules.
Lists the IDs of exclusive categories. A redeemable from a campaign with an exclusive category is the only redeemable to be redeemed when applied with redeemables from other campaigns unless these campaigns are exclusive or joint.
Lists the IDs of the joint categories. A campaign with a joint category is always applied regardless of the exclusivity of other campaigns.
Defines how many redeemables can be sent in one request. Note: more redeemables means more processing time.
1 <= x <= 30
Defines how many redeemables can be applied in one request. The number must be less than or equal to redeemables_limit
. For example, a user can select 30 discounts but only 5 will be applied to the order and the remaining will be SKIPPED
according to the redeemables_sorting_rule
.
1 <= x <= 30
Defines how many redeemables with the same category can be applied in one request. The number must be less than or equal to applicable_redeemables_limit
. The ones above the limit will be SKIPPED
according to the redeemables_sorting_rule
.
1 <= x <= 30
Defines how many redeemables with an assigned exclusive category can be applied in one request. The ones above the limit will be SKIPPED
according to the redeemables_sorting_rule
.
1 <= x <= 5
Defines how many redeemables with an assigned exclusive category can be applied in one request. The ones above the limit will be SKIPPED
according to the redeemables_sorting_rule
. The number must be less than or equal to applicable_exclusive_redeemables_limit
.
1 <= x <= 30
Defines if the discounts are applied by taking into account the initial order amount or the discounted order amount.
INITIAL_AMOUNT
, DISCOUNTED_AMOUNT
Lists the IDs of the categories that apply a discount based on the initial amount.
Lists the IDs of the categories that apply a discount based on the discounted amount.
Defines the application mode for redeemables.
"ALL"
means that all redeemables must be validated for the redemption to be successful.
"PARTIAL"
means that only those redeemables that can be validated will be redeemed. The redeemables that fail validaton will be skipped.
ALL
, PARTIAL
Defines redeemables sorting rule. CATEGORY_HIERARCHY
means that redeemables are applied oaccording to the category priority. REQUESTED_ORDER
means that redeemables are applied in the sequence provided in the request.
CATEGORY_HIERARCHY
, REQUESTED_ORDER
Defines redeemables products application mode. STACK
means that multiple discounts can be applied to a product. ONCE
means that only one discount can be applied to the same product.
STACK
, ONCE
Defines redeemables no effect rule. REDEEM_ANYWAY
means that the redeemable will be redeemed regardless of any restrictions or conditions in place. SKIP
means that the redeemable will be processed only when an applicable effect is calculated.
REDEEM_ANYWAY
, SKIP
Lists category IDs. Redeemables with a given category are skipped even if the redeemables_no_effect_rule
is set to REDEEM_ANYWAY
. Category IDs can't overlap with the IDs in no_effect_redeem_anyway_categories
.
Lists category IDs. Redeemables with a given category are redeemed anyway even if the redeemables_no_effect_rule
is set to SKIP
. Category IDs can't overlap with the IDs in no_effect_skip_categories
.
Defines the rollback mode for the order. WITH_ORDER
is a default setting. The redemption is rolled back together with the data about the order, including related discount values. WITHOUT_ORDER
allows rolling the redemption back without affecting order data, including the applied discount values.
WITH_ORDER
, WITHOUT_ORDER
Timestamp representing the date and time when the stacking rules were created. The value for this parameter is shown in the ISO 8601 format.
"2024-01-02T08:31:46.562Z"
Timestamp representing the date and time when the stacking rules were updated. The value for this parameter is shown in the ISO 8601 format.