- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateOrderEditItemQuantityValidationStep - Medusa Core Workflows Reference
This documentation provides a reference to the updateOrderEditItemQuantityValidationStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that an existing order 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 updating an existing item, the step will throw an error.
Example#
Input#
UpdateOrderEditItemQuantityValidationStepInput
UpdateOrderEditItemQuantityValidationStepInputThe data to validate that an existing order item can be updated in an order edit.
UpdateOrderEditItemQuantityValidationStepInput
UpdateOrderEditItemQuantityValidationStepInputorder
OrderDTOThe order's details.
order
OrderDTOorderChange
OrderChangeDTOThe order change's details.
orderChange
OrderChangeDTOThe details of the item to be updated.
Was this page helpful?