On this page
Webhooks & events
Set up an endpoint#
- In Dashboard › Webhooks, add an HTTPS URL on your server. Endpoints belong to one environment (sandbox or live) — add one for each.
- Pick the event types you want, or all of them.
- Copy the endpoint’s signing secret (
whsec_…) into your server’s secrets. - Click Send test to get a sample
order.shippedevent.
The event object#
| Field | What it is |
|---|---|
id | Unique, starts with evt_. Use it to dedupe. |
object | "event" |
type | What happened, e.g. order.shipped. |
environment | live or sandbox. |
created | When it happened (ISO 8601, UTC). |
data | For 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.
{ "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#
| Type | When |
|---|---|
order.created | We received the order. It starts in processing. |
order.rejected | The order failed checks. Includes status_reason. Never charged. |
order.awaiting_payment | The order passed checks and waits for the next charge. |
order.paid | The order was paid and is in line for production. |
order.on_hold | We paused the order. Includes status_reason. |
order.released | The hold was cleared. |
order.in_production | Production started. Includes production_stage. |
order.stage_changed | Moved between printing, cutting and packing. |
order.shipped | Handed to the carrier. Includes tracking. |
order.delivered | The carrier confirmed delivery. |
order.canceled | Canceled; anything charged was refunded. |
order.exception | Delivery exception, returned or lost. |
charge.succeeded | A charge to your card went through. Lists the orders it paid for. |
charge.failed | A 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…:
- Split it on commas; read
t(Unix seconds) andv1. - Build the signed payload:
"<t>.<raw body>"— the exact bytes you received. - Compute HMAC-SHA256 of it with your endpoint secret, hex encoded.
- Compare with
v1using a constant-time comparison. - Reject it if
tis more than 5 minutes from now (stops replays).
# Verify in your language of choice →# Signed payload: "<t>.<raw request body>"# HMAC-SHA256 with your endpoint secret, hex encoded = v1Retries 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.idand skip ones you’ve seen. - Order isn’t guaranteed. Retries can arrive after newer events. Compare
data.updated_atwith what you have, or fetch the order withGET /v1/orders/:idfor 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.
curl "https://jigsawpress.com/v1/events?type=order.shipped&limit=5" \ -H "Authorization: Bearer $CORNERPIECE_KEY"