- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
cancelBeginOrderExchangeValidationStep - Medusa Core Workflows Reference
This documentation provides a reference to the cancelBeginOrderExchangeValidationStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that a requested exchange can be canceled. If the order or exchange is canceled, or the order change is not active, the step will throw an error.
Note: You can retrieve an order, order exchange, and order change details using Query,
or useQueryGraphStep.
Example#
Input#
CancelBeginOrderExchangeValidationStepInput
CancelBeginOrderExchangeValidationStepInputThe data to validate that a requested exchange can be canceled.
CancelBeginOrderExchangeValidationStepInput
CancelBeginOrderExchangeValidationStepInputorder
OrderDTOThe order's details.
order
OrderDTOorderExchange
OrderExchangeDTOThe order exchange's details.
orderExchange
OrderExchangeDTOorderChange
OrderChangeDTOThe order change's details.
orderChange
OrderChangeDTOWas this page helpful?