Skip to main content
Skip to main content

addPriceListPrices - Pricing Module Reference

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

This method is used to add prices to price lists.

Example

const priceLists =
await pricingModuleService.addPriceListPrices([
{
price_list_id: "plist_123",
prices: [
{
currency_code: "usd",
amount: 500,
price_set_id: "pset_123",
},
],
},
])

Parameters

dataAddPriceListPricesDTO[]Required
The prices to add for each price list.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<PriceListDTO[]>Required
The updated price lists.
Was this section helpful?