API reference
createDeliveryLocation
Required permission: RestaurantSettingsWrite
createDeliveryLocation(
restaurantId: ID!
input: DeliveryLocationInput!
): DeliveryLocationArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
input |
DeliveryLocationInput! |
Returns
Example
mutation CreateDeliveryLocation($restaurantId: ID!, $input: DeliveryLocationInput!) {
createDeliveryLocation(restaurantId: $restaurantId, input: $input) {
id
amountPayableForOpenOrders
pendingOpenOrderCount
disabled
eatInEnabled
name
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { createDeliveryLocation(...) { __typename } }"}'