Request body schema for POST /management/v1/projects/{projectId}/stacking-rules
.
Name | Type | Description |
---|---|---|
exclusiveCategories | List<String> | Lists the IDs of the categories that are exclusive. |
jointCategories | List<String> | Lists the IDs of the categories that are joint. |
redeemablesLimit | Integer | Defines how many redeemables can be sent to Voucherify for validation at the same time. |
applicableRedeemablesLimit | Integer | Defines how many redeemables can be applied at the same time. The number must be less than or equal to `"redeemables_limit"`. |
applicableRedeemablesPerCategoryLimit | Integer | Defines how many redeemables with the same category can be applied at the same time. The number must be less than or equal to `"applicable_redeemables_limit"`. |
applicableExclusiveRedeemablesLimit | Integer | Defines how many redeemables with an assigned exclusive category can be applied at the same time. |
applicableExclusiveRedeemablesPerCategoryLimit | Integer | Defines how many exclusive redeemables with the same category can be applied at the same time. The number must be less than or equal to `"applicable_exclusive_redeemables_limit"`. |
discountCalculationMode | DiscountCalculationModeEnum | Defines if the discounts are applied by taking into account the initial order amount or the discounted order amount. |
initialAmountModeCategories | List<String> | Lists the IDs of the categories that apply a discount based on the initial amount. |
discountedAmountModeCategories | List<String> | Lists the IDs of the categories that apply a discount based on the discounted amount. |
redeemablesApplicationMode | RedeemablesApplicationModeEnum | 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. |
redeemablesSortingRule | RedeemablesSortingRuleEnum | Defines the sorting rule for redeemables. `"CATEGORY_HIERARCHY"` means that redeemables are applied with the order established by the hierarchy of the categories. `"REQUESTED_ORDER"` means that redeemables are applied with the order established in the request. |
Name | Value |
---|---|
INITIAL_AMOUNT | "INITIAL_AMOUNT" |
DISCOUNTED_AMOUNT | "DISCOUNTED_AMOUNT" |
Name | Value |
---|---|
ALL | "ALL" |
PARTIAL | "PARTIAL" |
Name | Value |
---|---|
CATEGORY_HIERARCHY | "CATEGORY_HIERARCHY" |
REQUESTED_ORDER | "REQUESTED_ORDER" |