removePriceListRules - Pricing Module Reference
BetaThis documentation provides a reference to the removePriceListRules
method. This belongs to the Pricing Module.
This method is used to remove rules from a price list.
Example
import {
initialize as initializePricingModule,
} from "@medusajs/pricing"
async function setPriceListRules (priceListId: string) {
const pricingService = await initializePricingModule()
const priceList = await pricingService.removePriceListRules({
priceListId,
rules: ["region_id"]
})
// do something with the price list or return it
}
Parameters
The rules to remove from a price list.
Returns
The updated price lists.
Was this section helpful?