API ordering & operations

The proof is the artwork agreement. The shop is the order authority.

Two separate purchases exist: a merchant’s StickerSpace SaaS subscription has no shipping; a shopper’s physical sticker order may have shipping and tax in the merchant’s store.

  1. Open an editor session. For an ordering integration, your backend creates the session and stores its token against the shopper’s server session. Return the builder URL and an opaque launch reference to the browser. WooCommerce implements this pattern.
  2. Design and approve. The customer selects specifications and quantities, uploads artwork, acknowledges low/unverified resolution when required and approves every design. StickerSpace stores an immutable proof with pricing, artwork hashes and approval wording/time.
  3. Verify the handoff. The iframe notifies the parent. The browser sends proof ID/hash and the launch reference to your server. Your server retrieves its own stored session token and verifies the proof using the store API key. Browser totals and identifiers alone are insufficient.
  4. Create the cart line. Use the verified CAD amount in cents, supported product mapping and one batch quantity. Save proof ID/hash, design summary and approval evidence. Apply tax, shipping and intended discounts once in the shop.
  5. Take payment. The shop/gateway creates and settles the order. A redirect, proof approval or manual dashboard status is not payment verification.
  6. Release production. An authorized staff member verifies the paid order, downloads the correct proof’s files and chooses the tested machine profile/layout. Keep the production record linked to that proof version.
  7. Fulfil and communicate. Manage shipment, notifications, cancellations and refunds in the shop. Current StickerSpace job statuses are manual and do not synchronize these actions.

Current server contract

Base URL: your configured StickerSpace service origin. Never put a server API key in browser JavaScript, line-item properties, emails or public logs. API keys are store-scoped and shown once.

POST /api/v1/stores/STORE_ID/sessions
Origin: https://your-shop.example
Content-Type: application/json

{}

The session endpoint requires an enabled store and allowed origin; an origin header is not shopper authentication. Store the returned token on your server for the correct shopper. Launch the returned builder URL in the customer’s browser. Editor tokens expire after two hours and are bearer credentials; avoid logging URLs containing them.

POST /api/v1/integrations/verify-proof
Authorization: Bearer YOUR_SERVER_API_KEY
Content-Type: application/json

{
  "proofId": "PROOF_ID",
  "proofHash": "PROOF_HASH",
  "sessionToken": "TOKEN_FROM_YOUR_SERVER_SESSION"
}

The API checks store, proof hash and originating unexpired session, and rejects internal staff jobs. Use the returned totalCents, currency, designs and approval details. Reject unsupported currency/status and malformed amounts. A plain GET of a known proof is suitable for authorized retrieval, but does not establish that this shopper owns its originating session.

GET /api/v1/proofs/PROOF_ID
GET /api/v1/proofs/PROOF_ID/production/0?layout=sheet&sizing=auto
Authorization: Bearer YOUR_SERVER_API_KEY

Design indices start at zero. Download options also include machine=PROFILE_ID, layout=approved|individual|sheet, content=combined|artwork|cutlines, cut=true|false, perf=true|false and fixed sheet width/height in inches. These are production overrides; they do not change approved artwork or price. Never return private files to an unauthenticated shopper merely because they know the proof ID.

Payment access boundary: the Woo plugin gates its production PDF action on Woo payment status. StickerSpace merchant/API downloads do not independently query the payment provider. An integration must enforce its own paid-order and user permissions before proxying a download.

State ownership

RecordMeaningAuthority
approved_unpaidCustomer artwork approval saved; immutable proof statusStickerSpace proof
Pending / paid / refundedCommercial payment stateStorefront + gateway
New / in production / ready / completedWork queue progress entered by staffStickerSpace manual job record today
Fulfilled / shippedDelivery and trackingStorefront today
internal_savedStaff-reviewed internal job, not customer consentStickerSpace internal tool

Failures, retries and edits

Planned synchronization contract

No external paid-order write API or outbound shop webhooks are implemented yet. Future adapters must authenticate incoming events, store unique event IDs, handle duplicates and out-of-order delivery, retry transient failures and periodically reconcile against the shop. Proposed records should bind platform, shop, order and line IDs to immutable proof ID/hash, currency, amount and payment/fulfilment state. Staff should see failed syncs and be able to retry without creating a second order.

Customer data and retention

StickerSpace stores prepared artwork, previews, specifications, approvals and entered contact details; Woo stores proof references and an order snapshot. Files stay private in StickerSpace. Automated retention/deletion and merchant self-service erasure are not implemented. Establish a documented retention policy, support process and disclosure before production use; do not promise automatic deletion or indefinite archival. Keep service access active for old-order downloads and define a controlled backup/export process.

See the Beta feedbackAPI reference for current errors, limits and endpoint details. Additive v1 changes should remain compatible; breaking contracts need a new version and adapter migration tests.