API reference
finishPrinterJob
Mark a printer job as finished. Call this mutation after you have claimed a job (using the "claimPrinterJobs") and printed it successfully. Required permission: RestaurantWrite
finishPrinterJob(
restaurantId: ID!
printerJobId: ID!
): VoidArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
printerJobId |
ID! |
Returns
Example
mutation FinishPrinterJob($restaurantId: ID!, $printerJobId: ID!) {
finishPrinterJob(restaurantId: $restaurantId, printerJobId: $printerJobId)
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { finishPrinterJob(...) { __typename } }"}'