API reference

createPhysicalPrinter

Required permission: RestaurantSettingsWrite

graphql
createPhysicalPrinter(
  restaurantId: ID!
  input: PhysicalPrinterInput!
): PhysicalPrinter

Arguments

Name Type Description
restaurantId ID!
input PhysicalPrinterInput!

Returns

PhysicalPrinter

Example

graphql
mutation CreatePhysicalPrinter($restaurantId: ID!, $input: PhysicalPrinterInput!) {
  createPhysicalPrinter(restaurantId: $restaurantId, input: $input) {
    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 { createPhysicalPrinter(...) { __typename } }"}'