- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
addPromotionBuyRules - Promotion Module Reference
This documentation provides a reference to the addPromotionBuyRules
method. This belongs to the Promotion Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
This method adds buy promotion rules to a promotion's application method.
Example#
Parameters#
promotionId
stringThe promotion's ID.
rulesData
CreatePromotionRuleDTO[]The promotion rules to be created and added as buy rules to the promotion's applicatio method.
rulesData
CreatePromotionRuleDTO[]Returns#
Promise
Promise<PromotionRuleDTO[]>The created promotion rules.
Promise
Promise<PromotionRuleDTO[]>Was this page helpful?