- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
removeExchangeShippingMethodValidationStep - Medusa Core Workflows Reference
This documentation provides a reference to the removeExchangeShippingMethodValidationStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that a shipping method can be removed from an exchange. If the exchange is canceled, the order change is not active, the shipping method doesn't exist, or the action isn't adding a shipping method, the step will throw an error.
Note: You can retrieve an order exchange and order change details using Query,
or useQueryGraphStep.
Example#
Input#
RemoveExchangeShippingMethodValidationStepInput
RemoveExchangeShippingMethodValidationStepInputThe data to validate that a shipping method can be removed from an exchange.
RemoveExchangeShippingMethodValidationStepInput
RemoveExchangeShippingMethodValidationStepInputorderExchange
OrderExchangeDTOThe order exchange's details.
orderExchange
OrderExchangeDTOorderChange
OrderChangeDTOThe order change's details.
orderChange
OrderChangeDTOinput
Pick<DeleteExchangeShippingMethodWorkflowInput, "exchange_id" | "action_id">The details of the action.
input
Pick<DeleteExchangeShippingMethodWorkflowInput, "exchange_id" | "action_id">Was this page helpful?