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