- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
validateInventoryLocationsStep - Medusa Core Workflows Reference
This documentation provides a reference to the validateInventoryLocationsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step ensures that the inventory levels exist for each specified pair of inventory item and location. If not, the step will throw an error.
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { validateInventoryLocationsStep } from "@medusajs/medusa/core-flows"3 4const myWorkflow = createWorkflow(5 "my-workflow",6 () => {7 const data = validateInventoryLocationsStep({8 "inventory_item_id": "{value}",9 "location_id": "{value}"10 })11 }12)
Input#
ValidateInventoryLocationsStepInput
ValidateInventoryLocationsStepInputThe data to validate the inventory levels.
ValidateInventoryLocationsStepInput
ValidateInventoryLocationsStepInputinventory_item_id
stringThe ID of the associated inventory item.
inventory_item_id
stringlocation_id
stringThe ID of the associated location.
location_id
stringstocked_quantity
numberOptionalThe stocked quantity of the associated inventory item in the associated location.
stocked_quantity
numberOptionalincoming_quantity
numberOptionalThe incoming quantity of the associated inventory item in the associated location.
incoming_quantity
numberOptionalWas this page helpful?