API reference
createPhysicalPrinter
Required permission: RestaurantSettingsWrite
createPhysicalPrinter(
restaurantId: ID!
input: PhysicalPrinterInput!
): PhysicalPrinterArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
input |
PhysicalPrinterInput! |
Returns
Example
mutation CreatePhysicalPrinter($restaurantId: ID!, $input: PhysicalPrinterInput!) {
createPhysicalPrinter(restaurantId: $restaurantId, input: $input) {
id
identifyStatus
cloudPrntServerUrl
isOnline
lastOnlineAt
mqttEnabled
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { createPhysicalPrinter(...) { __typename } }"}'