API reference

scheduleCashregisterReportGeneration

Required permission: RestaurantReportWrite

graphql
scheduleCashregisterReportGeneration(
  restaurantId: ID!
  at: DateTime
): Restaurant

Arguments

Name Type Description
restaurantId ID!
at DateTime

Returns

Restaurant

Example

graphql
mutation ScheduleCashregisterReportGeneration($restaurantId: ID!) {
  scheduleCashregisterReportGeneration(restaurantId: $restaurantId) {
    id
    autoAcceptDeliveryHeroOrders
    deliveryHeroChainId
    deliveryHeroEnabled
    deliveryHeroVendorId
    deliveryHeroWebhookUrl
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { scheduleCashregisterReportGeneration(...) { __typename } }"}'