API changelog
What changed in each version of the Print Trail Channel API, what may change within a version, and what your integration must tolerate.
Changes to the Channel API contract: the HTTP API under /v1/channels/{channelId}/ and the webhooks it sends. The contract itself is the OpenAPI specification; its info.version is the version listed here, and every response from a Channel API route, and every webhook, carries it in the Print-Trail-Api-Version header.
Compatibility policy
Versioning
The spec is versioned with semantic versioning: MAJOR.MINOR.PATCH.
- PATCH: documentation-only corrections that do not change what the API does (wording, examples, a schema fixed to match long-standing behaviour).
- MINOR: additive changes and behaviour changes, as defined below.
- MAJOR: breaking changes. A new major version is served side by side under a new path prefix (
/v2/channels/{channelId}/…), and the previous major version keeps working until its announced sunset.
The major version is the number in the URL. /v1/ stays 1.x.y for as long as it is served.
What may change within a major version
Within a major version the API only grows. Any of these can ship in a minor release:
- new endpoints;
- new optional request fields and query parameters;
- new fields in responses and webhook payloads;
- new problem
types on existing error status codes; - new enum values (order/fulfilment statuses, notification types, refusal reasons, …);
- new webhook notification types.
What clients must do
So that those changes never break an integration, clients MUST:
- ignore fields they do not recognise, in responses and in webhook payloads;
- tolerate enum values they do not recognise (treat an unknown status as “something else”, not as an error);
- tolerate problem
types they do not recognise, falling back on the HTTP status code; - ignore webhooks with a
notificationTypethey do not handle, and still answer them with a 2xx.
Behaviour changes
A behaviour change keeps the request and response shapes the same but changes what a request means or does: a different outcome for the same input, a different status code for the same situation, a new precondition. It ships as a minor release with a prominent Behaviour change entry below, and is announced in advance.
Breaking changes
These require a new major version:
- removing or renaming a field, endpoint, parameter or enum value;
- changing a field’s type or format, or making an optional request field required;
- changing what a status code means for a request that already works;
- removing a webhook notification type or a payload field.
Deprecation
A field or endpoint due to go is first marked deprecated: true in the spec and announced here. Responses that use it then carry a Deprecation header and, once a date is set, a Sunset header (RFC 8594) naming the date it will be removed. Removal itself only happens in a new major version.
[1.6.0] - 2026-11-06
DELETE /orders/{orderUuid} now deletes the order instead of cancelling it, so a shop can remove an order nothing has started on and use its order number again.
Changed
- Behaviour change:
DELETE /orders/{orderUuid}deletes. It was an alias ofPUT /orders/{orderUuid}/cancel. It now removes the order, its lines and its fulfilments, and releases any stock held for it. APOST /orderswith the sameorderNumberthen creates a new order with a new uuid. A cancelled order keeps its row and goes on owning its order number, so a client that wants the old behaviour must callPUT /orders/{orderUuid}/cancel, which is unchanged.- The
200body is now{ deleted, message, orderUuid, orderNumber }, not{ data: OrderResource }: the order no longer exists. - An order is deleted only while nothing of it has started: it has no fulfilments and has not finished, or it is
draft,scheduled,queuedorback-orderand every fulfilment is still adraftor aback-ordernever sent to the warehouse. - A confirmed order stops being deletable 10 seconds before its
fulfillableFromorscheduledAt, and stays so while it is sent, because its fulfilments are on their way to the warehouse. - Any other order is refused with
428, and is not cancelled. There is no202any more.detailnames the cause and the next step. An order can never be deleted once any fulfilment is processing or dispatched. - An order that is already
cancelledis refused with428. It keeps its order number, so a new order needs a differentorderNumber. - Deleting an order answers
404from then on, including for a repeated delete, and sends no webhook.
- The
POST /orderswith auuidthat matches no order of this channel, such as a deleted one, still answers404, anddetailnow says to send the order without a uuid to create it.
[1.5.0] - 2026-10-21
A product’s gtin is given at a consistent length: a book’s is its ISBN-13, and a UPC-A’s is now its 13-digit form.
Fixed
ProductResource.gtinis always the GTIN as documented: for a book, the ISBN-13. A product whose identifier had been edited in Print Trail’s product page could return it padded to 14 digits with a leading zero (09781918943429for9781918943429). Books are otherwise unchanged:gtinis the ISBN-13, as before.
Changed
- Behaviour change: a UPC-A product’s
gtinis returned in its 13-digit form, with a leading0. A product stored with a UPC-A now returnsgtinas0231566199093, not231566199093, and itseanis that 13-digit value instead ofnull. An integration that matches products on a 12-digitgtinmust accept the 13-digit form too. GS1 treats the two as the same GTIN. - A product stored with an EAN-13 that starts with
0now also returns its 12-digitupc(231566199093for0231566199093), instead ofnull. - A GTIN-8 is returned at 8 digits, and a GTIN-14 with a non-zero indicator digit at 14, as before.
Docs
- Spec:
ProductResource.gtinsays it is unformatted and at what length a GTIN that is not an ISBN is given;eanandupcsay when they are set.
[1.4.0] - 2026-10-20
Test-mode channels are a sandbox. A channel’s mode (live or test, as mode on GET /) now decides what happens to its orders, so an integration can be built and tested end to end against a test channel without anything being fulfilled.
Added
OrderResource.mode:liveortest. An order takes its channel’s mode when it is created and keeps it.modeon every webhook. On the order and fulfilment events it is the order’s mode; onstock-level-updated, which is about no order, it is the mode of the channel being notified.
Changed
- Behaviour change: orders on a test-mode channel are sandbox orders. Every endpoint treats them as it treats live orders: they are validated (strict SKUs, shipping methods, addresses), stored, found by
GETand search, confirmed, amended and cancelled, and the usual webhooks are sent. The differences:- stock is checked but never held: the
409stock-shortfall response is still returned when stock or a pre-order limit falls short, but a test order holds no stock and takes none of a pre-order limit, so it never reduces what a live order can have.reservationsExpireAtis reported as for a live order; - a test order is never sent to the warehouse and never fulfilled. When a live order would be sent, its fulfilments become
processing, withsentToWarehouseAtset, and stay there. Nothing further happens to them: no dispatch, no tracking; - cancelling a test order is applied at once, even after its fulfilments became
processing(the answer is still202then, as for a live order), and the usual webhooks are sent; - test orders are kept out of the team’s order list and emails in Print Trail, and no recipient is emailed about one.
- stock is checked but never held: the
- Behaviour change: a channel’s mode is fixed once it has orders. Switching between
liveandtestwould leave the channel’s earlier orders in the other mode, so it is refused in Print Trail once the channel has any orders. Use a separate channel for testing. - Orders created before this release keep
mode: live, whatever their channel’s mode, because they were handled as live orders. stock-level-updatedis still sent to test-mode channels, unchanged: it describes real stock.
Docs
- Spec:
modeon the channel resource lists its values,liveandtest, and says what a test channel does. The values themselves are unchanged.
[1.3.0] - 2026-10-20
Pre-order products. See the guide’s Pre-order products section.
Added
FulfilmentResource.backOrderReason: why aback-orderfulfilment waits.pre-orderandout-of-stockmean Print Trail holds it and has never sent it;warehousemeans it was sent and the warehouse reports it as a back-order.nullwhen notback-order. It is also onfulfilment-status-updated.FulfilmentResource.sentToWarehouseAt: when the fulfilment was handed to the warehouse and accepted,nullwhile Print Trail holds it. It is on every fulfilment and onfulfilment-status-updated.GET /stock-levelsitems andstock-level-updatedwebhook items:status(active/inactive/pre-order),publicationDate,preOrderLimitandpreOrderRemaining.ProductResource(onGET /products,GET /products/{productUuid}andorderLines[].product):publicationDate,preOrderLimitandpreOrderRemaining.- An optional per-product pre-order limit. An order wanting more than remains is refused with the existing
409stock-shortfall body, withavailableset to what remains. The limit is checked whenever an order is confirmed, through the API or in Print Trail (the app, an import, a schedule). - A released back-order whose send to the warehouse fails because the warehouse could not be reached or answered 5xx is sent again automatically by the ten-minute sweep, for up to an hour. One the warehouse refuses (4xx) is left on hold.
stock-level-updatedis also sent when a product’s status, publication date or pre-order limit changes, and when an order takes or gives back some of a pre-order limit.
Changed
- Behaviour change: pre-order orders are accepted and held. An order for a pre-order product used to be accepted as a draft that could not be confirmed (
428), and it carried aproduct_preordererror. Now:- its pre-order lines go into a
back-orderfulfilment of their own; - the order is
fulfillableand confirms with202; - it waits as
back-order(orprocessing, if it has lines that ship now); - it is released automatically, oldest first, when the product becomes
active(stock arriving while the product is still on pre-order, or after it has been set inactive, does not release it;backOrderReasonstayspre-orderfor an inactive product); - its
errorscarry noproduct_preorderentry.
- its pre-order lines go into a
- Behaviour change: back-order warehouses at 0 stock. Creating (
reserve: true) or confirming an order for an active product at 0 stock in a warehouse that allows back-orders used to answer409. It now gets aback-orderfulfilment (backOrderReason: out-of-stock) and202, and is released when stock arrives. - Behaviour change:
stockfor a limited pre-order product. For a pre-order product with a pre-order limit,stockon/stock-levelsand on the webhook, andstockLevelon the product, is what remains of the limit. This replaces the warehouse stock and the10000print-on-demand sentinel. - Behaviour change: cancel. Cancelling an order whose open fulfilments are only
draftand/or unreleasedback-orderanswers200(cancelled at once), not202. - Behaviour change: amend.
PUT /orders/{orderUuid}/linesis allowed while the order’s only non-draft fulfilments are unreleased back-orders, including an order that isback-order. It is refused withfulfilment-underwayonce anything has been sent. - Finished-order semantics (
complete,partial,failed,cancelled) and the replayed-create409s are unaffected.
Docs
- Guide: a Pre-order products section covering the lifecycle, release triggers,
backOrderReason,sentToWarehouseAt, the pre-order limit and an FAQ. - Spec: the semantics of the order and fulfilment
back-orderstatus, the confirm, cancel and amend rules, and the 409 for the pre-order limit. - Guide and spec: integrations may show
backOrderReason: pre-orderas “Pre-order”, as Print Trail’s own screens now do. - Spec: the changelog link in
info.descriptionpoints at the public page, https://docs.printtrail.com/developers/api-changelog/.
[1.2.0] - 2026-10-20
A security release. Most integrations need no change; check the Behaviour change entries below, in particular webhook URLs (HTTPS on a public host), inactive channels and the Standard channel.
Security
- Webhook URLs are checked so that webhooks can only be sent to public HTTPS hosts. Registration and every delivery refuse non-public destinations, a delivery connects only to the addresses that were checked (so a DNS change after the check cannot redirect it), and redirects are not followed.
- A server error (
500) no longer carries internal details of the failure. Itsdetailis generic, and areferenceidentifies the logged error for Print Trail support. - Channel IDs cannot be discovered by probing: an unknown channel is indistinguishable from a bad token, and repeated failed requests are throttled per client IP address.
- Rate limits are applied per token, and the client IP address used for the failed-request limit is the connecting address; forwarded-for headers are only believed from a configured trusted proxy.
- Deactivating a channel revokes its API access and stops its webhooks. The team’s Standard (default) channel cannot be given an API token, and an existing token for it is refused.
Changed
- Behaviour change: webhook URLs must be HTTPS on a public host.
POST /webhooksanswers422, and stores nothing, unlessurlis an absolutehttps://URL of at most 200 characters, with no user name, password or fragment, whose host is public: notlocalhost,*.localhost,*.internal,*.localor a single-label name, and not, or resolving to, a private, loopback, link-local, unique-local, shared (CGNAT), multicast or reserved address. The host must resolve in DNS and every address must be public. A{notificationType}placeholder is allowed in the path or query only. Previously any string was accepted. - Behaviour change: the same check runs before every webhook delivery, including retries. A webhook whose URL does not meet it, including a URL registered before this release, is not sent. If your registered URL is
http://, register anhttps://URL again. - Behaviour change: a
{channelId}that does not exist answers401, with the same body as a missing or invalid token, instead of404“The channel ID … does not exist”. A valid token addressing a sibling channel in its own team that it does not own still answers that404.GET /tokenwith an unknown path channel is also a401, so it can no longer diagnose a mistyped team code; it still answers for any channel in the token’s own team. - Behaviour change: a channel set inactive in Print Trail is refused on every endpoint,
GET /andGET /tokenincluded, with403and problem typehttps://docs.printtrail.com/channel-api/problems/channel-inactive. No new webhooks of any kind (order, fulfilment or stock-level) are sent to it until it is made active again; a delivery already queued before it was deactivated may still be retried. Previously an inactive channel’s token kept working and it kept receiving webhooks. - Behaviour change: for a team that is inactive,
PUT /orders/{orderUuid}/confirmandPOST /webhooksanswer403. Confirm refuses before anything is changed, so the order keeps its fulfilments and holds no new stock; confirming an already-confirmed order still answers202. Reads and cancelling (PUT …/cancel,DELETE /orders/{orderUuid}) still work, so the merchant can clean up. Creating and amending orders were already refused. - Behaviour change: a token belonging to the team’s Standard (default) channel, which holds orders entered in Print Trail, is refused with
403on every endpoint of that channel, and that channel can no longer be given a token. An integration using such a token needs a dedicated channel and token. (If the Standard channel is also inactive, thechannel-inactive403is answered.) - Behaviour change: request size limits, each a
422naming the field (a request over a limit that was accepted before is now refused):orderNumberandprintTrailOrderNumberat most 255 characters,orderLines[].product.skuat most 255 characters (onPOST /ordersandPUT /orders/{orderUuid}/lines), and at most 500orderLinesper request, refused on the count alone. The spec states each limit asmaxLength/maxItems, and theShippingDetailsInputlengths now match what the API has always enforced (companyName150,address1–address4250,postalCode25,state.name100,state.code30,country.name100,email100). - Behaviour change:
GET /ordersandPOST /webhooks/resendsee exactly the orders the single-order endpoints see: those created through the Channel API on the token’s channel. An imported or manually entered order filed under the channel was listed by the search, whileGET /orders/{orderUuid}answered404for it, and a resend could be asked for it. It is now absent from the search, and a resend for it is refused with the same422as an unknownorderUuid. - Behaviour change: a
500has a genericdetailand areferencemember identifying the logged error; quote thereferenceto Print Trail support. Deliberate4xxmessages are unchanged. - Behaviour change: webhook deliveries do not follow redirects. A
3xxanswer counts as a failed delivery and is retried like any other non-2xxanswer. Register the final URL. - Behaviour change: the rate limit for authenticated requests (default 600 per minute) is per token, not per client IP address. Two shops behind one address no longer share it.
- New rate limit: requests that fail authentication (
401) are limited per client IP address (default 60 per minute), counted before the channel is looked up. Over it, every request from that address answers429until the minute is up. A client with a working token never spends this allowance.
Fixed
- A
429response has a problem body with"status": 429and"title": "Too Many Requests", and carriesRetry-After,X-RateLimit-Limit,X-RateLimit-RemainingandX-RateLimit-Reset. It previously had a body saying500“Internal Server Error” and noRetry-After. More generally, a4xxerror body’sstatusandtitlenow match the response status. - An
orderNumberorprintTrailOrderNumbertoo long for its column answered500; it is now a422. - Registering a webhook as the Standard channel answered
500; such a token is now refused with403before the request is handled.
Docs
ApiProblemdocuments thereferencemember. Every operation documents its403(aForbiddenresponse: inactive channel or Standard channel token; team inactive where it applies),429and500responses, and the401for an unknown channel.- The guide lists the order of checks a request goes through: failed-request rate limit, channel, authentication, channel scope, channel active, Standard channel, per-token rate limit.
[1.1.3] - 2026-10-19
Fixed
- Webhooks:
currentTrackingDetailsonfulfilment-tracking-createdandproductsonfulfilment-status-updatedare always sent as JSON arrays, as documented. When entries were reordered or dropped, the field could arrive as a JSON object keyed"0","1", … instead. Output now matches the schema documented all along, so integrations that follow the spec need no change. The order resource’strackingDetailswas not affected.
Docs
methodCodeincurrentTrackingDetailsis webhook-only; the order resource’strackingDetailsdoes not carry it.
[1.1.2] - 2026-10-19
Fixed
GET /orders/{orderUuid},PUT /orders/{orderUuid}/cancel,DELETE /orders/{orderUuid}andPUT /orders/{orderUuid}/confirmnow only see the channel’s own orders: orders created through the Channel API on that channel. Another channel’s order, or one entered in Print Trail or imported, returns404with the same body as an order uuid that does not exist (“This order could not be found.”), and is left unchanged. These endpoints previously found such an order by its uuid.POST /orders,GET /ordersandPUT /orders/{orderUuid}/linesalready worked this way.
[1.1.1] - 2026-10-19
Fixed
- Replaying
POST /ordersfor an order that was confirmed and has since finished (complete,cancelled,failed,returned,partial) returnsorder-not-updatable; since 1.1.0 it wrongly returnedorder-already-confirmed.
Docs
- Webhook secret rotation: accept both the old and new secret for a few hours after rotating, not a few minutes. Failed deliveries are retried up to 5 times with backoff waits of 10 s, 100 s, 1,000 s and 10,000 s, so an old-signed retry can arrive up to about 3 hours later.
- The
POST /ordersreplay409table: a finished or cancelled order answersorder-not-updatableeven if it was once confirmed, and integrations should readorderStatus/data.statusfor the order’s actual state.
[1.1.0] - 2026-10-19
Added
POST /webhooksnow returns the channel’s current webhook signing secret asdata.webhookDetail.secret. Registering again returns the same secret.POST /webhooks/secret/rotate: rotates the webhook signing secret and returns the new one in the same shape. The old secret stops verifying immediately.- A replayed
POST /ordersfor an order that can no longer be replaced still answers409, now with a distinct problemtype(…/problems/order-already-confirmedor…/problems/order-not-updatable) andorderUuid,orderStatusand the full order underdata. confirmedAton the order resource and on order and fulfilment webhooks: when the order was confirmed for processing,nullfor a draft.- A
Print-Trail-Api-Versionheader on every response from a Channel API route (including errors) and on every webhook request, carrying the contract version.
Fixed
- A replayed
POST /ordersfor an order that is finished or otherwise not updatable answered500; it now answers409with theorder-not-updatableproblem type.
Docs
GET /stock-levelsreturns every non-deleted product, whatever its active state; sold-out products appear withstock: 0. Print-on-demand products report warehouse stock plus a10000sentinel, meaning effectively unlimited. Order statuspartialis defined.- Product
activeStatevalues and theactive-statefilter are lowercase:active,inactive,pre-order.podEnabledandpodApprovedare documented. - The spec now describes what the API has always sent, found by the new contract tests. None of these is an API change:
GET /,GET /team,GET /products/{productUuid},GET /orders/{orderUuid},PUT /orders/{orderUuid}/confirm(202) and the cancel endpoints (PUT …/cancel,DELETE /orders/{orderUuid}) wrap the resource indata. The spec showed them unwrapped. (POST /ordersreally does return the order unwrapped.)ChannelResource.idis the composite channel ID string (e.g.riverside-std), not an integer. The examplecodeis corrected.401and the channel404are documented on every operation, and every404/428has its problem body.PUT /orders/{orderUuid}/confirmdocuments its order-not-found404.GET /productsdocuments its422.POST /webhooksdocuments its validation422, which today is only returned whenurlis missing: an invalid URL is wrongly accepted.ProductResource.dimensionsis an object keyed byweight/length/width/depth, each{measurement, unit}; it is[]when a product has no dimensions. The spec said “array of objects”.FulfilmentResource.supplierLocationcarriescodeandcountryCode. The spec listedname, which is never sent, and omittedcountryCode.- Pagination
metaincludes Laravel’sfrom,to,pathandlinks;GET /productsalso returns top-levellinks. - The
PUT /orders/{orderUuid}/lines404and409bodies areanyOf, notoneOf, the problem schemas: they overlap, so no body could match exactly one. - Webhooks:
fulfilment-status-updateddocumentsoriginalFulfilmentStatus,currentFulfilmentStatus,orderStatusandproducts(a list of SKU strings there).fulfilment-tracking-createddocumentscurrentTrackingDetails.
- This changelog and its compatibility policy.
[1.0.0] - 2026-04-24
Baseline: the Channel API as first published. Changes between April and October 2026 shipped in place without a version bump. 1.1.0 is the first release under the policy above.