Skip to main content
Skip to main content

removePromotionRules - Promotion Module Reference

This documentation provides a reference to the removePromotionRules method. This belongs to the Promotion Module.

This method removes promotion rules from a promotion.

Example

await promotionModuleService.removePromotionRules(
"promo_123",
["prorul_123", "prorul_321"]
)

Parameters

promotionIdstringRequired
The promotion's ID.
ruleIdsstring[]Required
The promotion rules' IDs.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<void>Required
Resolves when the promotion rules are deleted successfully.
Was this section helpful?