Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ export const orderEditUpdateItemQuantityWorkflowId =
* This workflow updates the quantity of an existing item in an order's edit. It's used by the
* [Update Order Item Quantity Admin API Route](https://docs.medusajs.com/api/admin#order-edits_postordereditsiditemsitemitem_id).
*
* You can also use this workflow to remove an item from an order by setting its quantity to `0`.
*
* You can use this workflow within your customizations or your own custom workflows, allowing you to update the quantity of an existing
* item in an order's edit in your custom flow.
*
Expand All @@ -98,7 +100,7 @@ export const orderEditUpdateItemQuantityWorkflowId =
*
* @summary
*
* Update the quantity of an existing order item in the order's edit.
* Update or remove an existing order item's quantity in the order's edit.
*/
export const orderEditUpdateItemQuantityWorkflow = createWorkflow(
orderEditUpdateItemQuantityWorkflowId,
Expand Down
2 changes: 2 additions & 0 deletions packages/core/js-sdk/src/admin/order-edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ export class OrderEdit {
* [Update Item Quantity](https://docs.medusajs.com/api/admin#order-edits_postordereditsiditemsitemitem_id)
* API route.
*
* You can also use this method to remove an item from an order by setting the `quantity` to `0`.
*
* @param id - The order edit's ID.
* @param itemId - The item's ID in the order.
* @param body - The data to edit in the item.
Expand Down