Loading...
Was this page helpful?
This documentation provides a reference to the createPromotionRulesWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow creates one or more promotion rules. It's used by other workflows, such as batchPromotionRulesWorkflow that manages the rules of a promotion.
You can use this workflow within your own customizations or custom workflows, allowing you to create promotion rules within your custom flows.
Source CodeWorkflow hook
Step conditioned by when
View step details
AddPromotionRulesWorkflowDTO
AddPromotionRulesWorkflowDTOrule_type
PromotionRuleTypesdata
objectPromotionRuleDTO[]
PromotionRuleDTO[]id
stringvalues
PromotionRuleValueDTO[]description
null | stringOptionalattribute
stringOptional