API reference

updateTill

Required permission: RestaurantPosWrite

graphql
updateTill(
  restaurantId: ID!
  tillId: ID!
  patch: TillPatch!
): Till

Arguments

Name Type Description
restaurantId ID!
tillId ID!
patch TillPatch!

Returns

Till

Example

graphql
mutation UpdateTill($restaurantId: ID!, $tillId: ID!, $patch: TillPatch!) {
  updateTill(restaurantId: $restaurantId, tillId: $tillId, patch: $patch) {
    id
    fixedDeliveryTime
    layout
    name
    preferredApiEnvironment
    sendOrderToKitchen
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { updateTill(...) { __typename } }"}'