Skip to main content
Skip to main content

removePromotionTargetRules - Promotion Module Reference

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

This method removes target promotion rules from a promotion's application method.

Example

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

Parameters

promotionIdstringRequired
The promotion's ID.
ruleIdsstring[]Required
The target 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 target promotion rules are deleted.
Was this section helpful?