> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mercurjs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# confirmOrderEditRequestWorkflow

> Confirm an order edit and reconcile offer-bundle reservations.

Wraps Medusa's `confirmOrderEditRequestWorkflow` and then reconciles reservations for every unfulfilled order item that comes from an offer with inventory links: desired quantities are computed as `(ordered - fulfilled) × required_quantity` per linked inventory item, and mismatching reservations are replaced with a correct set (one per linked item, bundle offers included). Triggered by `POST /admin/order-edits/:id/confirm` and `POST /vendor/order-edits/:id/confirm`. Events are emitted by the wrapped Medusa workflow.

## Usage

```ts theme={null}
import { confirmOrderEditRequestWorkflow } from "@mercurjs/core/workflows"

const { result } = await confirmOrderEditRequestWorkflow(container).run({
  input: { order_id: "order_123", confirmed_by: "user_123" },
})
```

## Input

<ParamField body="order_id" type="string" required>The order whose pending edit is confirmed.</ParamField>
<ParamField body="confirmed_by" type="string">Id of the user confirming the edit.</ParamField>

## Result

<ResponseField name="result" type="OrderPreviewDTO">Preview of the order with the confirmed edit applied.</ResponseField>
