Loading...
Was this page helpful?
This documentation provides a reference to the batchPromotionRulesWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow manages a promotion's rules. It's used by the Manage Promotion Rules Admin API Route, Manage Promotion Buy Rules Admin API Route, and Manage Promotion Target Rules Admin API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to manage promotion rules within your custom flows.
Source CodeWorkflow hook
Step conditioned by when
View step details
BatchPromotionRulesWorkflowInput
BatchPromotionRulesWorkflowInputid
stringrule_type
RuleTypedelete
string[]OptionalBatchPromotionRulesWorkflowOutput
BatchPromotionRulesWorkflowOutputcreated
PromotionRuleDTO[]updated
PromotionRuleDTO[]deleted
string[]