API reference

acceptOrderDisplaySystemTermsOfService

Required permission: RestaurantWrite

graphql
acceptOrderDisplaySystemTermsOfService(
  restaurantId: ID!
): Restaurant

Arguments

Name Type Description
restaurantId ID!

Returns

Restaurant

Example

graphql
mutation AcceptOrderDisplaySystemTermsOfService($restaurantId: ID!) {
  acceptOrderDisplaySystemTermsOfService(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 { acceptOrderDisplaySystemTermsOfService(...) { __typename } }"}'