PrintBase
  • Product
  • Pricing
  • Docs
  • Resources
PrintBase/Guides/Printer models and the PrintBase API

Print receipts on a Star TSP143

TSP100-series printers such as the TSP143 often want the futurePRNT driver and a PDF. Raw ESC/POS is not a safe assumption. Test one ticket.

For Sites printing on a Star TSP143

Overview

The TSP143 is part of Star's TSP100 family. Many of those units are driven by the futurePRNT driver in a raster mode, and the device language is Star Line Mode rather than a full ESC/POS dialect. Send a small PDF through that driver unless you have confirmed raw bytes on that exact unit.

PrintBase does not ship a driver for this model. The agent prints to a queue the operating system already lists. Raw bytes go straight through: from memory into the Windows spooler, or via lp -o raw on macOS and Linux. PDF jobs go through the OS driver. A PDF marked as raw is rejected with INVALID_CONTENT.

CloudPRNT is a different Star feature: the printer polls a URL you host. PrintBase does not implement CloudPRNT. If you are leaving that design, point the OS driver at the agent instead of teaching the printer to poll.

Integration steps

  1. 01

    Install the printer in the OS

    Use the vendor driver or a raw port until a test page works. The agent cannot see a device the operating system does not list.

  2. 02

    Read the numeric code

    GET /v1/printers returns code. That integer is printer_code on POST /v1/print-jobs. The name is for humans.

  3. 03

    Match content_type to the payload

    ZPL, EPL, TSPL, and ESC/POS are content_type raw, standard base64. Office documents and driver labels are content_type pdf.

  4. 04

    Key the job to the business id

    Reuse one Idempotency-Key per label. A reprint uses a new key. The same key with a different body returns HTTP 409.

  5. 05

    Wait for completed

    HTTP 201 means status queued. Poll GET /v1/print-jobs/{id}. Paid plans can subscribe to print_job.completed and print_job.failed only.

Node.js

// Short receipt PDF for a TSP143
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: 'pdf',
    content: receiptPdf.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

Model notes

CloudPRNT is a different Star feature: the printer polls a URL you host. PrintBase does not implement CloudPRNT. If you are leaving that design, point the OS driver at the agent instead of teaching the printer to poll.

Raw versus PDF on this queue

Raw is not reflowed. On Windows a PDF needs an application that handles PrintTo; the agent error text names Adobe Reader or SumatraPDF as examples. macOS and Linux use lp.

Questions

Why not ESC/POS?

Because a lot of TSP100 units will print garbage or nothing from ESC/POS. Confirm with one raw test, then decide.

Does this replace CloudPRNT?

It is a different architecture. You push a job. The printer does not poll you.

The futurePRNT queue name?

Whatever Windows or CUPS shows. printer_code targets that queue.

Paper width?

TSP143 is commonly 80 mm. Size the PDF to the driver stock. The call is still POST /v1/print-jobs with a Bearer API key, and HTTP 201 means queued rather than printed.

Related guides

  • Print receipts on a Star mC-Print3

    The mC-Print3 can do CloudPRNT, but this path uses the OS queue. Send PDF or tested raw bytes. You do not host a poll URL.

  • Star CloudPRNT alternative without hosting a poll URL

    CloudPRNT printers poll a URL you host. PrintBase lets your server push a job to an OS queue instead. You can keep CloudPRNT for other devices.

  • Print ESC/POS receipts on an Epson TM-T20III

    Send ESC/POS bytes to a TM-T20III as raw, or a PDF if you rely on the Epson driver. 80 mm paper, code page is your responsibility.

  • Receipt printer prints garbage characters

    ESC/POS garbage is almost always the code page. The agent does not transcode raw bytes. Encode for the printer before base64.

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