- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createReturnShippingMethodValidationStep - Medusa Core Workflows Reference
This documentation provides a reference to the createReturnShippingMethodValidationStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that a shipping method can be created for a return. If the order or return is canceled, or the order change is not active, the step will throw an error.
Note: You can retrieve an order, return, and order change details using Query,
or useQueryGraphStep.
Example#
Input#
CreateReturnShippingMethodValidationStepInput
CreateReturnShippingMethodValidationStepInputThe data to validate that a shipping method can be created for a return.
CreateReturnShippingMethodValidationStepInput
CreateReturnShippingMethodValidationStepInputorder
OrderDTOThe order's details.
order
OrderDTOorderReturn
ReturnDTOThe return's details.
orderReturn
ReturnDTOorderChange
OrderChangeDTOThe order change's details.
orderChange
OrderChangeDTOWas this page helpful?