Order cards and keepsakes through the WHCC API. You create one from its product and a WHCC design, design it in the WHCC card editor, then check it's finished and submit it like any other item.
Designs and customization must be done inside the card editor. The API creates and prices a card or keepsake from a WHCC design, and you, or your customer if you send them in, add the photos and words in the editor before it can be ordered. The edit link in Step 4 opens it, for whoever is designing.
These products use the card editor. See Cards, Keepsakes and Ornaments on whcc.com for sizes, papers and finishes.
| Product | Catalog ref (the productId you create with) |
kind |
|---|---|---|
| 5x7 Flat Card Horizontal | 5x7-horizontal-flat-card | card |
| 5x7 Flat Card Vertical | 5x7-vertical-flat-card | card |
| 5x7 Folded Card Horizontal | 5x7-horizontal-folded-card | card |
| 5x7 Folded Card Vertical | 5x7-vertical-folded-card | card |
| Acrylic Ornament | acrylic-ornament | ornament |
| Bamboo Ornament | bamboo-ornament | ornament |
| Circle Framed Ornament | circle-framed-ornament | ornament |
| Horizontal Framed Ornament | horizontal-framed-ornament | ornament |
| Vertical Framed Ornament | vertical-framed-ornament | ornament |
| 11oz Mug | 11oz-mug | keepsake |
| 15oz Mug | 15oz-mug | keepsake |
| 19oz Travel Mug | 19oz-travel-mug | keepsake |
| Metal Keychain | metal-keychain | keepsake |
| Circle Metal Keychain | circle-metal-keychain | keepsake |
| Small Acrylic Keychain | small-acrylic-keychain | keepsake |
| Large Acrylic Keychain | large-acrylic-keychain | keepsake |
| Small Bag Tag | small-bag-tag | keepsake |
| Large Bag Tag | large-bag-tag | keepsake |
| 5x7 Horizontal Designer Acrylic Block | 5x7-horizontal-acrylic-block | keepsake |
| 5x7 Vertical Designer Acrylic Block | 5x7-vertical-acrylic-block | keepsake |
| 5x10 Designer Acrylic Block | 5x10-horizontal-acrylic-block | keepsake |
designId is the only choice you have to make before the create call. The product detail lists every other option, says which are required, and gives each a standard default. Anything you leave out gets its default. Choose the rest in the editor.This guide covers two things you can build. Most integrations only need the first.
designId, create the item, send whoever is designing into the editor, then calculate, submit and follow the order. That's Steps 1 to 8 below. Step 2 shows the two calls that find a designId.designId.Everything a card or keepsake shares with a print, from your API keys to the submission and the events that follow it, works as the Quick Start describes, and this guide links there rather than repeating it. Editor Handoff covers the edit link and the return from the editor, which cards and keepsakes share with albums and books. The examples use a flat card; the steps are the same for each product in the table.
Building with an agent? Give it the prompt on Build Cards & Keepsakes with an Agent and a test key, and it orders a test card, with you designing the card in the editor.
Before you start, you need what the Quick Start lists: a test key from Connected Accounts and a ship-to address. The examples use the test host, https://, and every path below is relative to it. Send a WHCC-API-Version: 2026-10 header on every request; see API Versions. The examples come from two test cards, so the ids in Steps 4 to 7 differ from Step 3's. Whoever designs the card or keepsake needs a browser, and your application needs an https:// page for the editor to send them back to.
/v1/catalog/productsLists the products your account can order, the same call as Quick Start Step 1. Ask for limit=200, follow nextCursor to the end, and keep the products whose ref is in the table above. Match on ref: kind doesn't pick these products out, because keepsake also covers the album and print boxes, which use the Album Editor (see Albums & Books), and card covers products this guide doesn't.
1
2
3
curl "https://apis-stage.whcc.com/api/v1/catalog/products?limit=200" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "WHCC-API-Version: 2026-10"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"ref": "5x7-horizontal-flat-card",
"name": "5x7 Flat Card Horizontal",
"completion": "editor",
"actions": {
"detail": { "url": "https://apis-stage.whcc.com/api/v1/catalog/products/5x7-horizontal-flat-card", "method": "GET" }
},
"category": { "ref": "press-printed-cards", "name": "Press Printed Cards" },
"kind": "card",
"width": 7,
"height": 5,
"aspect": "landscape",
"resolution": 300,
"bleed": 0.25,
"quantity": { "min": 25, "max": 5000, "step": 5, "default": 25 },
"requirements": { "requiresDesign": true, "requiresImage": true, "workflow": "editor_required" }
}
These fields tell you what the product needs:
completion: "editor". It's finished in the WHCC editor before it can be ordered.requirements.requiresDesign: true. Creating it takes a designId, which you choose in Step 2.quantity. Cards are ordered in packs: at least 25, in steps of 5 counted from the minimum (25, 30, 35, and so on). Ornaments and keepsakes are ordered one at a time, 1 to 100. Read the numbers from the catalog rather than hard-coding them.GET /v1/catalog/products/{ref} gives the product's configuration.fields[]: every option, whether it's required, and its default. You only need it if you're choosing options before the create call.
Every card and keepsake is made from one WHCC design. To find a designId, list the tags for your product, then list the designs that carry a tag. Design Catalog has every parameter and field, and how to draw your own grid from them.
/v1/catalog/designs/tags1
2
3
curl "https://apis-stage.whcc.com/api/v1/catalog/designs/tags?products=5x7-horizontal-flat-card" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "WHCC-API-Version: 2026-10"
1
2
3
{
"tags": ["announcement", "baby", "birthday", "christmas", "floral", "graduation", "holiday", "minimal", "modern", "popular", "thankyous", "wedding", "…"]
}
If it returns tags: [], the product has no designs yet. Some keepsakes, such as the bag tags and mugs, have a single blank design today, listed under the product's own tag (for example bagtag or mug).
/v1/catalog/designsLists the designs that carry every tag you send, for the products you send. products and tags are both required, unless you send family instead of tags.
1
2
3
curl "https://apis-stage.whcc.com/api/v1/catalog/designs?products=5x7-horizontal-flat-card&tags=holiday&limit=5" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "WHCC-API-Version: 2026-10"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"designs": [
{
"id": "Z7q598rP88YARGYQJ",
"primaryDisplayName": "Joy Border",
"secondaryDisplayName": null,
"familyId": "YyZC47vZ7RzhKmFAX",
"formats": ["flat", "folded"],
"baseImages": {
"front": {
"previewUrl": "https://designs.dragdrop.design/previews/Z7q598rP88YARGYQJ/10000/layout_1_sherwood%20forest_UJZHV.jpg",
"smallUrl": "https://designs.dragdrop.design/previews/Z7q598rP88YARGYQJ/10000/layout_1_sherwood%20forest_UJZHV_small.jpg"
},
"back": {
"smallUrl": "https://designs.dragdrop.design/previews/Z7q598rP88YARGYQJ/10001/layout_1_sherwood%20forest_S2UUN_small.jpg"
}
},
"productRefs": ["5x7-horizontal-flat-card"],
"foil": { "5x7-horizontal-flat-card": "available" },
"defaultSelections": {
"5x7-horizontal-flat-card": { "shapes": "e16", "foil_pressed_designs": "no", "foil_pressed_foil_color": "silver" }
},
"themes": [ { "…": "10 colorways" } ],
"actions": {
"detail": { "url": "/api/v1/catalog/designs/Z7q598rP88YARGYQJ?products=5x7-horizontal-flat-card", "method": "GET" }
}
},
{ "…": "4 more designs" }
],
"totalCount": 308,
"ordering": "curated",
"products": { "5x7-horizontal-flat-card": { "…": "size and shapes, for drawing your own grid" } },
"nextCursor": "eyJ2IjoxLCJzIjoiY3VyYXRlZCIs…"
}
Each row has a name and artwork images to show, and its id is the designId you send in Step 3. That's all ordering needs. The rest of the row, the response's products, and the design detail route are for building your own grid.
/v1/commerce/configured-productsCreates the item from a product and a design, through the same route as Quick Start Step 4. These rules replace the Quick Start's "send every field the product lists" for cards and keepsakes:
selections. "selections": {} is a complete create. Every option you leave out gets the product's default, and the quantity gets the catalog's quantity.default. selections itself is required: if it's missing, WHCC returns 400 naming configuredProducts.N.selections.designId is required. If it's missing, WHCC returns 400 with the title designId is required for card products: followed by the product ids. The design has to exist and apply to the product.selections by its field name from the product's configuration.fields[]. Don't send every catalog default: defaults for different fields can conflict. A flat card's default insert color, triple_thick_matte_inserts: "white", applies only to triple-thick paper, so sending it with the default paper returns 400 with 'white' can't be combined with the other selections on this product. Remove it or change the selection it conflicts with.quantity fits the product. A card's selections.quantity is at least 25, in steps of 5; an ornament's or keepsake's is 1 to 100. If it doesn't fit, WHCC returns 400 naming configuredProducts.N.selections.quantity, with a reason such as 'quantity' must be at least 25. or 'quantity' must be 25 or more, in steps of 5.redirects. Where the editor sends whoever is designing is set when you ask for the edit link. If you send redirects here, WHCC returns 400.requiresImage: true, but you can create the item without images and add photos in the editor. Photos you do send wait in the editor's photo pool. None is placed for you.400 with the title A request may include at most 20 editor-completed products. If it mixes these products with products marked completion: "api", WHCC returns 400 with a title that starts A request must be either all simple-editor products or all editor-completed products, not a mix:. Nothing is created in either case.productId is WHCC's internal product id, not the ref you sent. If you need to know which item is which, create one per request.1
2
3
4
5
6
7
8
9
10
11
12
13
curl https://apis-stage.whcc.com/api/v1/commerce/configured-products \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "WHCC-API-Version: 2026-10" \
-H "Content-Type: application/json" \
-d '{
"configuredProducts": [
{
"productId": "5x7-horizontal-flat-card",
"designId": "Z7q598rP88YARGYQJ",
"selections": {}
}
]
}'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"totalPrice": { "value": "23.00", "code": "USD", "total": { "value": "23.00", "code": "USD" } },
"items": [
{
"configuredProductId": "2Gmb3becegmQpzcZC",
"productId": "benT9erT8BwHrn6Ws",
"quantity": 25,
"selectionsSummary": [
{ "id": "paper_types", "label": "paper_types", "name": "paper", "description": "smooth matte paper" },
{ "id": "envelopes", "label": "envelopes", "name": "envelope style", "description": "white envelopes" }
],
"unitPrice": { "value": "0.92", "code": "USD" },
"totalPrice": { "value": "23.00", "code": "USD" },
"metadata": {},
"status": "awaiting-editor",
"validationSummary": [
{ "id": 1153, "level": "error", "message": "Missing photos: no design has been applied to this card" }
],
"links": {
"proof": "https://share-stage.prints.io/e/2Gmb3becegmQpzcZC/…",
"designSpaceProof": "https://share-stage.prints.io/e/2Gmb3becegmQpzcZC/…",
"placementProof": "https://share-stage.prints.io/e/2Gmb3becegmQpzcZC/…"
}
}
],
"actions": {
"submit": {
"instructions": "All items are ready. Build a new submission request referencing items[].configuredProductId and call POST /v1/commerce/submissions with a unique Idempotency-Key header to place the order …",
"url": "https://apis-stage.whcc.com/api/v1/commerce/submissions",
"method": "POST"
},
"calculate": {
"instructions": "Optional. To see what the order will cost before placing it, call POST actions.calculate.url with the same body you would send to actions.submit.url. …",
"url": "https://apis-stage.whcc.com/api/v1/commerce/submissions/calculate",
"method": "POST"
}
}
}
A create answers 202, and each item reads status: "awaiting-editor": it exists and has a starting price, but it still has to be designed. Its validationSummary says what's missing. Keep its configuredProductId. You use it for the edit link, the price check and the submission. The price here comes before the design's defaults and before any change in the editor, so show the price from calculate. The item has no editor link and no actions of its own, and the response has no actions.poll.
Root actions.submit doesn't mean ready here. The create response carries actions.submit and actions.calculate even though nobody has opened the editor yet, and the submit instructions say all items are ready. Ignore that. Send whoever is designing to the editor, and submit only once they've finished.
/v1/commerce/configured-products/{configuredProductId}/edit-linkReturns a link that opens one card or keepsake in the WHCC editor. Editor Handoff has the request, the redirect rules and the errors. For cards and keepsakes, these matter most:
complete and cancel are required. Put %EDITOR_ID% in the complete url, so you know which item came back, and use https for both.text. The card editor labels its finish button with complete.text and has no label of its own, so an empty string shows a blank button.hidePricing, disableUploads, addToProject and presentationMode. The other settings the Quick Start lists are accepted and have no effect in the card editor.1
2
3
4
5
6
7
8
9
10
11
curl -X POST https://apis-stage.whcc.com/api/v1/commerce/configured-products/DwZvGFCLkpAXYvdme/edit-link \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "WHCC-API-Version: 2026-10" \
-H "Content-Type: application/json" \
-d '{
"redirects": {
"complete": { "text": "Back to my cart", "url": "https://yourdomain.com/return?checkout=12345&item=%EDITOR_ID%&t=<ONE_TIME_TOKEN>" },
"cancel": { "text": "Cancel", "url": "https://yourdomain.com/cart?checkout=12345" }
},
"settings": { "hidePricing": true }
}'
1
2
3
4
5
{
"actions": {
"edit": { "url": "https://editor-stage.dragdrop.design/editor/DwZvGFCLkpAXYvdme?token=…", "method": "GET" }
}
}
Open actions.edit.url in the browser of whoever is designing.
You, or your customer if you sent them in, personalize the item in the WHCC editor, and the editor sends you back. Here's what that takes:
complete.text. If anything is left, a list of issues opens, and Let's Fix It goes to the first one.complete url. The editor waits for the work and any photo uploads to save, then sends the browser there with a GET, %EDITOR_ID% filled in. The back arrow goes to your cancel url without any checks.The redirect to your complete url is how you know the item was finished, so record it. Finishing sends nothing else to WHCC or to you, and if the tab is closed, you won't hear from the editor at all.
An item is finished when the editor sends the browser back to your complete url. Record that per item, with a one-time token so an old return can't be replayed, as Editor Handoff describes, and submit only items you've marked finished. When you send someone back into a finished item, clear its mark and its price until the editor returns them again. If they left through cancel or closed the tab, the item isn't finished: ask for a fresh edit link and send them back.
An unfinished card or keepsake fails. Until it's been designed, GET /v1/commerce/configured-products?ids=… reads status: "failed" and calculate reports isValidForOrder: false, each with a validationSummary naming what's missing, such as 1153 "Missing 1 photo" or 1100 "Studio Name has not been updated". Use your record of the complete redirect to know it's finished, and calculate to confirm it's valid before you submit.
/v1/commerce/submissions/calculatePrices the finished item and lists the shipping options for your ship-to address. Send the body you'll submit, as in Quick Start Step 5: items and shipping, with the address. Leave out items[].quantity and the item keeps the quantity it was created with. Don't send an Idempotency-Key to calculate.
Calculate and submit use what the editor saved, not what you sent to create. The editor applies the design's defaults, and whoever is designing can change selections such as the envelopes, so the price and selectionsSummary[] can differ from the create response. Show the ones calculate returns.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
curl https://apis-stage.whcc.com/api/v1/commerce/submissions/calculate \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "WHCC-API-Version: 2026-10" \
-H "Content-Type: application/json" \
-d '{
"items": [
{ "configuredProductId": "DwZvGFCLkpAXYvdme" }
],
"shipping": {
"type": "dropship",
"priority": "dropship_lowest_cost",
"address": {
"name": "John Doe",
"addr1": "3005 Eagandale Place",
"city": "Eagan",
"state": "MN",
"zip": "55121",
"country": "US"
}
}
}'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"accountId": "whcc_474284",
"items": [
{
"configuredProductId": "DwZvGFCLkpAXYvdme",
"label": "5x7 Flat Card Horizontal",
"primaryDisplayName": "5×7 Flat Card Horizontal",
"quantity": 25,
"unitPrice": { "value": "0.92", "code": "USD" },
"totalPrice": { "value": "23.00", "code": "USD" },
"productId": "benT9erT8BwHrn6Ws",
"selectionsSummary": [
{ "id": "paper_types", "label": "paper_types", "name": "paper", "description": "smooth matte paper" },
{ "id": "envelopes", "label": "envelopes", "name": "envelope style", "description": "white envelopes" }
],
"isValidForOrder": true
}
],
"totalPrice": {
"value": "35.63",
"code": "USD",
"total": { "value": "32.95", "code": "USD" },
"subtotals": {
"product": { "value": "23.00", "code": "USD" },
"shipping": { "label": "Economy", "value": "9.95", "code": "USD" },
"salesTax": { "value": "2.68", "code": "USD", "isExempt": false }
}
},
"validation": { "isValidForSubmit": true, "isValidDiscount": null },
"shippingType": "dropship",
"shippingPriority": "dropship_lowest_cost",
"options": {
"shipping": [
{ "id": "dropship_lowest_cost", "type": "dropship", "priority": "dropship_lowest_cost", "label": "Economy", "price": { "value": "9.95", "code": "USD" } },
{ "id": "dropship_expedited", "type": "dropship", "priority": "dropship_expedited", "label": "Expedited", "price": { "value": "14.50", "code": "USD" } },
{ "id": "dropship_one_day_standard", "type": "dropship", "priority": "dropship_one_day_standard", "label": "Standard One-Day", "price": { "value": "21.68", "code": "USD" } },
{ "id": "dropship_one_day_priority", "type": "dropship", "priority": "dropship_one_day_priority", "label": "Priority One-Day", "price": { "value": "27.62", "code": "USD" } }
]
}
}
totalPrice.value is the total including tax, and options.shipping[] lists every shipping method for this address, priced. Submit only when validation.isValidForSubmit and every item's isValidForOrder are true. If isValidForSubmit is false, validation.invalidParams[] names problems with the submission itself, such as a missing address field; fix those in your checkout. If an item's isValidForOrder is false, its validationSummary says what's left to do in the editor.
If an item needs more work, don't create it again. A new create makes a new, blank item, and the work already done stays on the old one. Ask for a fresh edit link and go back in to finish it.
This example submits to the test host, where nothing is produced or billed. The same request sent to apis.whcc.com with a live key becomes a real order that WHCC produces, ships and bills you for.
/v1/commerce/submissionsSubmits the finished item for production. Send the same body as Step 6 plus a required Idempotency-Key header, exactly as in Quick Start Step 6. Use your checkout ID, or a UUID you save with the checkout before you send, so a retry after a timeout can't place a second order. See Idempotency.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
curl https://apis-stage.whcc.com/api/v1/commerce/submissions \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "WHCC-API-Version: 2026-10" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: <UNIQUE_KEY_FOR_THIS_CHECKOUT_ATTEMPT>" \
-d '{
"items": [
{ "configuredProductId": "DwZvGFCLkpAXYvdme" }
],
"shipping": {
"type": "dropship",
"priority": "dropship_lowest_cost",
"address": {
"name": "John Doe",
"addr1": "3005 Eagandale Place",
"city": "Eagan",
"state": "MN",
"zip": "55121",
"country": "US"
}
}
}'
A valid submission answers 202 with the submission's id. Save it. If WHCC finds a problem with an item when you submit, it refuses the submission and places nothing: it returns 400 with code: "submission.not_submittable" and an invalidParams[] entry named items.N.configuredProductId, with a reason that names the problem, such as This configured product isn't valid for ordering: image-missing-card. Go back in with a fresh edit link. See Errors.
A card or keepsake follows the same submission lifecycle as a print. Create an event subscription once, when you set up the integration, and WHCC posts order.accepted, order.rejected, order.shipped and order.cancelled to your endpoint as each order moves. Don't poll. Match an event to your checkout by its ConfirmationId, which is the confirmationId on each entry in the submission's orders[].
If a submission fails before any order exists, there's no event, so read the submission once it settles and act on failed or partially_failed. Quick Start Step 7 shows that read and how to test the event path with a test key.
Cards and keepsakes return the same error shapes as every other route; Errors & Rate Limits has them all. These are the ones you're most likely to meet. Design Catalog lists the design routes' errors.
| When | What WHCC returns | What to do |
|---|---|---|
Create without selections | 400 naming configuredProducts.N.selections | Send "selections": {}. |
Create without designId | 400, designId is required for card products: … | Send the design's id. |
| Create with a quantity that doesn't fit the product | 400 naming configuredProducts.N.selections.quantity | For a card, send 25, 30, 35 and so on. For an ornament or keepsake, 1 to 100. |
Create with redirects | 400 naming redirects | Send them to the edit link instead. |
| Create with a selection that conflicts with another, such as every catalog default | 400 naming the field, such as configuredProducts.0.selections.triple_thick_matte_inserts, with … can't be combined with the other selections on this product. | Send only the choices that were made, or {}. |
| Submit an item that isn't finished | 400, submission.not_submittable | Go back in with a fresh edit link. Don't create it again. |
Build with our API
Start adding our products into your app today. You don't need to talk to us first. Platforms and individual photographers or studios building for their own business are all welcome. Test API key access is available for every WHCC account. New to WHCC? Create an account first.
Established businesses with existing print volume
Tell us about your business and the partnership you have in mind, and we'll be in touch.
Tell us about your business and the partnership you have in mind, and we'll be in touch.