API reference

createCashregisterReport

Required permission: RestaurantReportWrite

graphql
createCashregisterReport(
  restaurantId: ID!
): ZReport

Arguments

Name Type Description
restaurantId ID!

Returns

ZReport

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 } }"}'