- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
validateCartShippingOptionsStep - Medusa Core Workflows Reference
This documentation provides a reference to the validateCartShippingOptionsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates shipping options to ensure they can be applied on a cart. If not valid, the step throws an error.
Example#
Input#
ValidateCartShippingOptionsStepInput
ValidateCartShippingOptionsStepInputThe details of the cart and its shipping options context.
ValidateCartShippingOptionsStepInput
ValidateCartShippingOptionsStepInputcart
CartDTOThe cart to validate shipping options for.
cart
CartDTOshippingOptionsContext
objectThe context to validate the shipping options.
shippingOptionsContext
objectoption_ids
string[]The IDs of the shipping options to validate.
option_ids
string[]Was this page helpful?