- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
cancelRequestReturnValidationStep - Medusa Core Workflows Reference
This documentation provides a reference to the cancelRequestReturnValidationStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that a requested return can be canceled. 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#
CancelRequestReturnValidationStepInput
CancelRequestReturnValidationStepInputThe data to validate that a requested return can be canceled.
CancelRequestReturnValidationStepInput
CancelRequestReturnValidationStepInputorder
OrderDTOThe order's details.
order
OrderDTOorderChange
OrderChangeDTOThe order change's details.
orderChange
OrderChangeDTOorderReturn
ReturnDTOThe order return's details.
orderReturn
ReturnDTOWas this page helpful?