- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
confirmInventoryStep - Medusa Core Workflows Reference
This documentation provides a reference to the confirmInventoryStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that items in the cart have sufficient inventory quantity. If an item doesn't have sufficient inventory, an error is thrown.
Example#
Input#
ConfirmVariantInventoryStepInput
ConfirmVariantInventoryStepInputThe details of the cart items to confirm their inventory availability.
ConfirmVariantInventoryStepInput
ConfirmVariantInventoryStepInputitems
object[]The items to confirm inventory for.
items
object[]Was this page helpful?