- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
validateShippingOptionPricesStep - Medusa Core Workflows Reference
This documentation provides a reference to the validateShippingOptionPricesStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that shipping options can be created based on provided price configuration.
For flat rate prices, it validates that regions exist for the shipping option prices. For calculated prices, it validates with the fulfillment provider if the price can be calculated.
If not valid, the step throws an error.
Example#
Input#
ValidateShippingOptionPricesStepInput
ValidateShippingOptionPricesStepInputThe data to validate shipping option prices.
ValidateShippingOptionPricesStepInput
ValidateShippingOptionPricesStepInputValidateShippingOptionPricesStepInput
(CreateShippingOptionsWorkflowInput | UpdateShippingOptionsWorkflowInput)[]The data to validate shipping option prices.
ValidateShippingOptionPricesStepInput
(CreateShippingOptionsWorkflowInput | UpdateShippingOptionsWorkflowInput)[]Was this page helpful?