PrintBase
  • Product
  • Pricing
  • Docs
  • Resources
PrintBase/Guides/Platform printing integrations

How to auto-print packing slips with Shopify Flow

Shopify Flow can send an HTTP request when an order is ready. Point it at your backend, which prints the slip. No PrintBase Flow app is included.

For Stores that already use Shopify Flow and want a slip on a local printer

Overview

Shopify Flow's Send HTTP request action can call a URL when an order or fulfillment happens, on shops where Flow is available. PrintBase does not provide a Flow connector. The HTTP action should call a backend you control, and that backend calls the print API.

You can POST straight from Flow to /v1/print-jobs only if you are willing to place the API key in the Flow action and you already have a base64 PDF or a public URL. Most packing slips are neither, so Flow should notify your renderer, which builds the PDF and then prints.

Whatever path you choose, set an Idempotency-Key from the order id. Flow retries. A packing slip printer_code is often not the 4×6 label printer.

Integration steps

  1. 01

    Confirm Flow exists on the shop

    This page does not claim a particular Shopify plan includes Flow. If the action is missing, use the order webhook path on the packing-slip page instead.

  2. 02

    Send the order id to your renderer

    Flow HTTP request to your service. Your service loads the order with the Admin API and renders the slip.

  3. 03

    Print with printer_code

    content_type pdf, base64 content, Bearer token from your server environment.

  4. 04

    Key by order id

    flow-slip-{orderId}. A manual reprint mints a new key. Use POST /v1/print-jobs with Authorization: Bearer and the printer_code from GET /v1/printers.

  5. 05

    Do not log the API key in the Flow run history

    Prefer the backend proxy so the Flow UI never stores the PrintBase key.

Node.js

// Your Flow target: render then print the slip
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': `flow-slip:${orderId}`,
  },
  body: JSON.stringify({
    printer_code: Number(process.env.PRINTER_CODE),
    content_type: 'pdf',
    content: slipPdf.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

PDF path for a Flow-triggered packing slip

Use content_type pdf and exactly one of content (standard base64) or content_url (an http or https URL the agent can download). A private file must be fetched by your server and sent as base64, or exposed as a short-lived URL. On Windows the agent asks a PDF app to print to the named queue; if none is registered, the failure text names Adobe Reader or SumatraPDF as examples. macOS and Linux use lp.

Direct HTTP from Flow

Possible for a public content_url, with the Authorization header in the action. The key is then visible to people who can edit the workflow. A backend is the tighter option.

Questions

Is there a Flow template from PrintBase?

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

Can Flow print a carrier label the same way?

Only once your backend has the label file. Flow does not fetch carrier PDFs by itself.

The HTTP action failed with 401.

The Bearer token did not reach the request. If you proxied through your server, check that server's environment, not Shopify.

Will this print in the merchant's browser?

No. Flow runs on Shopify's side, and the print runs through the agent. Nobody needs a print dialog.

Related guides

  • How to auto-print Shopify packing slips

    Render a Shopify packing slip to PDF in your app and send it to the bench printer. PrintBase has no Shopify plugin; the call is a normal print job.

  • How to auto-print Shopify shipping labels

    Print a Shopify shipping-label PDF on a local thermal printer from your own app. No PrintBase Shopify plugin — one API call after the label exists.

  • How to auto-print a PDF from Zapier

    Zap a PDF to a local printer with Webhooks by Zapier or a Code step. There is no PrintBase Zapier app; the step is an HTTP POST.

  • How to auto-print Shopify invoice PDFs

    Send an invoice PDF you generate for a Shopify order to a local office printer through the print-jobs API. No Shopify invoice plugin is included.

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