On this page
DocsAPI reference

Webhooks & events

Every time an order changes, we create an event and POST it, signed, to your endpoints. No polling needed.

Set up an endpoint#

  1. In Dashboard › Webhooks, add an HTTPS URL on your server. Endpoints belong to one environment (sandbox or live) — add one for each.
  2. Pick the event types you want, or all of them.
  3. Copy the endpoint’s signing secret (whsec_…) into your server’s secrets.
  4. Click Send test to get a sample order.shipped event.

The event object#

FieldWhat it is
idUnique, starts with evt_. Use it to dedupe.
object"event"
typeWhat happened, e.g. order.shipped.
environmentlive or sandbox.
createdWhen it happened (ISO 8601, UTC).
dataFor order.* events: the full order object, as it was right after the change. For charge.*: the charge object.

Request headers: JigsawPress-Signature, JigsawPress-Event-Id, JigsawPress-Delivery-Attempt, Content-Type: application/json, User-Agent: JigsawPress-Webhooks/1.0.

POST to your endpoint · JigsawPress-Signature: t=…,v1=…
{  "id": "evt_2Lr7Nb4Kq9Xs3D",  "object": "event",  "type": "order.shipped",  "environment": "live",  "created": "2026-12-01T21:15:08Z",  "data": {    "id": "ord_k4Mn8Pq3xY2aBc",    "object": "order",    "number": "JP-10482",    "environment": "live",    "source": "api",    "external_id": "KP-20922",    "status": "shipped",    "production_stage": null,    "status_reason": null,    "ship_by": "2026-12-01",    "rush": false,    "items": [      {        "id": "itm_7Hc2Lw9Rt4Vx3N",        "sku": "PZL-1000",        "pieces": 1000,        "quantity": 1,        "orientation": "landscape",        "title": "Sunset on the Hudson",        "mystery": false,        "artwork": {          "url": "https://files.example.com/photos/hudson-sunset.jpg",          "fit": "cover",          "crop": {            "x": 300,            "y": 214,            "w": 5400,            "h": 3857          },          "width_px": 6000,          "height_px": 4286,          "effective_dpi": 279,          "quality": "good",          "preflight": "passed",          "preview_url": "https://firebasestorage.googleapis.com/v0/b/puzzle-printing-ny.firebasestorage.app/o/artwork%2Ford_k4Mn8Pq3xY2aBc%2Fitm_7Hc2Lw9Rt4Vx3N%2Fpreview.jpg?alt=media&token=3f9c1a52-8d4e-4b6a-9e1f-2c7d5b8a0e64"        }      }    ],    "shipping": {      "method": "usps_ground",      "address": {        "company": null,        "line2": "Apt 4F",        "phone": null,        "email": null,        "name": "Grace Kim",        "line1": "77 Spring Garden St",        "city": "Philadelphia",        "state": "PA",        "postal_code": "19123",        "country": "US"      },      "carrier": "usps",      "tracking_number": "9400111899223077114321",      "tracking_url": "https://tools.usps.com/go/TrackConfirmAction?tLabels=9400111899223077114321",      "estimated_delivery": {        "from": "2026-12-02",        "to": "2026-12-04"      }    },    "branding": {      "gift_message": "Happy birthday, Mom. Love, Sam and Leo",      "packing_slip_from": "Kindred Prints"    },    "costs": {      "currency": "usd",      "items": 1990,      "discount": 0,      "options": 35,      "rush": 0,      "shipping": 540,      "tax": 0,      "total": 2565    },    "payment": {      "status": "paid",      "charge": "ch_9Tq4Wm2Xc8Rb5K",      "paid_at": "2026-11-30T16:00:04Z",      "refunded_amount": 0,      "last_error": null    },    "warnings": [],    "metadata": {      "customer_id": "cus_48213"    },    "created_at": "2026-11-30T14:02:11Z",    "updated_at": "2026-12-01T21:15:08Z"  }}

Event types#

TypeWhen
order.createdWe received the order. It starts in processing.
order.rejectedThe order failed checks. Includes status_reason. Never charged.
order.awaiting_paymentThe order passed checks and waits for the next charge.
order.paidThe order was paid and is in line for production.
order.on_holdWe paused the order. Includes status_reason.
order.releasedThe hold was cleared.
order.in_productionProduction started. Includes production_stage.
order.stage_changedMoved between printing, cutting and packing.
order.shippedHanded to the carrier. Includes tracking.
order.deliveredThe carrier confirmed delivery.
order.canceledCanceled; anything charged was refunded.
order.exceptionDelivery exception, returned or lost.
charge.succeededA charge to your card went through. Lists the orders it paid for.
charge.failedA charge to your card failed. Those orders stay in awaiting_payment.

Verify signatures#

Every request has a JigsawPress-Signature header like t=1764701708,v1=5f8c…:

  1. Split it on commas; read t (Unix seconds) and v1.
  2. Build the signed payload: "<t>.<raw body>" — the exact bytes you received.
  3. Compute HMAC-SHA256 of it with your endpoint secret, hex encoded.
  4. Compare with v1 using a constant-time comparison.
  5. Reject it if t is more than 5 minutes from now (stops replays).
Use the raw body
Frameworks that parse JSON first change the bytes (spacing, key order) and the signature won’t match.
Verify a webhook
# Verify in your language of choice →# Signed payload: "<t>.<raw request body>"# HMAC-SHA256 with your endpoint secret, hex encoded = v1

Retries and timeouts#

Reply with any 2xx within 10 seconds. Anything else (or a timeout) is retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 8 hours and 24 hours — 7 attempts in all — and then marked failed. You can see every attempt, with your response code and body, in Dashboard › Webhooks, and send any delivery again from there.

Ordering and duplicates#

  • Duplicates happen. A retry after a slow 200 delivers the same event again. Store event.id and skip ones you’ve seen.
  • Order isn’t guaranteed. Retries can arrive after newer events. Compare data.updated_at with what you have, or fetch the order with GET /v1/orders/:id for the current state.

Send a test event#

Send test in the dashboard posts a realistic order.shipped event, signed with that endpoint’s secret, and shows you the response. Test events aren’t stored in the events list. In the sandbox you can also drive real events by simulating an order forward.

Events API#

Missed something? GET /v1/events lists your events, newest first, with optional type, plus limit and starting_after. GET /v1/events/evt_2Lr7Nb4Kq9Xs3D returns one.

GET/v1/events
curl "https://jigsawpress.com/v1/events?type=order.shipped&limit=5" \  -H "Authorization: Bearer $CORNERPIECE_KEY"