createPriceListPricesWorkflow - Medusa Core Workflows Reference

This documentation provides a reference to the createPriceListPricesWorkflow. It belongs to the @medusajs/medusa/core-flows package.

This workflow creates prices in price lists. It's used by other workflows, such as batchPriceListPricesWorkflow.

You can use this workflow within your customizations or your own custom workflows, allowing you to create prices in price lists in your custom flows.

Source Code

Examples#

Steps#

Input#

CreatePriceListPricesWorkflowInputCreatePriceListPricesWorkflowInput
The data to create prices for price lists.
The prices to create.

Output#

CreatePriceListPricesWorkflowOutputCreatePriceListPricesWorkflowOutput
The created prices.
idstring
The ID of a price.
created_atDate
When the price was created.
updated_atDate
When the price was updated.
deleted_atnull | Date
When the price was deleted.
titlestringOptional
The title of the price.
currency_codestringOptional
The currency code of this price.
amountBigNumberValueOptional
The price of this price.
min_quantityBigNumberValueOptional
The minimum quantity required to be purchased for this price to be applied.
max_quantityBigNumberValueOptional
The maximum quantity required to be purchased for this price to be applied.
price_setPriceSetDTOOptional
The price set associated with the price.
price_listPriceListDTOOptional
The price list associated with the price.
price_set_idstringOptional
The ID of the associated price set.
price_rulesPriceRuleDTO[]Optional
The price rules associated with the price.
Was this page helpful?
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break