# finalizeOrderIntent

> The `finalizeOrderIntent` mutation. Returns `Order`.

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

```graphql
finalizeOrderIntent(
  orderIntentId: ID!
  accessToken: String
): Order
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `orderIntentId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `accessToken` | [`String`](https://docs.gastrogate.io/docs/api/types/String.md) |  |

## Returns

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

## Example

```graphql
mutation FinalizeOrderIntent($orderIntentId: ID!) {
  finalizeOrderIntent(orderIntentId: $orderIntentId) {
    id
    estimatedDeliveryTime
    grossAmount
    needsKitchenPrint
    deliveryHeroLongCode
    deliveryTime
  }
}
```

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