API reference
registerControlUnit
Required permission: RestaurantReportWrite
registerControlUnit(
restaurantId: ID!
taxIdNumber: String!
): RestaurantArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
taxIdNumber |
String! |
Returns
Example
mutation RegisterControlUnit($restaurantId: ID!, $taxIdNumber: String!) {
registerControlUnit(restaurantId: $restaurantId, taxIdNumber: $taxIdNumber) {
id
autoAcceptDeliveryHeroOrders
deliveryHeroChainId
deliveryHeroEnabled
deliveryHeroVendorId
deliveryHeroWebhookUrl
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { registerControlUnit(...) { __typename } }"}'