- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
validateCartStep - Medusa Core Workflows Reference
This documentation provides a reference to the validateCartStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates a cart to ensure it exists and is not completed. If not valid, the step throws an error.
Tip: You can use the retrieveCartStep to retrieve a cart's details.
Example#
Input#
ValidateCartStepInput
ValidateCartStepInputThe details of the cart to validate.
ValidateCartStepInput
ValidateCartStepInputcart
CartDTO | CartWorkflowDTOThe cart to validate.
cart
CartDTO | CartWorkflowDTOWas this page helpful?