- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateReturnShippingMethodValidationStep - Medusa Core Workflows Reference
This documentation provides a reference to the updateReturnShippingMethodValidationStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that a return's shipping method can be updated. If the return is canceled, the order change is not active, the shipping method isn't in the return, or the action isn't adding a shipping method, the step will throw an error.
Example#
Input#
UpdateReturnShippingMethodValidationStepInput
UpdateReturnShippingMethodValidationStepInputThe data to validate that a return's shipping method can be updated.
UpdateReturnShippingMethodValidationStepInput
UpdateReturnShippingMethodValidationStepInputorderChange
OrderChangeDTOThe order change's details.
orderChange
OrderChangeDTOorderReturn
ReturnDTOThe return's details.
orderReturn
ReturnDTOinput
Pick<UpdateReturnShippingMethodWorkflowInput, "return_id" | "action_id">The details of updating the shipping method.
input
Pick<UpdateReturnShippingMethodWorkflowInput, "return_id" | "action_id">Was this page helpful?