# OrderIntentInput

> The `OrderIntentInput` input object.

Source: https://docs.gastrogate.io/docs/api/types/OrderIntentInput

**Kind:** Input objects

## Input fields

| Name | Type | Description |
| --- | --- | --- |
| `idempotencyKey` | [`String`](https://docs.gastrogate.io/docs/api/types/String.md)! | An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. |
| `deliveryAddress` | [`DeliveryAddressInput`](https://docs.gastrogate.io/docs/api/types/DeliveryAddressInput.md) | When placing a Delivery order, this is the address where to deliver the items to. |
| `deliveryLocation` | [`CoordinatesInput`](https://docs.gastrogate.io/docs/api/types/CoordinatesInput.md) | When placing a Delivery order, this is the geo-position of the location to deliver the items to. |
| `deliveryLocationId` | [`String`](https://docs.gastrogate.io/docs/api/types/String.md) | When placing an EatIn or TakeAway order, this is the id of the location to deliver the items to. |
| `deviceLocation` | [`CoordinatesInput`](https://docs.gastrogate.io/docs/api/types/CoordinatesInput.md) | The location of the device that placed the order. |
| `discountAmount` | [`Int53`](https://docs.gastrogate.io/docs/api/types/Int53.md) | A specific amount to discount from the total amount payable. Can only be used by employees. Required permission: RestaurantDiscountedCheckout |
| `employeeId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md) | The Employee that placed the order, when placing an order from a Till while being logged in as an Employee Required permission: RestaurantPosWrite |
| `expectedTotalAmount` | [`Int`](https://docs.gastrogate.io/docs/api/types/Int.md) | If provided, the mutation will abort if the computed total amount doesn't match the value given here. This value should reflect the exact amount that the customer will be asked to pay in the payment step. It might however be lower than the final amount, if the customer adds tip in the payment step. Note that this amount should thus include everything that the customer should pay for, that is: - Each item, including VAT - Each addon item, including VAT - Delivery cost, including VAT - Discount - Tip |
| `installationId` | [`String`](https://docs.gastrogate.io/docs/api/types/String.md) | An identifier that is unique to this particular device and installation of client. |
| `metadata` | [`JSONObject`](https://docs.gastrogate.io/docs/api/types/JSONObject.md) | Any data passed in here will be returned as is when querying for it later. The server never acts upon the data in here. |
| `posTerminalId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md) | The terminal that the card payment should be made on. This is only applicable if using a payment provider that uses physical card terminals. Required permission: RestaurantRead |
| `productsHandedToCustomer` | [`Boolean`](https://docs.gastrogate.io/docs/api/types/Boolean.md) | If this is provided as true the order will go directly to the "Delivered" state after being paid, and will thus not show up in Loco PoS Kitchen Required permission: RestaurantRead |
| `receiptPrinterId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md) | If provided, instead of sending a digital receipt, the original receipt will be printed on the specified printer and the digital receipt will be a copy of the receipt. Required permission: RestaurantRead |
| `tillId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md) | The Till this order was placed from Required permission: RestaurantRead |
| `transactionChannel` | [`TransactionChannel`](https://docs.gastrogate.io/docs/api/types/TransactionChannel.md) | Used to indicate the origin of the order. This till become mandatory in the future, so make sure to always send it. If there isn't a value that fits your use case, please contact us. Valid values: - TransactionChannel.Loco - TransactionChannel.Order (required permission: RestaurantRead) - TransactionChannel.SelfCheckout (required permission: RestaurantRead) - TransactionChannel.Web - TransactionChannel.WhiteLabel |
| `appLabel` | [`String`](https://docs.gastrogate.io/docs/api/types/String.md)! |  |
| `deliveryTime` | [`DateTime`](https://docs.gastrogate.io/docs/api/types/DateTime.md) |  |
| `discountId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md) |  |
| `items` | \[[`OrderItemInput`](https://docs.gastrogate.io/docs/api/types/OrderItemInput.md)!\]! |  |
| `message` | [`String`](https://docs.gastrogate.io/docs/api/types/String.md) |  |
| `pushToken` | [`PushTokenInput`](https://docs.gastrogate.io/docs/api/types/PushTokenInput.md) |  |
| `tip` | [`Int`](https://docs.gastrogate.io/docs/api/types/Int.md) |  |
| `type` | [`MenuType`](https://docs.gastrogate.io/docs/api/types/MenuType.md)! |  |
