Printer

Working with printers in Menuflow

The printer API calls are specific to Kitchen printers that are pre-registered to a location using the Terminal calls The following API calls allow your applications to retrieve details of the available printers and the ability to send a print job to a specific printer and get the print job status.


Get Printers

Call to retrieve the full details of available printers.

Get Printers

GET https://api.menuflow.dev/go/printer/{location_id}

curl --location 'https://api.menuflow.dev/go/printer/{location_id}' --header 'x-api-key: YOUR-API-KEY'

Path Parameters

{
    "status": 200,
    "location_id": 1220,
    "records": 1,
    "result": [
        {
            "printer_id": 5,
            "printer_name": "Test Printer - London",
            "serial_number": "N42122CC00232",
            "model": "Sunmi NT310",
            "description": "Cloud POS printer",
            "status": "ONLINE",
            "last_seen": "2023-11-15 18:13:00",
            "date_added": "2023-11-15 13:05:30"
        }
    ]
}

Call to send

POST https://api.menuflow.dev/go/printer/{serial_no}

curl --request POST --location 'https://api.menuflow.dev/go/printer/{order_id}' --header 'x-api-key: YOUR-API-KEY'

--data '{ "location_id":1220,"serial_no": "VB129038210" }'

Path Parameters

{
    "status": 201,
    "order_no": 9000001,
    "created": 1
}

API call to get the status of a specific print job.

Status

GET https://api.menuflow.dev/go/printer/{printjob_id}/printjob

url --location 'https://api.menuflow.dev/go/printer/{printjob_id/printjob}/printjob' --header 'x-api-key: YOUR-API-KEY'

Query Parameters

{
    "status": 200,
    "order_no": 9000001,
    "records": 1,
    "result": [
        {
            "printjob_id": 9000001,
            "location_id": 1220,
            "order_id": 1,
            "printer": "N42122CC00713",
            "status": "pending",
            "recieved_at": "2023-11-15 18:17:38",
            "printed_at": ""
        }
    ]
}

Last updated