Skip to main content
Skip to main content

createPriceLists - Pricing Module Reference

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

This method is used to create price lists.

Example

const priceLists =
await pricingModuleService.createPriceLists([
{
title: "Sale 1",
description: "Summer sale",
},
{
title: "Sale 2",
description: "Winter sale",
starts_at: "2024-12-21",
},
])

Parameters

dataCreatePriceListDTO[]Required
The details of each price list to be created.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

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