Send orders to Zela Print straight from your own system, instead of a spreadsheet. We print them, post them to your customer in plain packaging, and send the tracking back to you. Version 1. Machine-readable spec: /api/v1/openapi.json.
Base address for every call: https://zelaprint.com/api/v1. Requests and responses are JSON. Money is always in pence (whole numbers), in GBP. UK prices include VAT.
Send your key on every request. Keys start zp_live_ or zp_test_. A key is shown once when you make it; we only keep a fingerprint of it, so a lost key cannot be recovered: revoke it and make another.
curl https://zelaprint.com/api/v1/account -H "Authorization: Bearer zp_test_..."
Every error has the same shape. Branch on code; show message to a person.
{
"error": {
"code": "invalid_request",
"message": "The order has problems. See details.",
"details": [{ "field": "recipient.postcode", "message": "Required." }]
}
}| HTTP | Meaning |
|---|---|
| 400 | The request is malformed (invalid_request, invalid_json). |
| 401 | Missing, wrong or revoked key (missing_key, invalid_key). |
| 403 | API access is not switched on for the account (access_not_approved), or a test-only call with a live key. |
| 404 | No such order or file (not_found). |
| 409 | Duplicate external_id, or the order is past the point where that is possible (cannot_cancel, cannot_change, cannot_confirm). |
| 422 | Valid, but we cannot accept it: unknown_size, unknown_paper, unknown_frame, country_not_served, size_not_priced, country_not_priced, size_not_to_country, unknown_file, wrong_file_type, file_not_uploaded, file_too_large, idempotency_key_reused. |
| 429 | More than 120 requests a minute on one key. Wait for Retry-After seconds. |
| 5xx | Our side. Safe to retry with the same Idempotency-Key. |
Retries: send an Idempotency-Key header (any unique string, e.g. a UUID) when creating an order. Sending the same request again with the same key returns the first order instead of making a second; a different order sent with a used key is refused (idempotency_key_reused). external_id must also be unique among your orders that are not cancelled or failed, so the same order can never be made twice, and a cancelled or failed order can be sent again under its own reference.
| Status | What it means |
|---|---|
| draft | Sent with "confirm": false. Priced and its files checked, but nothing is paid or printed until you POST /orders/{id}/confirm. |
| processing | Received and priced. We are downloading and checking the files (usually under a minute a print). |
| on_hold | Ready, but waiting: your balance does not cover it, or (invoiced accounts) an invoice is 7+ days unpaid or the order would pass your credit limit. hold_reason says which. It goes through by itself within a few minutes of a top-up or payment. |
| accepted | Paid (or added to your invoice) and in our print queue. From here it can no longer be cancelled through the API. |
| printing | Being printed. |
| shipped | Posted. tracking has the carrier, number and link. |
| failed | A file could not be used (bad link, not an image, unreadable). failure_reason says which and why. Nothing was charged. Send a new file with PATCH /orders/{id} and it is tried again, or cancel it. |
| cancelled | Cancelled by you before it was accepted (nothing was charged), or by us (we refund what was charged). |
Paid orders go straight to print: there is no waiting period. Until an order is accepted (while it is draft, processing, on_hold or failed) you can change the address or the artwork with PATCH, or cancel it; after that, email support@zelaprint.com. To have time to check an order first, send it as a draft.
Once accepted you are told when it starts printing, ships, gets new tracking, is refunded (costs.refunded_pence) or is cancelled by us.
Pay up front (every new account): each order is taken from your balance when it is accepted. Top up by card on Account → Pre-pay. GET /account shows your balance.
Weekly, then monthly invoice: once you have a track record, apply on Account → API. Orders then go through without a balance and are invoiced at the end of each week (Monday to Sunday) or month. Pay by bank transfer quoting the invoice number, or from your balance with one click on Account → API. While an invoice is 7 or more days unpaid, or if an order would take you over your credit limit (if your account has one), new API orders wait on hold and go through by themselves once it is paid.
What you pay is your account’s price list: the same prices as any other way you send us orders. GET /products lists them; POST /quotes gives the exact total for an order, discounts and shipping included. Shipping is charged once per order.
Customs and EU VAT: parcels leaving the UK are declared at what you paid us for the prints. For EU parcels up to EUR 150, add your IOSS number on Account → Settings and we put it on the label.
Each print needs either an artwork_url (we download it) or a file_id (you upload it to us first, for files that are not public).
Uploading is two steps: ask for an upload address, then PUT the bytes to it.
curl -X POST https://zelaprint.com/api/v1/files -H "Authorization: Bearer zp_test_..." -H "Content-Type: application/json" \
-d '{ "filename": "sunset-a2.jpg", "content_type": "image/jpeg", "size_bytes": 18234411 }'
# → { "file": { "id": "file_8c...", ... }, "upload_url": "https://...", "upload_headers": { "Content-Type": "image/jpeg" } }
curl -X PUT "<upload_url>" -H "Content-Type: image/jpeg" --data-binary @sunset-a2.jpgThe upload address lasts an hour. Use the file id on an order any time after.
items[].paper, a key from GET /products → papers. Left out = the default paper.items[].frame, a key from frames. Left out = a rolled print. The list is empty while we offer no frames.items[].external_id, returned on every answer and webhook."insert": { "artwork_url": "…" } (or file_id): a 4x6 inch card we print and put in the parcel, for your thank-you note or branding. Priced in extras.insert."shipping": { "method": "own_label", "label_url": "…" } (or label_file_id): a 4x6 PDF label you bought. We print it and put it on; our shipping price is replaced by the small fee in shipping_methods. Without it, standard: we buy the label.Prices in the examples are made up. Yours come from GET /products and POST /quotes.
Your account: billing (prepay, weekly, monthly), balance, whether this key is live or test.
{ "account": { "id": "…", "email": "you@printer.com", "company": "Your Co", "mode": "test",
"billing": "prepay", "balance_pence": 12500, "currency": "GBP", "webhook_url": null } }The sizes you can order with your price for one print, the papers, frames and extras, the shipping methods, and every country we deliver to with its shipping price. ?country=US for one country only. Use the size value on orders. A size agreed only with your account shows only_to: the countries it can go to.
{ "currency": "GBP", "prices_include_uk_vat": true, "pricing": "catalogue",
"products": [{ "size": "a3", "label": "A3", "width_mm": 297, "height_mm": 420, "price_pence": 650, "only_to": null }],
"papers": [{ "key": "satin-270", "name": "270 GSM Satin Art", "weight_gsm": 270, "finish": "satin", "default": true, "price_pence": 0 }],
"frames": [],
"extras": { "insert": { "price_pence": 100, ... } },
"shipping_methods": [{ "method": "standard", ... }, { "method": "own_label", "price_pence": 25, ... }],
"shipping": [{ "country": "GB", "name": "United Kingdom", "shipping_pence": 395 }] }The exact cost of an order. Nothing is saved.
{ "country": "GB", "postcode": "PE29 3DJ", "items": [{ "size": "a3", "quantity": 2, "paper": "satin-270" }],
"shipping": "standard", "insert": true }
→ { "currency": "GBP", "items": [{ "size": "a3", "quantity": 2, "paper": "satin-270", "frame": null, "unit_price_pence": 650, "total_price_pence": 1235 }],
"items_pence": 1235, "shipping_method": "standard", "shipping_pence": 395, "insert_pence": 100, "total_pence": 1730, "vat_included_pence": 288 }Start an upload (see Artwork). Body: filename, content_type, size_bytes. GET /files/{id} tells you whether it has arrived.
Send an order. Answers 201 with the order (status processing, or draft with "confirm": false), or 200 with the existing one for a repeated Idempotency-Key.
curl -X POST https://zelaprint.com/api/v1/orders \
-H "Authorization: Bearer zp_test_..." -H "Content-Type: application/json" \
-H "Idempotency-Key: 3f1c2b9e-1d2a-4c7e-9a51-0c8e3a6f2d11" \
-d '{
"external_id": "PS175490",
"recipient": {
"name": "Jane Smith", "company": null, "email": "jane@example.com", "phone": "+44 7700 900123",
"address1": "12 High Street", "address2": "Flat 3", "city": "Huntingdon", "region": "Cambridgeshire",
"postcode": "PE29 3DJ", "country": "GB"
},
"items": [
{ "size": "a3", "quantity": 1, "artwork_url": "https://cdn.yourshop.com/art/1234.jpg", "external_id": "PS175490-1" },
{ "size": "a2", "quantity": 2, "file_id": "file_8c...", "paper": "satin-270" }
],
"insert": { "artwork_url": "https://cdn.yourshop.com/thank-you-card.png" },
"shipping": { "method": "standard" },
"notes": "Gift: please no invoice in the parcel"
}'Required: external_id (your reference, unique), recipient name, address1, city, postcode (“N/A” where a country has none), country (2-letter ISO code), and 1 to 50 items with size, quantity (1 to 100) and artwork_url or file_id. Everything else is optional: recipient email and phone are passed to the courier for delivery updates (we never email your customer). The answer:
{ "order": {
"id": "ZP-7K2M9QX4", "external_id": "PS175490", "mode": "test", "status": "processing",
"hold_reason": null, "failure_reason": null, "recipient": { ... },
"items": [{ "index": 0, "external_id": "PS175490-1", "size": "a3", "quantity": 1, "paper": "satin-270", "frame": null,
"artwork_url": "https://…", "file_id": null,
"unit_price_pence": 650, "total_price_pence": 650, "artwork": { "status": "pending", "error": null } }],
"insert": { "artwork_url": "https://…", "file_id": null, "status": "pending", "error": null },
"shipping": { "method": "standard", "label": null },
"notes": "…", "costs": { "currency": "GBP", "items_pence": 1885, "shipping_pence": 395, "insert_pence": 100,
"total_pence": 2380, "vat_included_pence": 397, "refunded_pence": 0 },
"billing": "balance", "tracking": null,
"created_at": "2026-10-20T21:04:11Z", "updated_at": "…", "accepted_at": null, "shipped_at": null, "cancelled_at": null } }One order by our id, with its status, each print’s artwork progress and, once shipped, tracking.
Your orders, newest first. Filters: status, external_id, created_after (ISO time), limit (1 to 100, default 25). Next page: pass before=<next_before> while has_more is true.
Change an order before it is accepted: the recipient (send only the fields that change), the notes, or the file of a print (by its index), the insert card or your label. A new country is priced again. A failed or on-hold order is tried again. Sizes, quantities, paper and extras cannot change: cancel and send a new order.
{ "recipient": { "address1": "14 High Street", "postcode": "PE29 3DL" },
"items": [{ "index": 1, "artwork_url": "https://cdn.yourshop.com/art/1234-fixed.jpg" }] }A draft goes ahead: paid (or invoiced) and printed once its files are ready. Confirming an order that is already going ahead returns it unchanged.
Cancel while draft, processing, on hold or failed. Nothing has been charged at that point.
Sends one signed test event to your webhook address now and tells you what your server answered.
Set an https address on Account → API (and, if you like, a separate one for test keys). We POST an event whenever one of your orders changes:
order.created · order.updated · order.accepted · order.on_hold · order.failed · order.printing · order.shipped · order.tracking_updated · order.refunded · order.cancelled
{ "id": "evt_Xk3…", "type": "order.shipped", "created_at": "2026-10-21T15:02:00Z",
"data": { "id": "ZP-7K2M9QX4", "external_id": "PS175490", "status": "shipped",
"tracking": { "carrier": "Royal Mail", "number": "AB123456789GB", "url": "https://…" }, ... } }Sometimes a parcel is marked shipped before its tracking number is known. You then get order.shipped with tracking.number empty, and a second order.shipped for the same order when the number arrives.
data is the whole order, as GET /orders/{id} returns it. Answer with any 2xx within 10 seconds. Anything else is retried after 1, 5 and 30 minutes, then 2, 6, 12 and 24 hours, then given up. Events can arrive more than once or out of order: use the order’s status and updated_at, and the event id to skip repeats.
Check the signature on every event, with the signing secret shown on your account page. The header is Zela-Signature: t=<unix time>,v1=<hex>, where v1 is HMAC-SHA256 of "<t>.<raw body>".
// Node.js
import crypto from 'node:crypto';
function isFromZela(rawBody, header, secret) {
const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
if (Math.abs(Date.now() / 1000 - Number(parts.t)) > 300) return false; // older than 5 minutes
const expected = crypto.createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest('hex');
return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1 || ''));
}# Python
import hmac, hashlib, time
def is_from_zela(raw_body: bytes, header: str, secret: str) -> bool:
parts = dict(p.split('=', 1) for p in header.split(','))
if abs(time.time() - int(parts['t'])) > 300:
return False
expected = hmac.new(secret.encode(), f"{parts['t']}.".encode() + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, parts.get('v1', ''))Calls made with a test key see only test orders and files. A test order is validated, priced, and its artwork downloaded and checked like a real one, then becomes accepted (balance and credit checks are skipped). It is never printed and nothing is charged. Test order ids start ZP-TEST-.
Move a test order on to try your webhook handling:
curl -X POST https://zelaprint.com/api/v1/orders/ZP-TEST-4h7Kp2Lm9Q/simulate -H "Authorization: Bearer zp_test_..." \
-H "Content-Type: application/json" -d '{ "status": "shipped" }' # or "printing", "tracking_updated", "cancelled"Questions: support@zelaprint.com.