- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
validateSalesChannelsExistStep - Medusa Core Workflows Reference
This documentation provides a reference to the validateSalesChannelsExistStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that a sales channel exists before linking it to an API key. If the sales channel does not exist, the step throws an error.
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { validateSalesChannelsExistStep } from "@medusajs/medusa/core-flows"3 4const myWorkflow = createWorkflow(5 "my-workflow",6 () => {7 const data = validateSalesChannelsExistStep({8 "sales_channel_ids": [9 "{value}"10 ]11 })12 }13)
Input#
ValidateSalesChannelsExistStepInput
ValidateSalesChannelsExistStepInputThe data to validate that the sales channels exist.
ValidateSalesChannelsExistStepInput
ValidateSalesChannelsExistStepInputsales_channel_ids
string[]The IDs of the sales channels to validate.
sales_channel_ids
string[]Output#
string[]
string[]
string[]
string[]string
string
string
stringWas this page helpful?