API reference

identifyPhysicalPrinter

Required permission: RestaurantSettingsWrite

graphql
identifyPhysicalPrinter(
  restaurantId: ID!
  physicalPrinterId: ID!
): PhysicalPrinter

Arguments

Name Type Description
restaurantId ID!
physicalPrinterId ID!

Returns

PhysicalPrinter

Example

graphql
mutation IdentifyPhysicalPrinter($restaurantId: ID!, $physicalPrinterId: ID!) {
  identifyPhysicalPrinter(restaurantId: $restaurantId, physicalPrinterId: $physicalPrinterId) {
    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 { identifyPhysicalPrinter(...) { __typename } }"}'