- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
validatePriceListsStep - Medusa Core Workflows Reference
This documentation provides a reference to the validatePriceListsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that the specified price lists exist. If not valid, the step throws an error.
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { validatePriceListsStep } from "@medusajs/medusa/core-flows"3 4const myWorkflow = createWorkflow(5 "my-workflow",6 () => {7 const data = validatePriceListsStep({8 "id": "id_HRd5yJDy4is2bH"9 })10 }11)
Input#
ValidatePriceListsStepInput
ValidatePriceListsStepInputThe IDs of price lists to validate that they exist.
ValidatePriceListsStepInput
ValidatePriceListsStepInputid
stringThe ID of the price list to update.
id
stringOutput#
Record
Record<string, [PriceListDTO](/references/pricing/interfaces/pricing.PriceListDTO)>
Record
Record<string, [PriceListDTO](/references/pricing/interfaces/pricing.PriceListDTO)>string
string
string
stringPriceListDTO
PriceListDTOA price list's details.
PriceListDTO
PriceListDTOWas this page helpful?