Skip to main content
Skip to main content

setPriceListRules - Pricing Module Reference

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

This method is used to set the rules of a price list. Previous rules are removed.

Example

const priceList =
await pricingModuleService.setPriceListRules({
price_list_id: "plist_123",
rules: {
region_id: "reg_123",
},
})

Parameters

The rules to set for a price list. The price list is identified by the price_list_id property.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<PriceListDTO>Required
The updated price list.
Was this section helpful?