# RestaurantProduct

> A standalone product that is orderable by id but never appears in the menu. Used by features such as gift cards and upsells.

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

**Kind:** Objects

## Fields

### `id`

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

Mirrors the Cashregister product id. Use this as the `productId` of an order item.

### `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)! |  |

### `class`

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

### `name`

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

### `price`

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

The fixed price in minor units, or null when the price is open and chosen at order time.

### `priceIsOpen`

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

### `reportGroup`

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

Required permission: RestaurantRead

### `stateId`

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

The current version of the product. Use this as the `productStateId` of an order item.

### `vatRatePercentage`

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

### `visibility`

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

## How to get it

This type is returned by:

- [`createRestaurantProduct`](https://docs.gastrogate.io/docs/api/mutations/createRestaurantProduct.md) (mutation)
- [`updateRestaurantProduct`](https://docs.gastrogate.io/docs/api/mutations/updateRestaurantProduct.md) (mutation)
- [`Restaurant.product`](https://docs.gastrogate.io/docs/api/types/Restaurant.md#product) (field on [`Restaurant`](https://docs.gastrogate.io/docs/api/types/Restaurant.md))
- [`RestaurantProductEdge.node`](https://docs.gastrogate.io/docs/api/types/RestaurantProductEdge.md#node) (field on [`RestaurantProductEdge`](https://docs.gastrogate.io/docs/api/types/RestaurantProductEdge.md))
