PrintBase
  • Product
  • Pricing
  • Docs
  • Resources
PrintBase/Guides/Printing use cases

Print online orders to the kitchen

When your site takes an order, the kitchen printer should run without a browser dialog. Your server sends the ticket.

For Restaurants with a website and a pass printer

Overview

The guest's confirmation page is not a kitchen. The order handler that charges the card, or marks the order paid, builds the station tickets and posts them. The pass computer runs the agent.

Split by station if the menu requires it. Each station is a printer_code and its own idempotency key, order id plus station, so a retry does not double the fryer and miss the grill.

ESC/POS is the usual payload. If the only queue you have is a Star TSP100 that wants a driver PDF, send PDF instead of fighting ESC/POS.

Integration steps

  1. 01

    Decide the printer before the click

    Map the station, store, or line to a printer_code from GET /v1/printers. Do not ask the operator to pick a dialog.

  2. 02

    Create the document in your system

    PDF for driver printers, raw ZPL or ESC/POS when the device speaks that language.

  3. 03

    POST when the business event happens

    Pack, pay, check-in, or scan. Not on every autosave. Use the business id as Idempotency-Key.

  4. 04

    Show the job result where the work is

    queued is not done. Surface AGENT_OFFLINE and PRINT_ERROR to the person at the bench.

Node.js

// Kitchen ticket for a paid web order
const res = await fetch('https://api.printbase.cloud/v1/print-jobs', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PRINTBASE_API_KEY}`,
    'Content-Type': 'application/json',
    'Idempotency-Key': idempotencyKey,
  },
  body: JSON.stringify({
    printer_code: Number(process.env.PRINTER_CODE),
    content_type: 'raw',
    content: Buffer.from(payload).toString('base64'),
    copies: 1,
  }),
});
if (!res.ok) throw new Error(`PrintBase ${res.status}: ${await res.text()}`);
const job = await res.json();
// { id: "job_abc", status: "queued" }

Details for this setup

Do not print unpaid carts

Trigger on paid, or on the status your kitchen actually honors. The agent prints only what you send; it does not fetch the document from the platform for you.

Expo screen

Show the reason code when the pass printer is off. A silent 201 is how tickets get lost.

Questions

Can the website call the printer?

No. The website calls you. You call the API. The call is still POST /v1/print-jobs with a Bearer API key, and HTTP 201 means queued rather than printed.

Lunch rush duplicates?

Stable keys per order and station. The call is still POST /v1/print-jobs with a Bearer API key, and HTTP 201 means queued rather than printed.

86 an item after printing?

Send a follow-up ticket with a new key. The API does not recall paper.

Allergen notes?

Put them in the bytes. Nothing is added for you. The call is still POST /v1/print-jobs with a Bearer API key, and HTTP 201 means queued rather than printed.

Related guides

  • How to auto-print kitchen tickets from your ordering site

    When your own ordering site takes an order, print an ESC/POS kitchen ticket through the API. The browser must not hold the API key.

  • One printer per brand in a ghost kitchen

    A ghost kitchen can send each virtual brand to its own printer_code, or stamp the brand on a shared ticket. The API does not infer the brand.

  • Print kitchen tickets on an Epson TM-m30

    The TM-m30 is a compact 80 mm Epson. Send ESC/POS for a kitchen ticket, or PDF through the driver. Pick the interface the OS queue uses.

  • How to auto-print WooCommerce kitchen tickets

    Send a WooCommerce food order to a kitchen ticket printer as ESC/POS. No plugin is required; fire the print from the order hook.

Free plan: 100 jobs a month on one computer, no card.

Create a free accountRead the API docs
PrintBase

PrintBase connects your applications to physical printers anywhere - securely, reliably, and in real time.

Product
Receipt PrintingLabel PrintingDashboardDevicesWebhooks
Resources
DocsBlogStatusAPI ReferenceDownloadPrintBase vs PrintNodePrintNode PricingFAQ
Guides
All guidesIntegrationsPrintersCode samplesComparisonsUse casesTroubleshooting
Company
ContactSecurityPrivacy

© 2026 Aveniq Technologies OÜ. All rights reserved. PrintBase is a service of Aveniq Technologies OÜ.

PrivacyTermsRefunds