API reference

createTill

Required permission: RestaurantPosWrite

graphql
createTill(
  restaurantId: ID!
  input: TillInput!
): Till

Arguments

Name Type Description
restaurantId ID!
input TillInput!

Returns

Till

Example

graphql
mutation CreateTill($restaurantId: ID!, $input: TillInput!) {
  createTill(restaurantId: $restaurantId, input: $input) {
    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 { createTill(...) { __typename } }"}'