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

# Create order from draft

# `OrderingMutation.createOrderFromDraft()`

Creates an order from a draft order. Can be called multiple times for the same draft order to create multiple orders.

```graphql theme={null}
type OrderingMutation {
  createOrderFromDraft(id: ID!, idempotencyKey: String): OrderingCreateOrderResponse!
}
```

## Input

### `id`

`string` - The ID of the draft order to retrieve.

### `idempotencyKey`

`string | undefined` - A unique key to identify an attempt to create a unique order. If the same key is used multiple times with a draft order that has identical inputs, the order will be created only once and subsequent calls will return the same order. Note that it does not necessarily need to be the same draft order id for it to prevent duplicate orders. If omitted, it will create a new order for each call.

## Response

### `OrderingCreateOrderResponse`

```graphql theme={null}
type OrderingCreateOrderResponse {
  orderId: String!
  orderInSibiStoreUrl: String!
}
```

***

#### `orderId`

`string` - Internal SIBI order identifier.

***

#### `orderInSibiStoreUrl`

`string` - URL to the order in the SIBI web app.
