Use the order-ID routes when your system stores the platform UUID. Use the order-number routes when your workflow is keyed by the merchant-facing number. Both resolve within the store bound to the API key.
curl --request GET 'https://tringify-custom-products.developers-c8a.workers.dev/api/v1/orders/by-number/%23STICKER100006/production-files.zip' \
--header 'Authorization: Bearer cpk_live_YOUR_KEY' \
--output order-production-files.zip
List by order ID
List production files by order ID
Returns all final production files linked to one order. The order ID is resolved within the store bound to the API key.
Path parameters
| Name | Type | Description |
|---|---|---|
order_id
required
|
UUID |
Platform order ID. |
Errors
-
400INVALID_ORDER_IDThe order ID is not a UUID.
-
404PRODUCTION_FILES_NOT_FOUNDNo production files were found for that order in the key's store.
-
409PRODUCTION_FILES_NOT_READYAt least one file for the order is not ready.
-
410PRODUCTION_FILES_EXPIREDAt least one file for the order is no longer available.
-
503PRODUCTION_FILES_UNAVAILABLEAt least one final object could not be verified temporarily.
List by order number
List production files by order number
Returns the same response as the order-ID route using the merchant-facing order number. URL-encode reserved characters such as # before placing the number in the path.
Path parameters
| Name | Type | Description |
|---|---|---|
order_number
required
|
string |
Merchant-facing order number, URL-encoded as a path segment. |
Errors
-
400INVALID_ORDER_NUMBERThe order number is empty, too long, or contains an invalid path segment.
-
404PRODUCTION_FILES_NOT_FOUNDNo production files were found for that order number in the key's store.
-
409PRODUCTION_FILES_AMBIGUOUSThe order number does not identify exactly one order in the key's store.
ZIP by order ID
Download order production files as ZIP
Streams a ZIP containing every final production file for the order. The archive is returned only after every file passes readiness, availability, size, and checksum checks.
Path parameters
| Name | Type | Description |
|---|---|---|
order_id
required
|
UUID |
Platform order ID. |
Errors
-
400INVALID_ORDER_IDThe order ID is not a UUID.
-
404PRODUCTION_FILES_NOT_FOUNDNo production files were found for that order.
-
409PRODUCTION_FILES_NOT_READYAt least one file for the order is not ready.
-
409PRODUCTION_FILES_CHANGEDThe file set changed while the archive was being prepared.
-
410PRODUCTION_FILES_EXPIREDAt least one file for the order is no longer available.
-
503PRODUCTION_FILES_UNAVAILABLEAt least one final object could not be verified temporarily.
ZIP by order number
Download order production files ZIP by order number
Streams the same all-or-nothing ZIP as the order-ID route, resolved by the URL-encoded merchant-facing order number.
Path parameters
| Name | Type | Description |
|---|---|---|
order_number
required
|
string |
Merchant-facing order number, URL-encoded as a path segment. |
Errors
-
400INVALID_ORDER_NUMBERThe order number is invalid.
-
404PRODUCTION_FILES_NOT_FOUNDNo production files were found for that order number.
-
409PRODUCTION_FILES_NOT_READYAt least one file for the order is not ready.
-
409PRODUCTION_FILES_CHANGEDThe file set changed while the archive was being prepared.
-
410PRODUCTION_FILES_EXPIREDAt least one file for the order is no longer available.
-
503PRODUCTION_FILES_UNAVAILABLEAt least one final object could not be verified temporarily.