Skip to main content
Skip to main content

createPriceRules - Pricing Module Reference

This documentation provides a reference to the createPriceRules method. This belongs to the Pricing Module.

This method is used to create new price rules based on the provided data.

Example

const priceRules =
await pricingModuleService.createPriceRules([
{
value: "VIP",
rule_type_id: "rul-typ_123",
price_set_id: "pset_123",
},
])

Parameters

dataCreatePriceRuleDTO[]Required
The price rules to create.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<PriceRuleDTO[]>Required
The list of created price rules.
Was this section helpful?