- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateOrderEditShippingMethodValidationStep - Medusa Core Workflows Reference
This documentation provides a reference to the updateOrderEditShippingMethodValidationStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that an order edit's shipping method can be updated. If the order change is not active, the shipping method isn't in the order edit, or the action is not adding a shipping method, the step will throw an error.
Example#
Input#
UpdateOrderEditShippingMethodValidationStepInput
UpdateOrderEditShippingMethodValidationStepInputThe data to validate that an order edit's shipping method can be updated.
UpdateOrderEditShippingMethodValidationStepInput
UpdateOrderEditShippingMethodValidationStepInputorderChange
OrderChangeDTOThe order change's details.
orderChange
OrderChangeDTOinput
Pick<UpdateOrderEditShippingMethodWorkflowInput, "order_id" | "action_id">The details of the shipping method to be updated.
input
Pick<UpdateOrderEditShippingMethodWorkflowInput, "order_id" | "action_id">Was this page helpful?