- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createExchangeShippingMethodValidationStep - Medusa Core Workflows Reference
This documentation provides a reference to the createExchangeShippingMethodValidationStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that an inbound or outbound shipping method can be created for an exchange. 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#
CreateExchangeShippingMethodValidationStepInput
CreateExchangeShippingMethodValidationStepInputThe data to validate that a shipping method can be created for an exchange.
CreateExchangeShippingMethodValidationStepInput
CreateExchangeShippingMethodValidationStepInputorder
OrderDTOThe order's details.
order
OrderDTOorderExchange
OrderExchangeDTOThe order exchange's details.
orderExchange
OrderExchangeDTOorderChange
OrderChangeDTOThe order change's details.
orderChange
OrderChangeDTOWas this page helpful?