API reference

deletePhysicalPrinter

Required permission: RestaurantSettingsWrite

graphql
deletePhysicalPrinter(
  restaurantId: ID!
  physicalPrinterId: ID!
): Restaurant

Arguments

Name Type Description
restaurantId ID!
physicalPrinterId ID!

Returns

Restaurant

Example

graphql
mutation DeletePhysicalPrinter($restaurantId: ID!, $physicalPrinterId: ID!) {
  deletePhysicalPrinter(restaurantId: $restaurantId, physicalPrinterId: $physicalPrinterId) {
    id
    autoAcceptDeliveryHeroOrders
    deliveryHeroChainId
    deliveryHeroEnabled
    deliveryHeroVendorId
    deliveryHeroWebhookUrl
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { deletePhysicalPrinter(...) { __typename } }"}'