# checkoutOpenOrderItems

> Required permission: RestaurantOpenOrderWrite

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

```graphql
checkoutOpenOrderItems(
  restaurantId: ID!
  openOrderId: ID!
  input: CheckoutOpenOrderItemsInput!
): OrderIntent
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation CheckoutOpenOrderItems($restaurantId: ID!, $openOrderId: ID!, $input: CheckoutOpenOrderItemsInput!) {
  checkoutOpenOrderItems(restaurantId: $restaurantId, openOrderId: $openOrderId, input: $input) {
    id
    createdAt
    updatedAt
    finalizeAccessToken
    metadata
    state
  }
}
```

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