- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
addRulesToPromotionsStep - Medusa Core Workflows Reference
This documentation provides a reference to the addRulesToPromotionsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step adds rules to a promotion.
Example#
Input#
AddPromotionRulesWorkflowDTO
AddPromotionRulesWorkflowDTOThe data to create rules for a promotion.
AddPromotionRulesWorkflowDTO
AddPromotionRulesWorkflowDTOrule_type
PromotionRuleTypesThe type of rules to create.
rule_type
PromotionRuleTypesdata
objectThe data to create the rules.
data
objectOutput#
PromotionRuleDTO[]
PromotionRuleDTO[]
PromotionRuleDTO[]
PromotionRuleDTO[]PromotionRuleDTO
PromotionRuleDTOThe promotion rule details.
PromotionRuleDTO
PromotionRuleDTOWas this page helpful?