# createCashregisterReport

> Required permission: RestaurantReportWrite

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

```graphql
createCashregisterReport(
  restaurantId: ID!
): ZReport
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation CreateCashregisterReport($restaurantId: ID!) {
  createCashregisterReport(restaurantId: $restaurantId) {
    id
    date
    html
    serialNumber
  }
}
```

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