# moveOpenOrderItems

> Required permission: RestaurantOpenOrderWrite

Source: https://docs.gastrogate.io/docs/api/mutations/moveOpenOrderItems

```graphql
moveOpenOrderItems(
  restaurantId: ID!
  input: OpenOrderMoveItemInput!
): OpenOrderItemsMoved
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `restaurantId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `input` | [`OpenOrderMoveItemInput`](https://docs.gastrogate.io/docs/api/types/OpenOrderMoveItemInput.md)! |  |

## Returns

[`OpenOrderItemsMoved`](https://docs.gastrogate.io/docs/api/types/OpenOrderItemsMoved.md)

## Example

```graphql
mutation MoveOpenOrderItems($restaurantId: ID!, $input: OpenOrderMoveItemInput!) {
  moveOpenOrderItems(restaurantId: $restaurantId, input: $input) {
    from {
      id
      amountCanceled
      amountMoved
      amountPaid
      amountPayable
      batchesLength
    }
    to {
      id
      amountCanceled
      amountMoved
      amountPaid
      amountPayable
      batchesLength
    }
  }
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { moveOpenOrderItems(...) { __typename } }"}'
```
