How to auto-print Squarespace order tickets
Squarespace cannot run your printer code. Send the order webhook to your server, then print a ticket with the API. No Squarespace plugin is included.
For Squarespace sellers who need a physical ticket per order
Overview
Squarespace will notify you of an order. It will not install a printer driver, and PrintBase does not have a Squarespace extension. The order webhook, or a mail-to-server step you already trust, has to land in an application you run.
That application formats a PDF ticket or an ESC/POS receipt and posts it to the shop printer_code. Commerce orders can retry, so the Idempotency-Key is the Squarespace order id.
If you do not want to run a server, a tool such as Zapier or Make can receive the webhook and perform the HTTP POST. The API key then lives in that tool's secret store. There is still no native PrintBase app inside Squarespace.
Integration steps
- 01
Point the Squarespace webhook at something you control
Your HTTPS endpoint, or an automation product that can store a secret.
- 02
Build the ticket from the order JSON
Lines, pickup time, order number. PDF or ESC/POS. Use POST /v1/print-jobs with Authorization: Bearer and the printer_code from GET /v1/printers.
- 03
POST /v1/print-jobs
Bearer token, printer_code, content_type matching the bytes.
- 04
Dedupe with the order id
Squarespace retries must reuse the idempotency key and the same body.
- 05
Keep the shop agent running
The website being online does not mean the printer PC is online.
curl
# Server or automation: Squarespace order ticket PDF
curl -X POST 'https://api.printbase.cloud/v1/print-jobs' \
-H "Authorization: Bearer $PRINTBASE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"printer_code": '"$PRINTER_CODE"',
"content_type": "pdf",
"content": "<base64 pdf>",
"copies": 1
}'
Details for this setup
PDF path for a Squarespace ticket
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.
No server-side code on Squarespace itself
You cannot hide an API key in Squarespace page code. The print call moves to a backend or to an automation with a secret.
Questions
Is there a Squarespace integration to toggle on?
No. The call is still POST /v1/print-jobs with a Bearer API key, and HTTP 201 means queued rather than printed.
Can I print from a notification email?
Only if something structured parses the order. A webhook is the straighter path.
Multiple pickup locations?
Map location to printer_code in your backend. The call is still POST /v1/print-jobs with a Bearer API key, and HTTP 201 means queued rather than printed.
What does the free plan cover?
100 jobs a month on one computer, no card. Webhooks for job status require a paid plan.
Free plan: 100 jobs a month on one computer, no card.