# Order

> The `Order` object.

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

**Kind:** Objects

## Fields

### `id`

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

### `attribute`

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

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

### `estimatedDeliveryTime`

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

If the customer asked to get the order ASAP, this is the estimated time when we will deliver it

### `grossAmount`

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

The total amount, including tip & taxes

### `needsKitchenPrint`

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

True if this order needs to be printed by Loco POS Kitchen

### `deliveryHeroLongCode`

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

### `deliveryTime`

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

### `discountAmount`

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

### `employeeName`

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

### `finishedAt`

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

The time when the order was marked as Done

### `items`

\[[`OrderItem`](https://docs.gastrogate.io/docs/api/types/OrderItem.md)!\]

### `orderIntent`

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

### `paymentIntents`

\[[`PaymentIntent`](https://docs.gastrogate.io/docs/api/types/PaymentIntent.md)!\]

Required permission: Authenticated

### `paymentProvider`

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

### `pickedUpAt`

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

### `posTerminal`

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

### `readyForPickupAt`

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

### `receiptPrinter`

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

Required permission: RestaurantRead

### `receiptViewKey`

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

### `refundedAmount`

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

### `servingLocation`

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

### `status`

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

### `statusForCustomer`

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

### `statusForCustomerSteps`

\[[`OrderStatusForCustomerStep`](https://docs.gastrogate.io/docs/api/types/OrderStatusForCustomerStep.md)!\]

### `tipAmount`

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

### `transactionChannel`

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

### `type`

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

### `userMessage`

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

### `userPhoneNumber`

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

### `receipt`

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

### `restaurant`

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

### `refundIntents`

\[[`RefundIntent`](https://docs.gastrogate.io/docs/api/types/RefundIntent.md)!\]

Required permission: RestaurantOrderRefund

### `refundReceipts`

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

### `createdAt`

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

### `updatedAt`

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

### `slips` (deprecated)

\[[`OrderSlip`](https://docs.gastrogate.io/docs/api/types/OrderSlip.md)!\]

Required permission: RestaurantWrite

> [!WARNING]
> Deprecated. Use CloudPRNT instead

## How to get it

This type is returned by:

- [`finishOrder`](https://docs.gastrogate.io/docs/api/mutations/finishOrder.md) (mutation)
- [`markOrderAsCompletedByCustomer`](https://docs.gastrogate.io/docs/api/mutations/markOrderAsCompletedByCustomer.md) (mutation)
- [`markOrderAsPrintedInKitchen`](https://docs.gastrogate.io/docs/api/mutations/markOrderAsPrintedInKitchen.md) (mutation)
- [`updateOrder`](https://docs.gastrogate.io/docs/api/mutations/updateOrder.md) (mutation)
- [`finalizeOrderIntent`](https://docs.gastrogate.io/docs/api/mutations/finalizeOrderIntent.md) (mutation)
- [`finalizeRefundIntent`](https://docs.gastrogate.io/docs/api/mutations/finalizeRefundIntent.md) (mutation)
- [`Restaurant.kitchenOrderQueue`](https://docs.gastrogate.io/docs/api/types/Restaurant.md#kitchenorderqueue) (field on [`Restaurant`](https://docs.gastrogate.io/docs/api/types/Restaurant.md))
- [`Restaurant.order`](https://docs.gastrogate.io/docs/api/types/Restaurant.md#order) (field on [`Restaurant`](https://docs.gastrogate.io/docs/api/types/Restaurant.md))
- [`OrderEdge.node`](https://docs.gastrogate.io/docs/api/types/OrderEdge.md#node) (field on [`OrderEdge`](https://docs.gastrogate.io/docs/api/types/OrderEdge.md))
- [`OrderIntent.order`](https://docs.gastrogate.io/docs/api/types/OrderIntent.md#order) (field on [`OrderIntent`](https://docs.gastrogate.io/docs/api/types/OrderIntent.md))
- [`User.order`](https://docs.gastrogate.io/docs/api/types/User.md#order) (field on [`User`](https://docs.gastrogate.io/docs/api/types/User.md))
- [`RefundIntent.order`](https://docs.gastrogate.io/docs/api/types/RefundIntent.md#order) (field on [`RefundIntent`](https://docs.gastrogate.io/docs/api/types/RefundIntent.md))
- [`WhiteLabelGuest.order`](https://docs.gastrogate.io/docs/api/types/WhiteLabelGuest.md#order) (field on [`WhiteLabelGuest`](https://docs.gastrogate.io/docs/api/types/WhiteLabelGuest.md))
