Printcore API (1.0)

Jobs, quotes, customers, files, products, inventory and webhooks for print shops on Printcore.

The Printcore API connects your storefronts, apps and automations to a print shop's Printcore account. Create jobs and quotes, keep customers and your price list in sync, attach artwork, and get a webhook the moment work moves through the shop.

Getting started

  1. Get a key. In Printcore, open Shop Settings → API & Webhooks → Generate API Key. Pick Read & Write to create records, or Read Only to look things up. The key is shown once.

  2. Make a call. Send the key in the X-API-Key header:

    curl "https://us-central1-quickbooks-app-c5298.cloudfunctions.net/api/v1/jobs?limit=5" \
      -H "X-API-Key: pk_live_your_key_here"
    
  3. Building an app for many shops? Use OAuth 2.0 ("Connect with Printcore") instead of asking each shop for a key. Email [email protected] to register your app.

  4. Want to try things safely? Ask for access to the sandbox shop: a Pro shop full of fake customers, jobs and stock that is reset regularly.

The API is part of the Pro, Studio and Enterprise plans. A key or token from a shop on another plan gets 403 FEATURE_NOT_IN_PLAN.

Authentication

Every request needs one of these.

API key (one shop, your own integration). Send X-API-Key: pk_live_…. Make keys in Shop Settings → API & Webhooks. Read Only keys read jobs, quotes, customers, files, products and inventory; Read & Write keys can also create and change them and manage webhooks; AI keys add use:ai. Keep keys on your server, never in a web page or an app customers download.

OAuth 2.0 (an app that many shops connect). Authorization code with PKCE (S256 only):

  1. Send the shop owner to https://app.printcore.ai/oauth/authorize with response_type=code, your client_id, an exact registered redirect_uri, the scopes you need (space-separated), a state, and code_challenge + code_challenge_method=S256.
  2. They sign in and choose Allow (shop admins and owners on Pro, Studio or Enterprise only). The browser comes back to redirect_uri?code=…&state=…. The code works once, for 10 minutes.
  3. POST https://app.printcore.ai/oauth/token with grant_type=authorization_code, the code, redirect_uri and code_verifier, authenticating with your client id and secret.
  4. Call the API with Authorization: Bearer pca_…. Access tokens last 1 hour. Get a new one with grant_type=refresh_token; refresh tokens (pcr_…) last 90 days and are replaced on every use. Sending an old refresh token again disconnects the app.

The shop can disconnect your app any time in Settings → Integrations → Connected apps; its tokens and webhook subscriptions stop at once. Server metadata: https://app.printcore.ai/.well-known/oauth-authorization-server.

ScopeLets the app
read:jobsSee jobs, job files and production steps
write:jobsCreate and update jobs and attach files
read:quotesSee quotes
write:quotesCreate quotes
read:customersSee customers and their contacts
write:customersAdd customers
read:inventorySee materials and stock levels
read:productsSee products and the price list
write:productsAdd and update products
manage:webhooksSubscribe to events (each event also needs its read scope)
write:actualsRecord production times and material used (the Production connector key type)

use:ai is never offered to OAuth apps, because AI calls use the shop's own credits.

Errors: a bad, expired or revoked token gets 401 with code: INVALID_TOKEN; a missing scope gets 403 with code: INSUFFICIENT_SCOPE and requiredScope; a shop whose plan doesn't include the API gets 403 with code: FEATURE_NOT_IN_PLAN.

Requests and responses

  • Send JSON with Content-Type: application/json. Successful responses wrap the result in data.
  • Dates are ISO 8601 strings. Due dates are plain YYYY-MM-DD. Money is in the shop's own currency.
  • Errors return a status code and { "error": "message", "code": "OPTIONAL_CODE" }. The message says what to fix.
  • A key or token only ever sees its own shop. Anything from another shop answers 404.

Paging

List endpoints return up to limit records (default 25, max 100) and a pagination object. When hasMore is true, pass nextCursor as cursor to get the next page.

Limits

WhatLimit
Requests per key or connected app60 per minute (429 above that)
AI requests (/v1/ai/*)20 per minute
Records per list page100
Line items per job50
File links per request20
Upload size2 GB per file
Products per sync100
Webhooks per shop50
Servers
Production
https://us-central1-quickbooks-app-c5298.cloudfunctions.net/api