- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
validateInventoryItemsForCreate - Medusa Core Workflows Reference
This documentation provides a reference to the validateInventoryItemsForCreate
. It belongs to the @medusajs/medusa/core-flows
package.
This step checks whether a variant already has an inventory item. If so, the step will throw an error.
Example#
Input#
ValidateInventoryItemsForCreateStepInput
ValidateInventoryItemsForCreateStepInputThe data to validate inventory items for creation.
ValidateInventoryItemsForCreateStepInput
ValidateInventoryItemsForCreateStepInputtag
stringOptionalThe ID of the variant to validate.
tag
stringOptionalOutput#
object[]
object[]
object[]
object[]tag
stringOptionalThe ID of the variant to validate.
tag
stringOptionalWas this page helpful?