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