Orders
For developers
An order asks for cards to be produced for one or more card holders. Each person on an order becomes an order item. The person’s name, ID and photo are copied onto the item when the order is created, so the card printed is the card that was ordered, and a reprint reproduces it exactly.
Order status
Section titled “Order status”draft ► submitted ► in_production ► printed ► shipped ► completedAn order can be cancelled from draft, submitted or in_production. The
API can move an order only to submitted or cancelled. The later statuses
are set by whoever prints the cards.
List orders
Section titled “List orders”Query: page, pageSize, and status. Newest first.
Each order includes id, orderNumber (for example ACME-2027-0412),
status, priority, notes, dueDate, currency, subtotal, taxAmount, totalAmount, submittedAt,
completedAt, createdAt and updatedAt. Monetary amounts are decimal
strings in the order’s currency.
Create an order
Section titled “Create an order”| Field | Type | Notes |
|---|---|---|
cardHolderIds |
array of uuid, required | 1 to 5000 holders |
templateVersionId |
uuid | Card design to use for every line. Alias: templateId. If omitted, each person gets the design for their holder type, or the organisation default |
priority |
enum, default standard |
standard, rush, emergency |
notes |
string, max 2000 | |
dueDate |
YYYY-MM-DD |
|
idempotencyKey |
string, 8 to 128 characters | Makes retries safe |
submit |
boolean, default false |
true submits the order as soon as it is created |
Orders created through the API are printed in your own print room. To have CardOffice print and deliver an order, place it in the portal.
curl -sS -X POST "$CARDOFFICE_API/orders" \ -H "Authorization: Bearer $CARDOFFICE_KEY" \ -H "Content-Type: application/json" \ -d '{ "cardHolderIds": ["0b5e4c1a-6a53-4d3b-9d45-3f6f6b2c9a10"], "priority": "standard", "idempotencyKey": "intake-2027-batch-0007" }'Returns 201. The order is a draft unless you sent "submit": true:
{ "data": { "id": "a3e8e6f0-1c7f-4a52-8f0e-3d4f6b1d5c77", "orderNumber": "ACME-2027-0412", "status": "draft", "cardCount": 1, "skipped": 0 }}skippedcounts holders left out because they have no approved photo. If none of the holders has one, the call fails with412 precondition_failed.- A repeat with the same
idempotencyKeyreturns200with the original result. If the first request is still being processed you receive409and should retry shortly. - Creating an order locks the card design version it uses, so the design can no longer be edited.
Get an order
Section titled “Get an order”Returns the order with its fulfilment details
(shippingAddress, carrier, trackingNumber, trackingUrl, shippedAt) and
an items array. Each item has id, cardHolderId, status, sku,
unitPrice, snapshot and createdAt.
Submit or cancel an order
Section titled “Submit or cancel an order”curl -sS -X PATCH "$CARDOFFICE_API/orders/$ORDER_ID" \ -H "Authorization: Bearer $CARDOFFICE_KEY" \ -H "Content-Type: application/json" \ -d '{ "status": "submitted" }'{ "data": { "id": "a3e8e6f0-1c7f-4a52-8f0e-3d4f6b1d5c77", "orderNumber": "ACME-2027-0412", "status": "submitted", "updatedAt": "2027-02-01T03:00:00.000Z" }}Submitting renders the cards, notifies the print room and fires the
order.submitted webhook, exactly as submitting in the
portal does.
| Status | When |
|---|---|
422 validation_failed |
status is anything other than submitted or cancelled |
409 conflict |
The move is not allowed from the current status |
409 conflict |
An order printed by CardOffice can be cancelled through the API only while it is submitted. Once CardOffice has started on it, contact us to cancel |
© 2026 Secure ID Ltd. All rights reserved.Documentation licence and terms