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 notificationType they 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 of PUT /orders/{orderUuid}/cancel. It now removes the order, its lines and its fulfilments, and releases any stock held for it. A POST /orders with the same orderNumber then 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 call PUT /orders/{orderUuid}/cancel, which is unchanged.
    • The 200 body 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, queued or back-order and every fulfilment is still a draft or a back-order never sent to the warehouse.
    • A confirmed order stops being deletable 10 seconds before its fulfillableFrom or scheduledAt, 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 no 202 any more. detail names the cause and the next step. An order can never be deleted once any fulfilment is processing or dispatched.
    • An order that is already cancelled is refused with 428. It keeps its order number, so a new order needs a different orderNumber.
    • Deleting an order answers 404 from then on, including for a repeated delete, and sends no webhook.
  • POST /orders with a uuid that matches no order of this channel, such as a deleted one, still answers 404, and detail now 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.gtin is 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 (09781918943429 for 9781918943429). Books are otherwise unchanged: gtin is the ISBN-13, as before.

Changed

  • Behaviour change: a UPC-A product’s gtin is returned in its 13-digit form, with a leading 0. A product stored with a UPC-A now returns gtin as 0231566199093, not 231566199093, and its ean is that 13-digit value instead of null. An integration that matches products on a 12-digit gtin must accept the 13-digit form too. GS1 treats the two as the same GTIN.
  • A product stored with an EAN-13 that starts with 0 now also returns its 12-digit upc (231566199093 for 0231566199093), instead of null.
  • 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.gtin says it is unformatted and at what length a GTIN that is not an ISBN is given; ean and upc say 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: live or test. An order takes its channel’s mode when it is created and keeps it.
  • mode on every webhook. On the order and fulfilment events it is the order’s mode; on stock-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 GET and search, confirmed, amended and cancelled, and the usual webhooks are sent. The differences:
    • stock is checked but never held: the 409 stock-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. reservationsExpireAt is 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, with sentToWarehouseAt set, 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 still 202 then, 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.
  • Behaviour change: a channel’s mode is fixed once it has orders. Switching between live and test would 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-updated is still sent to test-mode channels, unchanged: it describes real stock.

Docs

  • Spec: mode on the channel resource lists its values, live and test, 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 a back-order fulfilment waits. pre-order and out-of-stock mean Print Trail holds it and has never sent it; warehouse means it was sent and the warehouse reports it as a back-order. null when not back-order. It is also on fulfilment-status-updated.
  • FulfilmentResource.sentToWarehouseAt: when the fulfilment was handed to the warehouse and accepted, null while Print Trail holds it. It is on every fulfilment and on fulfilment-status-updated.
  • GET /stock-levels items and stock-level-updated webhook items: status (active / inactive / pre-order), publicationDate, preOrderLimit and preOrderRemaining.
  • ProductResource (on GET /products, GET /products/{productUuid} and orderLines[].product): publicationDate, preOrderLimit and preOrderRemaining.
  • An optional per-product pre-order limit. An order wanting more than remains is refused with the existing 409 stock-shortfall body, with available set 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-updated is 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 a product_preorder error. Now:
    • its pre-order lines go into a back-order fulfilment of their own;
    • the order is fulfillable and confirms with 202;
    • it waits as back-order (or processing, 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; backOrderReason stays pre-order for an inactive product);
    • its errors carry no product_preorder entry.
  • 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 answer 409. It now gets a back-order fulfilment (backOrderReason: out-of-stock) and 202, and is released when stock arrives.
  • Behaviour change: stock for a limited pre-order product. For a pre-order product with a pre-order limit, stock on /stock-levels and on the webhook, and stockLevel on the product, is what remains of the limit. This replaces the warehouse stock and the 10000 print-on-demand sentinel.
  • Behaviour change: cancel. Cancelling an order whose open fulfilments are only draft and/or unreleased back-order answers 200 (cancelled at once), not 202.
  • Behaviour change: amend. PUT /orders/{orderUuid}/lines is allowed while the order’s only non-draft fulfilments are unreleased back-orders, including an order that is back-order. It is refused with fulfilment-underway once anything has been sent.
  • Finished-order semantics (complete, partial, failed, cancelled) and the replayed-create 409s 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-order status, the confirm, cancel and amend rules, and the 409 for the pre-order limit.
  • Guide and spec: integrations may show backOrderReason: pre-order as “Pre-order”, as Print Trail’s own screens now do.
  • Spec: the changelog link in info.description points 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. Its detail is generic, and a reference identifies 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 /webhooks answers 422, and stores nothing, unless url is an absolute https:// URL of at most 200 characters, with no user name, password or fragment, whose host is public: not localhost, *.localhost, *.internal, *.local or 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 an https:// URL again.
  • Behaviour change: a {channelId} that does not exist answers 401, with the same body as a missing or invalid token, instead of 404 “The channel ID … does not exist”. A valid token addressing a sibling channel in its own team that it does not own still answers that 404. GET /token with an unknown path channel is also a 401, 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 / and GET /token included, with 403 and problem type https://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}/confirm and POST /webhooks answer 403. Confirm refuses before anything is changed, so the order keeps its fulfilments and holds no new stock; confirming an already-confirmed order still answers 202. 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 403 on 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, the channel-inactive 403 is answered.)
  • Behaviour change: request size limits, each a 422 naming the field (a request over a limit that was accepted before is now refused): orderNumber and printTrailOrderNumber at most 255 characters, orderLines[].product.sku at most 255 characters (on POST /orders and PUT /orders/{orderUuid}/lines), and at most 500 orderLines per request, refused on the count alone. The spec states each limit as maxLength / maxItems, and the ShippingDetailsInput lengths now match what the API has always enforced (companyName 150, address1–address4 250, postalCode 25, state.name 100, state.code 30, country.name 100, email 100).
  • Behaviour change: GET /orders and POST /webhooks/resend see 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, while GET /orders/{orderUuid} answered 404 for 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 same 422 as an unknown orderUuid.
  • Behaviour change: a 500 has a generic detail and a reference member identifying the logged error; quote the reference to Print Trail support. Deliberate 4xx messages are unchanged.
  • Behaviour change: webhook deliveries do not follow redirects. A 3xx answer counts as a failed delivery and is retried like any other non-2xx answer. 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 answers 429 until the minute is up. A client with a working token never spends this allowance.

Fixed

  • A 429 response has a problem body with "status": 429 and "title": "Too Many Requests", and carries Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. It previously had a body saying 500 “Internal Server Error” and no Retry-After. More generally, a 4xx error body’s status and title now match the response status.
  • An orderNumber or printTrailOrderNumber too long for its column answered 500; it is now a 422.
  • Registering a webhook as the Standard channel answered 500; such a token is now refused with 403 before the request is handled.

Docs

  • ApiProblem documents the reference member. Every operation documents its 403 (a Forbidden response: inactive channel or Standard channel token; team inactive where it applies), 429 and 500 responses, and the 401 for 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: currentTrackingDetails on fulfilment-tracking-created and products on fulfilment-status-updated are 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’s trackingDetails was not affected.

Docs

  • methodCode in currentTrackingDetails is webhook-only; the order resource’s trackingDetails does not carry it.

[1.1.2] - 2026-10-19

Fixed

  • GET /orders/{orderUuid}, PUT /orders/{orderUuid}/cancel, DELETE /orders/{orderUuid} and PUT /orders/{orderUuid}/confirm now 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, returns 404 with 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 /orders and PUT /orders/{orderUuid}/lines already worked this way.

[1.1.1] - 2026-10-19

Fixed

  • Replaying POST /orders for an order that was confirmed and has since finished (complete, cancelled, failed, returned, partial) returns order-not-updatable; since 1.1.0 it wrongly returned order-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 /orders replay 409 table: a finished or cancelled order answers order-not-updatable even if it was once confirmed, and integrations should read orderStatus / data.status for the order’s actual state.

[1.1.0] - 2026-10-19

Added

  • POST /webhooks now returns the channel’s current webhook signing secret as data.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 /orders for an order that can no longer be replaced still answers 409, now with a distinct problem type (…/problems/order-already-confirmed or …/problems/order-not-updatable) and orderUuid, orderStatus and the full order under data.
  • confirmedAt on the order resource and on order and fulfilment webhooks: when the order was confirmed for processing, null for a draft.
  • A Print-Trail-Api-Version header on every response from a Channel API route (including errors) and on every webhook request, carrying the contract version.

Fixed

  • A replayed POST /orders for an order that is finished or otherwise not updatable answered 500; it now answers 409 with the order-not-updatable problem type.

Docs

  • GET /stock-levels returns every non-deleted product, whatever its active state; sold-out products appear with stock: 0. Print-on-demand products report warehouse stock plus a 10000 sentinel, meaning effectively unlimited. Order status partial is defined.
  • Product activeState values and the active-state filter are lowercase: active, inactive, pre-order. podEnabled and podApproved are 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 in data. The spec showed them unwrapped. (POST /orders really does return the order unwrapped.)
    • ChannelResource.id is the composite channel ID string (e.g. riverside-std), not an integer. The example code is corrected.
    • 401 and the channel 404 are documented on every operation, and every 404/428 has its problem body. PUT /orders/{orderUuid}/confirm documents its order-not-found 404. GET /products documents its 422. POST /webhooks documents its validation 422, which today is only returned when url is missing: an invalid URL is wrongly accepted.
    • ProductResource.dimensions is an object keyed by weight/length/width/depth, each {measurement, unit}; it is [] when a product has no dimensions. The spec said “array of objects”.
    • FulfilmentResource.supplierLocation carries code and countryCode. The spec listed name, which is never sent, and omitted countryCode.
    • Pagination meta includes Laravel’s from, to, path and links; GET /products also returns top-level links.
    • The PUT /orders/{orderUuid}/lines 404 and 409 bodies are anyOf, not oneOf, the problem schemas: they overlap, so no body could match exactly one.
    • Webhooks: fulfilment-status-updated documents originalFulfilmentStatus, currentFulfilmentStatus, orderStatus and products (a list of SKU strings there). fulfilment-tracking-created documents currentTrackingDetails.
  • 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.