API reference

identifyPhysicalPrinters

Required permission: RestaurantSettingsWrite

graphql
identifyPhysicalPrinters(
  restaurantId: ID!
): [PhysicalPrinter!]

Arguments

Name Type Description
restaurantId ID!

Returns

[PhysicalPrinter!]

Example

graphql
mutation IdentifyPhysicalPrinters($restaurantId: ID!) {
  identifyPhysicalPrinters(restaurantId: $restaurantId) {
    id
    identifyStatus
    cloudPrntServerUrl
    isOnline
    lastOnlineAt
    mqttEnabled
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { identifyPhysicalPrinters(...) { __typename } }"}'