On this page
DocsAPI reference

Orders

An order is one shipment of one or more puzzles to one address. Create it, follow it through checks, payment and production, and cancel it any time before production starts.

The order object#

Every order endpoint returns this object, and every order.* webhook event carries it in data. Money is in cents; times are UTC.

idstring
Unique id, ord_….
objectstring
Always "order".
numberstring
Our order number, like JP-10482. Printed on the packing slip; you can use it anywhere you can use id.
environmentstring
Which environment the order lives in. Set by the key that created it.
sandboxlive
sourcestring
How it was created: api or dashboard (the New order form). Orders from our own website never appear in the API.
apidashboard
external_idstring | null
Your own reference, as you sent it.
statusstring
Where the order is. See Statuses.
processingrejectedawaiting_paymentpaidon_holdin_productionshippeddeliveredcanceledexception
production_stagestring | null
While in_production: which step it is on. null otherwise.
printingcuttingpacking
status_reasonobject | null
Why an order is rejected or on_hold: {code, message}. See Reason codes.
ship_bystring | null
The day we promise to hand it to the carrier, YYYY-MM-DD in New York. Set when the order is paid. See Timing.
rushboolean
Rush production.
itemsarray
The puzzles in the order.
items[].idstring
Item id, itm_….
items[].skustring
The puzzle size. See Products.
PZL-100PZL-200PZL-1000
items[].piecesinteger
Nominal piece count of the size.
items[].quantityinteger
How many copies of this puzzle.
items[].orientationstring
How the image sits on the puzzle.
landscapeportrait
items[].titlestring | null
Printed on the box.
items[].mysteryboolean
Mystery box: the lid shows the title but not the photo.
items[].artwork.urlstring
The artwork URL you sent.
items[].artwork.fitstring
Always "cover": the crop fills the whole puzzle.
items[].artwork.cropobject | null
The crop in source pixels, {x, y, w, h}. If you did not send one, it is null until processing fills in the centered crop we used.
items[].artwork.width_pxinteger | null
Width of the image we downloaded, after EXIF rotation. Null until processed.
items[].artwork.height_pxinteger | null
Height of the image we downloaded, after EXIF rotation. Null until processed.
items[].artwork.effective_dpiinteger | null
Resolution of the crop at print size. See Resolution.
items[].artwork.qualitystring | null
Our verdict on the resolution.
goodsoftlow
items[].artwork.preflightstring
Artwork check: pending while processing, then passed, warning (prints, see warnings) or failed.
pendingpassedwarningfailed
items[].artwork.preview_urlstring | null
A JPEG preview of the cropped image, about 1200 px wide, once processed. Show it to your customer as a proof.
shipping.methodstring
usps_groundups_groundups_2day
shipping.addressobject
The shipping address. Same fields as in Create an order.
shipping.carrierstring | null
Set when shipped.
uspsups
shipping.tracking_numberstring | null
Set when shipped.
shipping.tracking_urlstring | null
The carrier tracking page. Set when shipped.
shipping.estimated_deliveryobject | null
Delivery window, {from, to} as YYYY-MM-DD.
branding.gift_messagestring | null
Printed on a card inside the box.
branding.packing_slip_fromstring | null
The sender name on the packing slip, from your Branding settings in the dashboard.
costs.currencystring
Always "usd".
costs.itemsinteger
Puzzles at list price, in cents.
costs.discountinteger
Your tier discount on puzzles. Zero or negative. See Tiers.
costs.optionsinteger
Paid options, such as a gift message.
costs.rushinteger
Rush production.
costs.shippinginteger
Shipping.
costs.taxinteger
Sales tax. Currently always 0 for API orders.
costs.totalinteger
What this order adds to your charge.
payment.statusstring
Whether this order has been paid for.
unpaidpaidrefundedpartially_refunded
payment.chargestring | null
The charge that paid it, ch_…. See Charges.
payment.paid_atstring | null
When it was paid.
payment.refunded_amountinteger
Cents refunded so far.
payment.last_errorstring | null
Why the last charge attempt failed, while it is still awaiting_payment.
warningsarray
Problems that did not stop the order, as {code, message}. For example soft artwork.
metadataobject
Your key-value pairs, as you sent them.
created_atstring
When the order was created (UTC).
updated_atstring
When anything on it last changed (UTC).
Example order · JP-10482 · in production
{  "id": "ord_k4Mn8Pq3xY2aBc",  "object": "order",  "number": "JP-10482",  "environment": "sandbox",  "source": "api",  "external_id": "KP-20922",  "status": "in_production",  "production_stage": "cutting",  "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://test-artwork.jigsawpress.com/good.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": null,    "tracking_number": null,    "tracking_url": null,    "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-01T14:37:52Z"}
POST/v1/orders

Create an order#

We validate the body, price the order and answer right away with 201 and the order in processing. Then, in the background, we download each artwork file and check it, usually within seconds. The order moves to awaiting_payment if every check passes, or to rejected with a status_reason if one fails. Either way you get a webhook.

Nothing is charged at create. Orders waiting for payment are charged together at 11 AM ET, or right away with Pay now.

Send Idempotency-Key with every create. A retry with the same key within 24 hours returns the original order instead of making a second one.
Body parameters
itemsarrayRequired
The puzzles, 1 to 50 items.
items[].skustringRequired
The puzzle size. See Products.
PZL-100PZL-200PZL-1000
items[].quantityintegerDefault 1
Copies of this puzzle, 1 to 100.
items[].artwork.urlstringRequired
An https:// URL we can download within 30 seconds: JPG, PNG, WebP or TIFF, up to 60 MB. A URL that is not https:// gets 422 artwork_url_invalid; a file we cannot download or print is rejected after create. See Artwork.
items[].artwork.cropobject
The part of the image to print, in source pixels: {"x", "y", "w", "h"} integers. Use the puzzle's shape, 7:5 (5:7 in portrait). Default: the largest centered crop. See Cropping.
items[].orientationstring
Default: landscape if the image is at least as wide as it is tall, otherwise portrait.
landscapeportrait
items[].titlestring | null
Printed on the box, up to 60 characters.
items[].mysterybooleanDefault false
Mystery box: no photo on the lid, only the title. Free.
shipping.methodstringRequired
usps_groundups_groundups_2day
shipping.address.namestringRequired
Recipient name.
shipping.address.companystring | null
Company, if any.
shipping.address.line1stringRequired
Street address.
shipping.address.line2string | null
Apartment, suite, floor.
shipping.address.citystringRequired
City.
shipping.address.statestringRequired
Two-letter state code, like PA (or DC).
shipping.address.postal_codestringRequired
ZIP code, like 19123 or 19123-4401.
shipping.address.countrystringRequired
We ship within the United States only.
US
shipping.address.phonestring | null
Recipient phone number.
shipping.address.emailstring | null
Recipient email address.
rushbooleanDefault false
Rush production: $4.00 per puzzle. See Timing.
branding.gift_messagestring | null
A printed card inside the box. No prices anywhere in the package. Up to 300 characters, $0.35 per order.
external_idstring
Your own order number. Returned on the order and filterable with GET /v1/orders?external_id=.
metadataobject
Up to 20 keys of your own. Values are strings of 500 characters or less. Returned as is; we never act on them.
POST/v1/orders
curl https://jigsawpress.com/v1/orders \  -H "Authorization: Bearer $CORNERPIECE_KEY" \  -H "Idempotency-Key: KP-20922" \  -H "Content-Type: application/json" \  -d '{  "external_id": "KP-20922",  "items": [    {      "sku": "PZL-1000",      "quantity": 1,      "title": "Sunset on the Hudson",      "mystery": false,      "orientation": "landscape",      "artwork": {        "url": "https://test-artwork.jigsawpress.com/good.jpg",        "crop": {          "x": 300,          "y": 214,          "w": 5400,          "h": 3857        }      }    }  ],  "shipping": {    "method": "usps_ground",    "address": {      "name": "Grace Kim",      "company": null,      "line1": "77 Spring Garden St",      "line2": "Apt 4F",      "city": "Philadelphia",      "state": "PA",      "postal_code": "19123",      "country": "US",      "phone": null,      "email": null    }  },  "rush": false,  "branding": {    "gift_message": "Happy birthday, Mom. Love, Sam and Leo"  },  "metadata": {    "customer_id": "cus_48213"  }}'
201 CreatedReturns the order in processing
{  "id": "ord_k4Mn8Pq3xY2aBc",  "object": "order",  "number": "JP-10482",  "environment": "sandbox",  "source": "api",  "external_id": "KP-20922",  "status": "processing",  "production_stage": null,  "status_reason": null,  "ship_by": null,  "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://test-artwork.jigsawpress.com/good.jpg",        "fit": "cover",        "crop": {          "x": 300,          "y": 214,          "w": 5400,          "h": 3857        },        "width_px": null,        "height_px": null,        "effective_dpi": null,        "quality": null,        "preflight": "pending",        "preview_url": null      }    }  ],  "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": null,    "tracking_number": null,    "tracking_url": null,    "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": "unpaid",    "charge": null,    "paid_at": null,    "refunded_amount": 0,    "last_error": null  },  "warnings": [],  "metadata": {    "customer_id": "cus_48213"  },  "created_at": "2026-11-30T14:02:11Z",  "updated_at": "2026-11-30T14:02:11Z"}
400 Bad RequestA required field is missing
{  "error": {    "type": "invalid_request_error",    "code": "parameter_missing",    "message": "items[0].artwork.url is required.",    "param": "items[0].artwork.url",    "request_id": "req_Xb4Nq8Lm2Rt7Vw"  }}
GET/v1/orders/:id

Retrieve an order#

Pass the order id (ord_k4Mn8Pq3xY2aBc) or its number (JP-10482). Orders from the other environment, or from another account, return 404 resource_missing.

GET/v1/orders/JP-10482
curl https://jigsawpress.com/v1/orders/JP-10482 \  -H "Authorization: Bearer $CORNERPIECE_KEY"
200 OKReturns the order
{  "id": "ord_k4Mn8Pq3xY2aBc",  "object": "order",  "number": "JP-10482",  "environment": "sandbox",  "source": "api",  "external_id": "KP-20922",  "status": "awaiting_payment",  "production_stage": null,  "status_reason": null,  "ship_by": null,  "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://test-artwork.jigsawpress.com/good.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": null,    "tracking_number": null,    "tracking_url": null,    "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": "unpaid",    "charge": null,    "paid_at": null,    "refunded_amount": 0,    "last_error": null  },  "warnings": [],  "metadata": {    "customer_id": "cus_48213"  },  "created_at": "2026-11-30T14:02:11Z",  "updated_at": "2026-11-30T14:02:19Z"}
GET/v1/orders

List orders#

Returns your orders in this environment, newest first, as {"object": "list", "data": [...], "has_more": true}. To get the next page, pass the id of the last order you received as starting_after. Stop when has_more is false.

Query parameters
statusstring
Only orders in this status.
processingrejectedawaiting_paymentpaidon_holdin_productionshippeddeliveredcanceledexception
external_idstring
Only orders with this external_id.
limitintegerDefault 25
Page size, 1 to 100.
starting_afterstring
An order id. Returns the orders that come after it in the list.
GET/v1/orders
curl "https://jigsawpress.com/v1/orders?status=awaiting_payment&limit=100" \  -H "Authorization: Bearer $CORNERPIECE_KEY"
200 OKA page of orders
{  "object": "list",  "data": [    {      "id": "ord_k4Mn8Pq3xY2aBc",      "object": "order",      "number": "JP-10482",      "environment": "sandbox",      "source": "api",      "external_id": "KP-20922",      "status": "awaiting_payment",      "production_stage": null,      "status_reason": null,      "ship_by": null,      "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://test-artwork.jigsawpress.com/good.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": null,        "tracking_number": null,        "tracking_url": null,        "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": "unpaid",        "charge": null,        "paid_at": null,        "refunded_amount": 0,        "last_error": null      },      "warnings": [],      "metadata": {        "customer_id": "cus_48213"      },      "created_at": "2026-11-30T14:02:11Z",      "updated_at": "2026-11-30T14:02:19Z"    }  ],  "has_more": false}
POST/v1/orders/:id/cancel

Cancel an order#

You can cancel an order while it is processing, awaiting_payment, paid or on_hold. Once production starts it is too late: the call returns 409 order_not_cancelable, as it does for orders that are already shipped, delivered, rejected or canceled.

  • If the order was not paid yet, it is simply dropped from the next charge.
  • If it was paid, we refund its costs.total to the card it was charged to. payment.status becomes refunded.
  • You get an order.canceled webhook.

The request takes no body.

POST/v1/orders/ord_k4Mn8Pq3xY2aBc/cancel
curl -X POST https://jigsawpress.com/v1/orders/ord_k4Mn8Pq3xY2aBc/cancel \  -H "Authorization: Bearer $CORNERPIECE_KEY"
200 OKCanceled and refunded
{  "id": "ord_k4Mn8Pq3xY2aBc",  "object": "order",  "number": "JP-10482",  "environment": "sandbox",  "source": "api",  "external_id": "KP-20922",  "status": "canceled",  "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://test-artwork.jigsawpress.com/good.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": null,    "tracking_number": null,    "tracking_url": null,    "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": "refunded",    "charge": "ch_9Tq4Wm2Xc8Rb5K",    "paid_at": "2026-11-30T16:00:04Z",    "refunded_amount": 2565,    "last_error": null  },  "warnings": [],  "metadata": {    "customer_id": "cus_48213"  },  "created_at": "2026-11-30T14:02:11Z",  "updated_at": "2026-11-30T17:20:41Z"}
409 ConflictAlready in production
{  "error": {    "type": "invalid_request_error",    "code": "order_not_cancelable",    "message": "This order is already in production and can no longer be canceled.",    "param": null,    "request_id": "req_Xb4Nq8Lm2Rt7Vw"  }}
POST/v1/quotes

Get a quote#

Takes the same body as Create an order and returns what it would cost, without creating anything or downloading the artwork. lines show list prices; your tier discount is in costs.discount.

ship_by and estimated_delivery assume the order would be paid at the next daily charge. Use them to show your customer a delivery date at checkout.

Returns
objectstring
Always "quote".
linesarray
One per item: {sku, quantity, unit, amount}, list prices in cents.
costsobject
Same shape as an order’s costs.
ship_bystring
YYYY-MM-DD, if paid at the next daily charge.
estimated_deliveryobject
{from, to}, YYYY-MM-DD.
POST/v1/quotes
curl https://jigsawpress.com/v1/quotes \  -H "Authorization: Bearer $CORNERPIECE_KEY" \  -H "Content-Type: application/json" \  -d '{  "items": [    {      "sku": "PZL-1000",      "quantity": 1,      "title": "Sunset on the Hudson",      "mystery": false,      "orientation": "landscape",      "artwork": {        "url": "https://test-artwork.jigsawpress.com/good.jpg",        "crop": {          "x": 300,          "y": 214,          "w": 5400,          "h": 3857        }      }    }  ],  "shipping": {    "method": "usps_ground",    "address": {      "name": "Grace Kim",      "company": null,      "line1": "77 Spring Garden St",      "line2": "Apt 4F",      "city": "Philadelphia",      "state": "PA",      "postal_code": "19123",      "country": "US",      "phone": null,      "email": null    }  },  "rush": false,  "branding": {    "gift_message": "Happy birthday, Mom. Love, Sam and Leo"  }}'
200 OKThe price and dates
{  "object": "quote",  "environment": "sandbox",  "lines": [    {      "sku": "PZL-1000",      "quantity": 1,      "unit": 1990,      "amount": 1990    }  ],  "costs": {    "currency": "usd",    "items": 1990,    "discount": 0,    "options": 35,    "rush": 0,    "shipping": 540,    "tax": 0,    "total": 2565  },  "charge_at": "2026-11-30T16:00:00Z",  "ship_by": "2026-12-01",  "estimated_delivery": {    "from": "2026-12-02",    "to": "2026-12-04"  }}