API reference
createTill
Required permission: RestaurantPosWrite
createTill(
restaurantId: ID!
input: TillInput!
): TillArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
input |
TillInput! |
Returns
Example
mutation CreateTill($restaurantId: ID!, $input: TillInput!) {
createTill(restaurantId: $restaurantId, input: $input) {
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 { createTill(...) { __typename } }"}'