- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateOrderEditAddItemValidationStep - Medusa Core Workflows Reference
This documentation provides a reference to the updateOrderEditAddItemValidationStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that a new item can be updated in an order edit. If the order is canceled, the order change is not active, the item isn't in the order edit, or the action isn't adding an item, the step will throw an error.
Example#
Input#
UpdateOrderEditAddItemValidationStepInput
UpdateOrderEditAddItemValidationStepInputThe data to validate that a new item can be updated in an order edit.
UpdateOrderEditAddItemValidationStepInput
UpdateOrderEditAddItemValidationStepInputorder
OrderDTOThe order's details.
order
OrderDTOorderChange
OrderChangeDTOThe order change's details.
orderChange
OrderChangeDTOThe details of the item to be updated.
Was this page helpful?