Skip to main content
  • Order from just 1 piece
  • Delivery to 21 EU countries
  • Free file check
  • Free design service
  • Secure payment

Reseller API

Sell Printen.eu products in your own store. Your order automatically becomes a production order, is paid from your balance or saved card, and ships white label to your customer: your name, no Printen.eu branding and no prices.

Quickstart

  1. 1. Create an API key

    Once your reseller account is approved, create a key in your dashboard. A prk_live_ key places real orders; a prk_test_ key is a sandbox that charges nothing and produces nothing. The full key is shown only once.

  2. 2. Get a quote

    POST /quotes with lines and the destination country returns your price including discount, VAT and shipping.

  3. 3. Place an order

    POST /orders with an Idempotency-Key header (for example your own order number). Retrying with the same key never creates a second order.

  4. 4. Receive webhooks

    Register an https endpoint and receive status changes, such as shipped with tracking.

# Product: customer options with defaults and allowed values (id or any slug)
curl https://www.printen.eu/api/reseller/v1/products/flyers?lang=en \
  -H "Authorization: Bearer prk_test_..." -H "User-Agent: MyShop-Integration/1.0"

# Prijs / quote: only customer options; omitted options get the product-page default.
# quantity = number of pieces (for run-priced products the run: here 1000 flyers)
curl -X POST https://www.printen.eu/api/reseller/v1/quotes \
  -H "Authorization: Bearer prk_test_..." -H "Content-Type: application/json" \
  -H "User-Agent: MyShop-Integration/1.0" \
  -d '{"country":"BE","lines":[{"productId":"<product id>","quantity":1000,"options":{"size":"a5","material":"135gr_gesatineerd_mc","printtype":"44"}},{"resellerSku":"POSTER-A2","quantity":1}]}'

# Order
curl -X POST https://www.printen.eu/api/reseller/v1/orders \
  -H "Authorization: Bearer prk_test_..." -H "Content-Type: application/json" \
  -H "Idempotency-Key: shop-order-1001" \
  -d '{"externalOrderId":"1001","lines":[{"resellerSku":"POSTER-A2","quantity":1,"fileUrl":"https://example.com/design.pdf"}],
       "recipient":{"name":"Anna de Vries","email":"anna@example.com","phone":"+31612345678","address1":"Dorpsstraat 1","postalCode":"1234 AB","city":"Utrecht","country":"NL"}}'

# Webhook
curl -X POST https://www.printen.eu/api/reseller/v1/webhooks \
  -H "Authorization: Bearer prk_live_..." -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/printen-webhook","events":["order.shipped","order.delivered"]}'

Authentication

Send your key as Authorization: Bearer prk_live_... Keys can have scopes; a key without scopes may do everything.

With a prk_test_ key, orders are created but not charged and not sent to production.

Up to 120 requests per minute per key, plus account budgets for quotes and orders. Every response carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (seconds) for the strictest limit that applies; above it you get 429 with a Retry-After header.

Base URL: https://www.printen.eu/api/reseller/v1

Endpoints

MethodPathDescriptionScope
GET/productsList catalogue productscatalog:read
GET/products/{id}Get a product with options and file requirementscatalog:read
POST/quotesPrice lines for a destination countryquotes:write
GET/reseller-productsList your own productsreseller-products:read
POST/reseller-productsCreate your own product (SKU with fixed options)reseller-products:write
GET/reseller-products/{id}Get your own product (id or SKU)reseller-products:read
PATCH/reseller-products/{id}Update your own productreseller-products:write
DELETE/reseller-products/{id}Delete your own productreseller-products:write
GET/ordersList your orders (newest first)orders:read
POST/ordersPlace an orderorders:write
GET/orders/{id}Get an orderorders:read
POST/orders/{id}/cancelCancel an order while it has not reached productionorders:write
GET/walletBalance and ledger entrieswallet:read
GET/webhooksList webhook endpointswebhooks:read
POST/webhooksCreate a webhook endpoint (the secret is only returned here)webhooks:write
DELETE/webhooks/{id}Delete a webhook endpointwebhooks:write
POST/orders/{id}/simulateSandbox: simulate production, shipping or deliveryorders:write

How the API works

Options and defaults

GET /products/{id} returns exactly the options a customer sees on the product page, each with its default and allowed values. Send only those keys in options. Leave an option out and it gets the default shown there, which is the product page’s starting configuration. For a few products (such as posters) the page adjusts its start after live availability checks, so send every option that matters to you.

Options the website sets automatically (production method, sheet size, bundling, packaging and similar) are set by us in the same way and cannot be sent: an unknown or automatic key returns 422 invalid_options with the list of allowed keys. For the same choices, the API price equals the website price.

A quote line returns options (the customer options used, including the defaults we filled in; safe to send back unchanged in POST /orders). Options that are set automatically are not shown, just as on the product page.

Quantity and run size

quantity is always the number of pieces. Products with quantity.pricedBy = "copies" are priced per run: 25,000 flyers is quantity 25000 and the price follows the run. Do not send options.copies; if you do, it must equal quantity, otherwise you get 422.

If a run size cannot be produced for a configuration, you get 422 with the nearest available quantity instead of a price for a different run.

Validation and errors

A malformed body returns 400 invalid_request. A well-formed request that cannot be fulfilled returns 422 with error.details: one entry per problem with line, field, code and, where useful, allowedValues or allowedKeys. A combination our print partner does not offer (for example green UV coating on 300 g silk) names the conflicting options and the compatible values. Messages are in English.

Product ids and slugs

Use the product id as the stable key in quotes, orders and your own systems. Slugs differ per language and can change. GET /products/{id} accepts the id or the slug in any language; the slugs field lists them all.

Prices and rounding

All amounts are in euro cents and line totals are authoritative. Unit prices below one cent are not rounded: unitNetPrice on a quote line and unitPrice on an order item are exact decimal strings; unitPriceCents is rounded to whole cents.

discountCents is your reseller discount on the retail price, excl. VAT, per order item and in the order totals.

Print files

fileUrl must be a public https URL of a print-ready PDF, PNG or JPG. When you place the order we read the first bytes of the file (following redirects) and check the real file type. EPS, AI, PS and SVG are accepted too when the URL ends in the matching extension; we convert them to PDF before production, which can add a short manual step. Another type, such as an .ico or an HTML page, returns 422 invalid_file_url.

Recipient contact and carriers

Carriers need an email address and phone number for delivery messages. Send recipient.email and recipient.phone so they reach your customer. If either is missing, the email or phone of your reseller account is used instead, so the carrier contacts you. Every order shows carrierContact with emailSource and phoneSource (recipient or reseller).

User-Agent

Send your own User-Agent header, for example MyShop-Integration/1.0. Some generic library defaults, such as Python’s Python-urllib/3.x, are blocked by our CDN (error 1010) before they reach the API.

Webhooks

We POST JSON to your endpoint with the headers X-Printen-Event, X-Printen-Delivery, X-Printen-Timestamp and X-Printen-Signature. Respond with a 2xx status within 10 seconds. If that fails, we retry for about 24 hours. An event can arrive more than once: dedupe on the id field.

Events

  • order.created
  • order.submitted
  • order.awaiting_funds
  • order.payment_failed
  • order.in_production
  • order.shipped
  • order.delivered
  • order.cancelled
  • order.file_problem

Verifying the signature

X-Printen-Signature is v1= followed by the hex HMAC-SHA256 of "timestamp.raw body" using your endpoint secret. Reject messages with a timestamp older than 5 minutes.

Node.js

import crypto from 'node:crypto';

export function verifyPrintenWebhook(rawBody, headers, secret) {
  const timestamp = headers['x-printen-timestamp'];
  const signature = headers['x-printen-signature'] || '';
  if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false;
  const expected = 'v1=' + crypto.createHmac('sha256', secret)
    .update(`${timestamp}.${rawBody}`).digest('hex');
  return signature.length === expected.length
    && crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected));
}

PHP

<?php
function verify_printen_webhook(string $rawBody, string $timestamp, string $signature, string $secret): bool {
    if (abs(time() - (int) $timestamp) > 300) return false;
    $expected = 'v1=' . hash_hmac('sha256', $timestamp . '.' . $rawBody, $secret);
    return hash_equals($expected, $signature);
}

Python

import hashlib, hmac, time

def verify_printen_webhook(raw_body: bytes, timestamp: str, signature: str, secret: str) -> bool:
    if abs(time.time() - int(timestamp)) > 300:
        return False
    expected = "v1=" + hmac.new(secret.encode(), timestamp.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, signature)

API usage rules

These rules keep prices fast and accurate for every reseller. By using the API you agree to them.

Purpose

  • Use the API only to sell our products to your own customers: show the catalogue and prices in your shop, take orders and track them.
  • Collecting our catalogue or prices for any other purpose (price comparison, resale of data, building a competing catalogue) is not allowed.

Limits

  • Per API key: at most 120 requests per minute.
  • Price requests (quotes) per account: 20 per minute and 600 per day for new accounts; 60 per minute and 5,000 per day for established accounts (after 30 days and 10 paid orders).
  • New orders per account: 30 per hour for new accounts, 200 per hour for established accounts.
  • Live pricing capacity is shared fairly: one account can never use more than half of it.
  • Every response carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers. Need more? Contact us.

When you receive a 429

  • Wait at least the number of seconds in the Retry-After header, then retry the same request.
  • Use exponential backoff with jitter (for example 1, 2, 4, 8 seconds plus a random part) and stop after a few attempts.
  • Never retry in a tight loop and never change the options because of a 429: the combination is valid, only the capacity is used up.

Other errors

  • Do not retry 4xx errors unchanged (400, 401, 403, 404, 409, 422): fix the request first. Every error has a stable code and a docs link.
  • 503 (price_temporarily_unavailable) and 500 may be retried later with backoff.

Caching

  • Cache catalogue data and prices for up to 24 hours.
  • Refresh fixed products once a day, spread over the day rather than all at once.
  • For custom sizes, wait until the customer stops typing (about 500 ms) before requesting a quote.
  • Request one fresh quote at checkout. The price of the order you create is binding.

API keys

  • Use one key per app or integration, so you can revoke one without stopping the others.
  • Never put a key in browser or app code; call the API from your server only.
  • Revoke a key immediately in your account if it may have leaked, and create a new one.
  • Use a test key (prk_test_) while building and testing: test orders are never produced or charged.

Enforcement

  • If usage breaks these rules we take these steps, in this order: a warning, lower limits, pausing the key, and finally suspending the account.
  • In case of abuse or a security risk we may skip steps. We always tell you why.

Version: api-rules-v1-2026-11

Errors

Every error has the shape {"error": {"code": "...", "message": "...", "details": [...], "docs": "..."}}; docs links to the explanation of the code below. 400 = malformed request; 422 = valid request that will never succeed with the same input (see details); 429 = a limit or capacity is used up, retry after Retry-After; 503 = live pricing temporarily unavailable, retry later; 500 only for a failure on our side. Amounts are always in euro cents.

CodeStatusRetry?Meaning
invalid_request400Only after fixingThe request body or query is malformed. Fix the request; do not retry it unchanged.
idempotency_key_required400Only after fixingPOST /orders needs an Idempotency-Key header.
unauthorized401Only after fixingMissing, invalid or revoked API key.
forbidden403NoThe account is not approved or is suspended.
insufficient_scope403Only after fixingThe API key does not have the scope this endpoint needs.
key_paused403NoThis API key has been paused by Printen.eu. Contact us; other keys keep working.
not_found404NoThe resource does not exist or does not belong to your account.
conflict409Only after fixingThe request conflicts with the current state of the resource.
sku_taken409Only after fixingYou already use this SKU for another reseller product.
cannot_cancel409NoThe order is already in production and can no longer be cancelled.
unknown_product422NoproductId is not a known product id or slug.
unknown_sku422NoresellerSku does not exist or is inactive.
product_unavailable422NoThe product cannot be ordered at the moment. Do not retry; check GET /products later.
combination_unavailable422Only after fixingThis combination of options is not offered. Choose other options (see GET /products/{id}).
invalid_options422Only after fixingOne or more options are unknown or have a value that is not allowed. See details.
invalid_lines422Only after fixingThe lines are missing, too many, or have an invalid quantity.
invalid_file_url422Only after fixingfileUrl is not an https URL or the file is not an accepted format.
invalid_file422Only after fixingThe design file could not be accepted.
invalid_input422Only after fixingA field (for example the recipient) is missing or invalid. See message.
unsupported_country422NoWe do not ship to this country.
size_out_of_range422Only after fixingThe custom size is outside the range this product supports.
undeliverable_size422NoThis size cannot be shipped to the destination as standard. Request a quote instead.
unprocessable422Only after fixingThe request is valid JSON but cannot be processed. See message.
rate_limited429Yes, after Retry-AfterA rate limit or the live pricing capacity is used up. Wait for Retry-After seconds, then retry the same request with exponential backoff. Never change options because of a 429.
price_temporarily_unavailable503Yes, after Retry-AfterLive pricing is temporarily unavailable. Retry after Retry-After seconds.
internal_error500Yes, after Retry-AfterSomething went wrong on our side. Retry later with backoff.

OpenAPI specification

Import the full specification (OpenAPI 3.1) into Postman, Insomnia or a code generator.

Download openapi.json