- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
cancelExchangeValidateOrder - Medusa Core Workflows Reference
This documentation provides a reference to the cancelExchangeValidateOrder
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that an exchange can be canceled. If the exchange is canceled, or any of the fulfillments are not canceled, the step will throw an error.
Example#
Input#
CancelExchangeValidateOrderStepInput
CancelExchangeValidateOrderStepInputThe data to validate that an exchange can be canceled.
CancelExchangeValidateOrderStepInput
CancelExchangeValidateOrderStepInputorderExchange
OrderExchangeDTOThe order exchange's details.
orderExchange
OrderExchangeDTOThe details of canceling the exchange.
Was this page helpful?