Skip to main content
Skip to main content

removePromotionBuyRules - Promotion Module Reference

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

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

Example

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

Parameters

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