# createReplenishmentOrder

Audience: Developer

**Served by:** [inventory](https://docs.pyck.cloud/dev/api/services/inventory.md)

## Arguments

| Name | Type |
| --- | --- |
| `input` | [CreateReplenishmentOrderWithItemsInput](https://docs.pyck.cloud/dev/api/inputs/createreplenishmentorderwithitemsinput.md)! |

## Returns

[ReplenishmentOrderOutput](https://docs.pyck.cloud/dev/api/types/replenishmentorderoutput.md)

## Example

Creates a replenishment order with one or more order items. Each item specifies a SKU and the quantity to replenish.

```graphql
mutation CreateReplenishmentOrder($input: CreateReplenishmentOrderWithItemsInput!) {
  createReplenishmentOrder(input: $input) {
    eventCount
    replenishmentOrder {
      createdAt
      createdBy
      data
      dataTypeID
      dataTypeSlug
      deletedAt
      deletedBy
      id
      supplierID
      tenantID
      updatedAt
      updatedBy
    }
    transactionID
  }
}
```

**Variables**

```json
{
  "input": {
    "items": [
      {
        "quantity": 100,
        "sku": "RESTOCK-SKU-001"
      }
    ]
  }
}
```
