API reference
updateTill
Required permission: RestaurantPosWrite
updateTill(
restaurantId: ID!
tillId: ID!
patch: TillPatch!
): TillArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
tillId |
ID! |
|
patch |
TillPatch! |
Returns
Example
mutation UpdateTill($restaurantId: ID!, $tillId: ID!, $patch: TillPatch!) {
updateTill(restaurantId: $restaurantId, tillId: $tillId, patch: $patch) {
id
fixedDeliveryTime
layout
name
preferredApiEnvironment
sendOrderToKitchen
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { updateTill(...) { __typename } }"}'