Kitchen Order Printing: Build a Reliable POS Workflow

Send restaurant orders to the right kitchen printer without browser dialogs. Build a dependable workflow for station routing, ticket changes, retries, and offline recovery.

By the PrintScaler team · · 9 min read

Restaurant kitchen printers receiving station-specific order tickets from a cloud-connected POS system.

Kitchen order printing works best when your POS or ordering backend sends a separate, clearly identified ticket to each preparation station. With PrintScaler, that backend can submit PDF or RAW print jobs over HTTPS, while an agent-connected printer—or a supported Epson printer connected directly—produces the physical ticket. The important engineering work is deciding when to print, what each station receives, and how to handle changes or uncertain delivery without creating duplicate meals.

What a reliable kitchen printing workflow needs

A customer receipt records a transaction. A kitchen ticket instructs someone to prepare food, so its timing and meaning matter just as much as its formatting.

A useful workflow looks like this:

  1. Your backend accepts an order for preparation.
  2. It saves an immutable snapshot of that order event.
  3. Routing rules divide the items among preparation stations.
  4. A worker submits one print job for each destination.
  5. Your application tracks delivery progress and alerts staff when something needs attention.

Do not trigger printing merely because a customer opened a confirmation page. Refreshes, abandoned checkout sessions, and multiple browser tabs are poor sources of preparation instructions.

Instead, choose an explicit business event: payment confirmed, staff acceptance, or release of a scheduled order. The right event depends on how the restaurant operates. A pay-at-counter order may be accepted before payment, while a scheduled delivery should usually wait until its preparation window.

Keep preparation state separate from print state

An order can be accepted without its ticket having printed. Equally, a ticket can print without anyone starting the food.

Maintain separate concepts for:

  • Order state: accepted, preparing, ready, cancelled.
  • Print dispatch state: awaiting submission, submitted, failed, needs review.
  • Provider job state: the latest state reported by the printing service.

This separation prevents a temporary printer problem from incorrectly cancelling an order—or a successful API request from incorrectly marking it as preparing.

Choose a kitchen printer connection method

The printer connection determines what equipment must stay powered on at the restaurant.

Connection method What runs on-site Best fit Main consideration
PrintScaler agent A Windows, macOS, Linux, or Raspberry Pi device connected to the printer Existing USB or network printer installations Keep the agent computer awake and connected
Epson Server Direct Print A supported Epson printer, without an agent computer Tablet-first POS installations Verify the exact printer model and configuration
Direct network connection A network receipt printer exposed through public IP or dynamic DNS and port forwarding Networks with deliberate remote-access administration Requires careful network security review

The agent uses an outbound WebSocket connection, so it does not require inbound firewall ports. It starts automatically after reboots, updates itself, and reports printers and their status. Those properties make it a practical default when a restaurant already has a small always-on computer.

Supported Epson Server Direct Print models include the TM-m30III, selected TM-m30II variants, TM-m50/II, TM-T88VI/VII, and TM-i series. Check the exact model rather than assuming every Ethernet-equipped Epson supports this connection method. The related guide to printing from an iPad to Epson without a PC explains that deployment pattern.

For most restaurants, avoid exposing a printer directly to the public internet unless a network administrator has deliberately assessed the risks and access controls. An agent connection or supported direct Epson setup avoids that particular inbound exposure.

Thermal versus impact kitchen printers

Printer placement matters. Heat, grease, moisture, noise, and ticket longevity can influence the hardware choice; do not assume a front-counter thermal receipt printer is automatically suitable beside a cooking line.

Also verify the printer’s supported command language. ESC/POS is common, but compatibility and command support vary by model. An impact kitchen printer may need different formatting or commands from the thermal printer used at the counter.

Route kitchen tickets by preparation station

Store routing rules in your backend, not in the customer’s browser. The browser should submit an order to your application; it should not choose an arbitrary printer ID or receive your PrintScaler API key.

A basic routing table might be:

Ordered item Destination Ticket content
Burger and fries Grill Quantity, modifiers, preparation notes
Espresso Bar Drink size, milk choice, modifiers
Whole order Expo Full item list and handoff details

Keep your business station identifiers separate from PrintScaler printer IDs. For example, grill is a station; 123 is its current printer. If hardware changes, update the mapping rather than rewriting product rules.

Decide how shared items and bundles behave

A combo meal can span several stations. Route its components individually while preserving the order number and a useful grouping label.

Avoid copying every item onto every station ticket unless the kitchen explicitly wants that behavior. Otherwise, staff may interpret informational items as preparation instructions.

An expo ticket is different: it can deliberately include the whole order so someone can check completeness before handoff. Label that role clearly.

Keep customer data minimal. Kitchen staff usually need an order identifier, service mode, and possibly a first name or table number—not a customer’s email address or full billing details.

Set up kitchen order printing with PrintScaler

The following example prints an ESC/POS ticket from a Python backend. The same HTTPS request can originate from another server-side stack.

1. Connect and test the station printer

For an agent-based installation, download the PrintScaler agent, install it on the restaurant computer, and enter the dashboard pairing code.

Confirm that the expected printer appears, then use the dashboard’s test-page button to check the basic connection. A successful test page does not validate your ESC/POS formatting, so send a representative kitchen ticket afterward.

Record the printer ID in server-side configuration. Test with the actual paper width, printer driver, and hardware that will be used during service.

2. Prepare a compact, readable ticket

A kitchen ticket should prioritize information in the order someone needs it:

  • Ticket type: new order, addition, cancellation, or reprint.
  • Order number and revision.
  • Preparation station.
  • Service mode, table, or pickup identifier.
  • Quantities, items, and modifiers.
  • Preparation notes that must not be overlooked.

Use plain, unambiguous wording. An allergy note should remain visible rather than disappearing into a long description, but printing it is not a substitute for the restaurant’s allergy-handling procedure.

For RAW formatting and supported connection approaches, see the ESC/POS receipt printer documentation.

3. Send the ticket through the API

Install the Python HTTP client:

python -m pip install requests

Set PRINTSCALER_API_KEY, KITCHEN_PRINTER_ID, and TICKET_DISPATCH_ID in your worker environment. The dispatch ID must identify a saved, immutable ticket event, not a newly generated value on every attempt.

import base64
import os
import textwrap

import requests

printer_id = int(os.environ["KITCHEN_PRINTER_ID"])
dispatch_id = os.environ["TICKET_DISPATCH_ID"]

# Example immutable event snapshot loaded by the worker.
order_number = "1042"
revision = 1
station = "GRILL"
items = [
    (2, "Cheeseburger", ["No onion", "One without cheese"]),
    (1, "Fries", ["No added salt"]),
]

# Conservative example width; calibrate for your printer and font.
width = 32
lines = [
    "NEW ORDER",
    f"ORDER {order_number} / REV {revision}",
    f"STATION: {station}",
    "PICKUP",
    "-" * width,
]

for quantity, name, modifiers in items:
    lines.extend(textwrap.wrap(f"{quantity} x {name}", width))
    for modifier in modifiers:
        lines.extend(textwrap.wrap(
            f"- {modifier}",
            width,
            initial_indent="  ",
            subsequent_indent="  ",
        ))
    lines.append("")

text = "\n".join(lines) + "\n\n\n"

# Initialize and feed. Add a cut command only if supported.
ticket_bytes = b"\x1b\x40" + text.encode("ascii")

response = requests.post(
    "https://api.printscaler.com/v1/printjobs",
    headers={
        "Authorization": f"Bearer {os.environ['PRINTSCALER_API_KEY']}",
        "X-Idempotency-Key": f"kitchen:{dispatch_id}:grill",
    },
    json={
        "printerId": printer_id,
        "contentType": "raw_base64",
        "content": base64.b64encode(ticket_bytes).decode("ascii"),
        "title": f"Kitchen {order_number} rev {revision} - grill",
    },
    timeout=(5, 20),
)
response.raise_for_status()
print("Print request accepted; track the job through completion.")

This sample intentionally uses ASCII. For accented characters or other scripts, select the printer’s supported encoding and character-table commands, or evaluate a PDF workflow. Sending UTF-8 bytes does not guarantee correct output on an ESC/POS printer.

The sample order also illustrates a real workflow issue: modifiers affecting only one of several identical items should ideally become separate ticket lines. Before production, represent the two burgers separately so staff do not have to infer which gets cheese.

RAW ESC/POS is faster and sharper than PDF for receipt printing. If your application already generates suitable PDFs, PrintScaler also accepts pdf_uri and pdf_base64; validate page dimensions and output on the kitchen hardware. For a JavaScript implementation, see the related Node.js ESC/POS printing tutorial.

4. Save dispatch records before making requests

Persist each station ticket before submitting it. A useful record includes the event ID, order revision, station, destination printer, immutable payload, idempotency key, and the associated provider job information.

Use one stable idempotency key per intended ticket. Retrying that ticket uses the same key and payload; an intentional replacement ticket gets a new dispatch record and key.

For stronger consistency, write the accepted order and its pending dispatch records in the same database transaction. A background worker can then send pending tickets without holding the checkout request open.

This avoids a common failure: an order is saved successfully, but the application crashes before scheduling its kitchen print.

Handle order additions, cancellations, and reprints explicitly

Do not silently print a complete replacement order whenever anything changes. During a rush, a second ordinary-looking ticket can be interpreted as another meal.

Define a ticket vocabulary with the restaurant:

  • NEW: prepare these items for the first time.
  • ADD: prepare only the newly added items.
  • CHANGE: review a specific modification to an existing order.
  • CANCEL: stop the specified items if preparation can still be stopped.
  • REPRINT: a replacement copy, not a new preparation request.

Include the same order number and an increasing revision or event sequence. Send a cancellation or modification to the station that received the original instruction, even if current product routing has since changed.

A printed cancellation cannot guarantee that staff stop work in time. Urgent changes may require an audible alert, direct communication, or explicit staff acknowledgment in your POS.

Likewise, distinguish an automatic retry from a manual reprint. The retry preserves the original idempotency key. A deliberate reprint uses a new key and visibly identifies itself as a reprint.

Handle offline printers without releasing stale food orders

PrintScaler queues jobs while an agent computer is offline and prints them when it reconnects, unless they have expired. Expiration is configurable.

That is useful for documents that remain valid, but a delayed kitchen ticket may become operationally unsafe: staff could start preparing an order that has already been refunded or fulfilled another way.

Choose an expiration policy based on the preparation workflow, and build an exception path for jobs that no longer make sense. Do not set a long queue lifetime simply to avoid seeing errors.

Monitor job states such as new, sent_to_client, queued, in_progress, done, error, cancelled, and expired. Use PrintScaler’s signed webhook events to update your dispatch records and surface problems to staff. Verify HMAC-SHA256 signatures and handle repeated webhook deliveries safely.

Treat a successful POST as submission, not evidence that a cook received a readable ticket. Even a reported done state is not a human acknowledgment of preparation.

If a request times out, the service may still have accepted it. Retry the same dispatch with the same idempotency key rather than creating another ticket. Use bounded retries with backoff and route unresolved cases to staff review.

Test the workflow before the first busy service

Run a small operational acceptance test, not just a connectivity test:

  • Submit a mixed order and verify station-specific routing.
  • Disconnect the agent computer, submit a ticket, and reconnect it.
  • Let a test job exceed the configured expiration period.
  • Retry a submission using the same idempotency key.
  • Add an item, cancel an item, and request a deliberate reprint.
  • Test long names, multiple modifiers, and the actual paper width.
  • Check the staff response to an empty roll or unreadable ticket.
  • Restart the restaurant computer and verify recovery.

Also estimate volume by destination. An order that generates grill, bar, and expo tickets consumes three print requests. PrintScaler pricing is per print request, not per page, so station fan-out matters when choosing a plan. Review the current plans and included print volumes against peak and monthly demand.

PrintScaler’s API rate limit is 10 requests per second with a burst of 30. Queue station dispatches in your application so a sudden batch of online orders does not overwhelm submission capacity.

Build the ticket workflow, not just the print call

Reliable kitchen order printing combines a clear release event, server-side station routing, readable tickets, stable retry identities, and a visible exception process. The HTTPS request is the transport; your application still owns the meaning of each preparation instruction.

Start with one station and test changes, disconnects, and reprints before expanding. Create a free PrintScaler account to connect a printer and validate the complete order-to-kitchen workflow.

Frequently asked questions

How do I automatically print online orders to a kitchen printer?

Have your ordering backend create a print dispatch when an order is accepted or released for preparation. Route the items to their kitchen stations, then submit each ticket through a printing API. Avoid triggering preparation tickets from a customer confirmation page, which can be refreshed or reopened.

Can a kitchen printer work without a computer?

Supported Epson printers with Server Direct Print can connect to PrintScaler without an agent computer. Other installations can use the PrintScaler agent on Windows, macOS, Linux, or Raspberry Pi. Verify the exact printer model before choosing a computer-free setup.

Should kitchen tickets use ESC/POS or PDF?

RAW ESC/POS is faster and sharper than PDF for receipt printing and is a good fit for compatible kitchen ticket printers. PDF can be useful when your application already generates suitable documents or needs more flexible typography. Test command compatibility, character encoding, and paper dimensions on the actual printer.

What happens to kitchen print jobs when the restaurant computer is offline?

PrintScaler queues jobs while the computer is offline and prints them when it reconnects, unless they expire first. Because old food orders may no longer be valid, configure an appropriate expiration policy and alert staff when dispatches need review.

How do I stop API retries from printing the same kitchen order twice?

Save a dispatch record and send its stable identifier in the X-Idempotency-Key header. Reuse that key and the same payload when retrying an uncertain request. An intentional reprint should have a new dispatch identifier and be clearly labeled as a reprint.

Does a completed print job mean the kitchen has accepted the order?

No. A completed print job is not confirmation that a staff member read the ticket or began preparation. Track kitchen acknowledgment or preparation state separately in your POS workflow.

Related articles