TCS-i API
Everything the console does, from any system or AI agent. REST, JSON.
Introduction
Everything in TCS-i works through this API, with or without a warehouse system (WMS). The console, AI agents and our WMS integrations use the same endpoints you do: anything you can do on a console page, you can do with a call.
- Your data (
/v1, free): boxes, products and orders. Send an order, get its box, record what it was packed in. - How it packs (free): packing preferences, box rules and cost parameters.
- What happened (free): every recommendation and what was packed, reports, the assistant's fixes, and webhooks so your system hears about changes.
- The engine (
POST /pack, billed): pure 3D packing. Send items, boxes and requirements; get the plan. It never reads your data.POST /v1/pack-inputbuilds its input from your data in TCS-i. - AI agents: the same actions as MCP tools at
/mcp. An agent can set your account up from a key.
- Start free, then in the console open Integrations > Link your own system and press Make a test key (free, never billed).
- Run the one-line command it shows. Our example syncs boxes and products, sends an order, gets the box and reports it packed, and every step turns green in the console.
- Add each call to your system where the guide says, with our one-file client (Python or Node). Boxes and products can start as a CSV upload.
- Swap in a live key to go live. Prefer Postman? Download the collection.
# 1. Whose key is this, and what is left to set up?
curl https://api.tcs-i.com/v1/setup -H "x-api-key: $TCSI_KEY"
# 2. Your boxes and products, once (then whenever they change)
curl -X PUT https://api.tcs-i.com/v1/boxes/CARTON-M -H "x-api-key: $TCSI_KEY" \
-H "Content-Type: application/json" -d '{ "length": 40, "width": 30, "height": 20 }'
curl -X PUT https://api.tcs-i.com/v1/products/TEE-M -H "x-api-key: $TCSI_KEY" \
-H "Content-Type: application/json" -d '{ "length": 30, "width": 20, "height": 3, "is_flexible": true }'
# 3. For each order: send it, get its box, say what it was packed in
curl -X PUT https://api.tcs-i.com/v1/orders/SO-1 -H "x-api-key: $TCSI_KEY" \
-H "Content-Type: application/json" -d '{ "lines": [ { "sku": "TEE-M", "quantity": 2 } ] }'
curl -X POST https://api.tcs-i.com/v1/orders/SO-1/recommend -H "x-api-key: $TCSI_KEY"
curl -X POST https://api.tcs-i.com/v1/orders/SO-1/packed -H "x-api-key: $TCSI_KEY"All requests go to https://api.tcs-i.com over HTTPS, with JSON bodies and JSON answers. Not sure what's left to do on your account? GET /v1/setup lists it.
Keys, scopes and test keys
Send your API key as the x-api-key header, or as Authorization: Bearer <key>. Make keys in the console (Developers); no account yet? Start free, no credit card needed.GET /v1/me says which account a key belongs to and what it may do.
curl https://api.tcs-i.com/v1/me -H "x-api-key: $TCSI_KEY"
curl https://api.tcs-i.com/v1/me -H "Authorization: Bearer $TCSI_KEY" # the same
{ "account": "5555…", "name": "Acme Fulfilment", "scopes": ["pack", "read", "write"],
"key_kind": "test", "plan": "free", "region": "UK", "units": "metric" }Scopes
You choose what a key may do when you make it. A key made without choosing has read, write and pack.
| Scope | Allows |
|---|---|
read | Every GET: boxes, products, orders, results, reports, events, webhooks, the assistant, preferences, rules and settings. |
write | Every change to your data and settings: boxes, products, orders and what they were packed in, webhooks, preferences, box rules, cost parameters, the assistant's findings. |
pack | Box recommendations: POST /pack and recommending an order (billed with a live key; free with a test key). |
admin | The account itself: API keys, team invites, the plan, WMS logins and partner links. Only on a key made with it: give it to your own tooling or an agent setting the account up, not to a key that only syncs data. |
Test keys
Build and test before you go live: in Console > Developers, choose Test key when you create a key. It works on any plan, the free one too. POST /pack and recommending an order answer exactly as for a live key (the answer says "mode": "test"), but they're never billed, and they're kept out of your orders, reports and alarms. Everything under /v1 works; shipped and packed orders reported with a test key are checked and answered ("stored": "test") but not stored for monitoring. A test key makes up to 500 recommendations a day (UTC), then answers 429. Other billed endpoints (/pack.png, batching, shipping) need a live key.
Postman
Every public endpoint as a Postman collection, with example bodies: download tcs-i.postman_collection.json, import it, and set the api_key variable to a test key. It's made from the same document as GET /v1/openapi.json, so it's always up to date.
Conventions, units and errors
The same rules hold on every /v1 endpoint. Only box recommendations are billed; everything else under /v1 is free on every plan, including the free one.
| How it works | |
|---|---|
brand | A 3PL names the brand (client account) on each call, in the body or as ?brand=. A single brand leaves it out; its data comes back as brand null. |
dimension_unit, weight_unit | Sizes you send may be in cm, mm or in, and kg, g or lb. A write answers in the units it was sent in; a read answers in cm and kg unless you ask with ?dimension_unit= or ?weight_unit=. |
limit, cursor | Lists return { data, next_cursor }. Pass next_cursor back as ?cursor= for the next page; up to 500 a page (default 100). |
PUT | Creates the thing, or changes it to what you send: safe to repeat, so retries never make duplicates. Sending something again as it is changes nothing: nothing is written or sent to your WMS, no webhook goes out, and the bulk calls answer result: unchanged. So a nightly sync of everything is fine. |
Assistant fixes | When the assistant fixes a size or tag from what packers shipped, you hear it as product.updated (changed_by: assistant). Copy it into your system. If your next sync still sends the old value, the fix stays (the bulk result says kept_assistant_fix); a different value is a new measurement and wins. |
Fields | A field the API doesn't know is a 422 that names it and lists the fields, so a typo never passes as done. Fields a read returns (status, updated_at…) may be sent back as they are. |
Your WMS | If a brand is connected to a WMS TCS-i keeps in step with, a change goes to that WMS first. If the WMS refuses it, nothing is saved (wms_refused, 502). |
Errors
Every error has the same shape, with a message written for the person who has to fix it.
HTTP/1.1 409 Conflict
{ "error": { "code": "conflict",
"message": "Several brands have a box 'STD' (Acme, Voxy): send ?brand=." },
"detail": "Several brands have a box 'STD' (Acme, Voxy): send ?brand=." }| Status | code | Means |
|---|---|---|
400, 422 | invalid_request | Something in the request is wrong: the message names the field. |
401 | unauthorized | No API key. |
402 | payment_required | A live key asking for a recommendation on the free plan. Use a test key, or upgrade. |
403 | forbidden | The key isn't valid, or lacks the scope the call needs (the message says which). |
404 | not_found | No such box, product, order… |
409 | conflict | It can't be done as things stand (already exists, already packed, several brands match). |
429 | rate_limited | A test key's 500 recommendations a day. |
502 | wms_refused | Your WMS refused the change; nothing was saved. |
503 | unavailable | Try again shortly. |
Link your own system
You link once, and from then on products, boxes and orders arrive by themselves. A third-party WMS (ShipHero, Mintsoft and others) links in one click from the console's Integrations page. For a system you built, add these calls, each at the moment it says. The same guide is in the console under Integrations, where each step turns green as TCS-i sees it happen.
| Step | In your system, when… | Call |
|---|---|---|
1. key | Once, to start | In the console's Integrations > Your own system, press Make a test key (free while you build) and run the one-line example it gives you: every step goes green. Then GET /v1/me from your own code, and swap in a live key (Developers) to go live. |
2. boxes | Once, and when your box list changes | PUT /v1/boxes/{box_id} or POST /v1/boxes/bulk |
3. products | A product is created or changed, or a nightly sync | PUT /v1/products/{sku} or POST /v1/products/bulk |
4. orders | An order is released for packing | POST /v1/orders, then POST /v1/orders/{order_id}/recommend |
5. show the plan | A packer opens the order | Show recommendation.view_url (the 3D plan) on your packing screen, or use TCS-i's packing screen |
6. packed | The packer finishes the order | POST /v1/orders/{order_id}/packed |
7. changes | TCS-i changes something, e.g. the assistant fixes a size | POST /v1/webhooks { url }, then POST /v1/webhooks/{webhook_id}/test (see Webhooks and events), or read GET /v1/events on each run: either turns the step green |
Testing: GET /v1/setup says what's done and which call comes next; GET /v1/integrations/check gives every step with done true or false, the latest call it saw, and counts (for example, products still without a size). Every endpoint here is free except the recommendation. Prefer to plan it with us? Book a 20-minute call with an integration engineer.
Set up with an AI agent (MCP)
An AI agent such as Claude can set your account up and run it: load your boxes and products, write your packing rules, connect your webhook, link a WMS, and tell you what the reports say. It uses TCS-i through the Model Context Protocol (Streamable HTTP, JSON-RPC 2.0) at https://api.tcs-i.com/mcp, with the same API keys and the same rules as the REST API.
setup_status, which tells it what's already in place and which calls are left.{
"mcpServers": {
"tcs-i": {
"type": "http",
"url": "https://api.tcs-i.com/mcp",
"headers": { "Authorization": "Bearer YOUR_TCSI_API_KEY" }
}
}
}In the Claude apps: add a custom connector with the server URL https://api.tcs-i.com/mcp. Claude sends you to TCS-i to sign in; you see what is asking and choose what it may do, whether it starts in test mode, and how long: for 30 days (its access lasts an hour at a time and Claude renews it; then you sign in again) or until you revoke it. Then press Connect. No key to copy: Claude gets an API key of its own, which you can see and revoke in the console under Developers. Only an admin of your organisation can connect an app (Claude's guide to custom connectors).
Set my warehouse up on TCS-i. Start with setup_status and do what it lists under "next". My boxes are in boxes.csv and my products in products.csv (sizes in inches). Soft goods may go in mailers. Two of SKU MUG-01 always go in CARTON-M. Send events to https://wms.example.com/tcs-i and test it. Ask me before deleting anything.
| Tools | Cost | What they do |
|---|---|---|
setup_status | Free | Where the account stands and the calls still to make. Start here. Same as GET /v1/setup. |
save_box · list_boxes · delete_box | Free | Your boxes: create or change, list, delete. |
save_product · list_products · archive_product | Free | Your products with sizes and packing tags. |
create_order · list_orders | Free | Orders from SKUs and quantities. |
recommend_order | Billed | The box(es) for an order, with the 3D view link (free with a test key). |
mark_packed | Free | Record what an order went in. |
get_packing_preferences · update_packing_preferences · save_box_rule · list_box_rules | Free | How TCS-i packs: preferences, and rules such as "two mugs always go in CARTON-M". |
get_cost_settings · update_cost_settings | Free | Read or change the cost parameters behind the money in reports. |
save_webhook · list_webhooks · list_events | Free | Send events to your system (and test it), or read the feed. |
list_recommendations · get_report · packing_kpis · weekly_waste | Free | Results and reports: what was recommended and packed, summary, costs, box usage, products, brands. |
assistant_findings · decide_finding | Free | What the assistant fixed or needs a person for; undo, keep, done or dismiss. |
recommend_box | Billed | Pack a one-off order described in full. Same as POST /pack. |
report_shipped | Free | An order packed elsewhere. Same as POST /v1/shipped. |
api_reference | No key | Every endpoint in one line each; one endpoint's parameters and body. |
api_get · api_write · api_delete | As the endpoint | Read, change or delete through any /v1 endpoint: team, API keys, linking a WMS, packing stations, notifications, re-checks, exports. |
Tools follow the REST rules exactly: the free ones work on any plan, the billed ones are billed as their endpoint, and a key's scopes apply. Every tool says whether it only reads or can change data, so Claude asks before a change. api_reference with api_get, api_write and api_delete reach every endpoint in the reference, so an agent is never limited to the named tools. Building your own agent without MCP? Point it at llms.txt and the OpenAPI document.
Webhooks and eventsFree on every plan
TCS-i tells your system when something happens, so it never has to poll: an order gets its box or is packed, a product changes (including a size the assistant fixed from your packers' shipments), a box or a packing rule changes in the console. Add a webhook in the console (Developers) or with POST /v1/webhooks. Each delivery is a signed POST with the event; product and box events carry the product or box as it is now. Prefer to poll? The same events are a feed at GET /v1/events, with ids only: read the product or box with its GET. The endpoints are in the reference.
| Event | When |
|---|---|
order.created · order.recommended · order.packed · order.cancelled | An order arrives, gets its box, is packed or is cancelled. data.test is true for an order made with a test key |
product.created · product.updated · product.archived | A product is added (or brought back), changed or retired. On product.updated, fields lists only what changed, and changed_by is account (the console or your API calls) or assistant (with reason) |
box.created · box.updated · box.deleted | A box is added, changed or deleted |
box_rule.created · box_rule.updated · box_rule.deleted | A packing rule is added, changed (or switched on or off) or deleted, in the console or through the API: data has rule_id and name |
integration.connected · integration.disconnected | A system is linked or unlinked |
webhook.test | The test ping (POST /v1/webhooks/{webhook_id}/test). Never in the feed |
A delivery
POST https://your-system.example.com/tcs-i/events
TCS-Signature: t=1762941000,v1=5f2c…
TCS-Event: product.updated
TCS-Delivery: 1042
{
"id": "evt_88213",
"type": "product.updated",
"created_at": "2026-11-12T08:10:00Z",
"data": {
"sku": "TEE-M", "brand": null,
"changed_by": "assistant", "reason": "size_fixed",
"fields": ["length", "width", "height"],
"product": { "sku": "TEE-M", "length": 31, "width": 21, "height": 2, "size_set_by": "assistant", ... }
}
}Check the signature
TCS-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of "t.body">, made with your webhook's secret over the raw body exactly as received. Refuse a delivery whose signature doesn't match or is older than 5 minutes.
// Node: check a delivery before trusting it (Express, raw body)
import crypto from "node:crypto";
function verified(rawBody, header, secret) {
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
const age = Math.abs(Date.now() / 1000 - Number(parts.t));
if (!parts.t || age > 300) return false; // older than 5 minutes: refuse
const expected = crypto.createHmac("sha256", secret).update(`${parts.t}.${rawBody}`).digest("hex");
return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1 || ""));
}
# Python
import hmac, hashlib, time
def verified(raw_body: str, header: str, secret: str) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
if abs(time.time() - int(parts["t"])) > 300:
return False
expected = hmac.new(secret.encode(), f"{parts['t']}.{raw_body}".encode(), hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, parts.get("v1", ""))Retries
Answer with any 2xx within 10 seconds. Otherwise TCS-i tries again after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours, then marks the delivery failed (you can send it again from the console or the API). A webhook whose deliveries all fail for 5 days is switched off. Redirects aren't followed. An event can arrive more than once, and not always in order: use its id to skip one you've seen, and created_at to order them.
Reference clients
One file each, with no dependencies, to copy into your own system: the everyday calls by name, any other endpoint through request, paging, errors, and the webhook signature check. Each comes with an example in-house WMS that runs the whole loop once with a test key (sync boxes and products, send an order, show the box, report it packed, read the events) and a webhook receiver. The examples keep everything they make under the brand "TCS-i example", so your own catalogue and orders are never touched. They're tested against the API on every release.
| File | What |
|---|---|
| tcsi.py | Python 3.8+ client, standard library only; verify_webhook |
| example_inhouse_wms.py | TCSI_KEY=… python example_inhouse_wms.py (the loop), or … serve 8080 (webhooks) |
| tcsi.mjs | Node 18+ client, no dependencies; verifyWebhook |
| example-inhouse-wms.mjs | TCSI_KEY=… node example-inhouse-wms.mjs (the loop), or … serve 8080 (webhooks) |
# Python 3.8+ (standard library only)
curl -O https://api.tcs-i.com/v1/clients/tcsi.py
from tcsi import TcsI, verify_webhook
tcs = TcsI("your-test-key")
print(tcs.setup()["next"]) # what's left to set up
tcs.sync_boxes([{"id": "CARTON-M", "length": 40, "width": 30, "height": 20}])
tcs.sync_products([{"sku": "TEE-M", "length": 30, "width": 20, "height": 2, "is_flexible": True}])
tcs.create_order("SO-1", [{"sku": "TEE-M", "quantity": 2}])
plan = tcs.recommend("SO-1") # plan["recommendation"]["boxes"], ["view_url"]
tcs.packed("SO-1", packed_by="ann")
last_seen = last_seen or tcs.latest_event_id() # first run: start from now
for event in tcs.events(after=last_seen): # or a webhook: verify_webhook(secret, header, raw_body)
...
for row in tcs.recommendations(status="packed"): # packing results
...
tcs.report("summary", window="30d")
tcs.request("GET", "/v1/packing-stations") # anything else in the reference
// Node 18+ (no dependencies)
curl -O https://api.tcs-i.com/v1/clients/tcsi.mjs
import { TcsI, verifyWebhook } from "./tcsi.mjs";
const tcs = new TcsI("your-test-key");
await tcs.createOrder("SO-1", [{ sku: "TEE-M", quantity: 2 }]);
const { recommendation } = await tcs.recommend("SO-1");
await tcs.packed("SO-1", { packedBy: "ann" });All endpoints
Every endpoint the API serves. Each console page has its calls here: pick one to see its section. In a section, a row marked More opens to show its parameters.
174 of 174 endpoints
Account and setupFree on every plan
Start with GET /v1/setup. It tells you (or an AI agent working for you) what is already in place and exactly which calls are left, so nobody has to piece that together from ten endpoints.
GET/v1/setupWhere the account stands and which calls are left to make
GET/v1/meThe API key's account and scopes
GET/v1/brandsThe account's brands (client accounts)
curl https://api.tcs-i.com/v1/setup -H "x-api-key: $TCSI_KEY"
{ "account": { "id": "5555…", "name": "Acme Fulfilment", "plan": "free", "region": "UK", "units": "metric" },
"key": { "kind": "test", "scopes": ["pack", "read", "write"] },
"linked": [],
"counts": { "boxes": 3, "products": 2, "products_without_size": 0, "box_rules": 0, "webhooks": 0 },
"steps": [ { "key": "boxes", "title": "Send your boxes", "done": true, "detail": "3 active boxes", … }, … ],
"done": 3, "total": 6,
"next": [ { "step": "orders", "title": "Send orders and ask for the box",
"why": "An order sent and recommended is the first box TCS-i picks for you.",
"call": "POST /v1/orders, then POST /v1/orders/{order_id}/recommend",
"docs": "https://www.tcs-i.com/api-docs/#orders-endpoints" }, … ] }BoxesFree on every plan
The boxes, mailers and bags your packers choose from. Sizes are inside measurements.
GET/v1/boxesList boxes (?brand, ?status, ?limit, ?cursor)
GET/v1/boxes/{box_id}One box (?brand)
POST/v1/boxesCreate a box (free)
PATCH/v1/boxes/{box_id}Change a box's fields
PUT/v1/boxes/{box_id}Create or replace a box: safe to repeat
DELETE/v1/boxes/{box_id}Delete a box (?brand; without it, every brand's)
GET/v1/standard-boxesStandard carton sizes on sale in the account's region
POST/v1/boxes/bulkCreate or replace up to 500 boxes
POST/v1/boxes/bulk-deleteDelete up to 500 boxes: one result each
GET/v1/boxes/wms-syncEach ShipHero brand's box sync, and why it's off where it is
POST/v1/boxes/push-to-wmsAdd a brand's boxes that ShipHero doesn't have yet to ShipHero (?brand, ?dry_run)
POST/v1/boxes/from-shipmentsAdd the boxes packers used on these orders that TCS-i doesn't have yet
POST/v1/boxes/{box_id}/to-brandsGive a box saved for all brands to the brands named
PATCH/v1/boxes/{box_id}/everywhereSwitch a ShipHero-linked box off or on for every brand on the login
Fields
| Field | Type | Description |
|---|---|---|
id | string | Your id for the box. Ids with a slash are sent URL-encoded (%2F). |
brand | string | The brand (client account); leave out for a single brand. |
name | string | What packers call it. |
length, width, height | number | Inside measurements, in dimension_unit. |
max_weight | number | The most it may hold, in weight_unit. |
is_mailer | boolean or null | A bag or mailer that wraps around what's in it. Null: decided by the name. |
status | active | disabled | Disabled boxes are kept but never recommended. |
mailer | boolean | Read only. Whether TCS-i treats it as a bag or mailer: is_mailer, or else its name. |
wms_box_id | string or null | Read only. The box it's linked to in a connected WMS. |
curl -X PUT https://api.tcs-i.com/v1/boxes/CARTON-S \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TCSI_KEY" \
-d '{ "name": "Small carton", "length": 12, "width": 9, "height": 4,
"dimension_unit": "in", "max_weight": 10, "weight_unit": "lb" }'
{ "id": "CARTON-S", "brand": null, "name": "Small carton",
"length": 12, "width": 9, "height": 4, "dimension_unit": "in",
"max_weight": 10, "weight_unit": "lb", "is_mailer": null, "mailer": false,
"status": "active", "wms_box_id": null }ProductsFree on every plan
Your products (SKUs), with their sizes and how they may be packed. TCS-i's assistant also corrects sizes and tags from what your packers actually ship; size_set_by tells you who set a size last. Sync changes into your own system with ?updated_since=.
GET/v1/productsList products (?brand, ?q, ?updated_since, ?limit, ?cursor)
POST/v1/productsCreate a product (free)
DELETE/v1/products/{sku}Retire a product: archived and kept; sending it again brings it back
POST/v1/products/bulkCreate or update up to 500 products
POST/v1/products/bulk-archiveRetire up to 500 products: one result each
POST/v1/products/confirm-suggestionsAccept the tags TCS-i suggested but wasn't sure of (?sku, ?brand)
Fields
| Field | Type | Description |
|---|---|---|
sku | string | The product's code. |
brand | string | The brand (client account); leave out for a single brand. |
name | string | Its name. |
length, width, height | number | Outside measurements as packed, in dimension_unit. Required for a new product. |
is_flexible | boolean | Soft goods (clothes, textiles): fold and squeeze to fit. |
is_fragile | boolean | Packed with room for protection. |
bag_allowed | boolean | May ship in a bag or mailer. |
own_container | boolean | Ships in its own box, never inside another. |
is_rotatable, is_cylinder | boolean | May be turned on its side; is round (null: decided by the name). |
weight | number or null | One unit's weight, in weight_unit (kg, g or lb). With it, a box's max_weight and your max parcel weight count for every order, without each order line carrying a weight. null: not known. |
size_set_by | customer | assistant | null | Read only. Who set the size last: you (console or API), the assistant (learned from shipments), or neither (from a WMS or an import). |
status | active | archived | Read only. Archived products are hidden unless you ask for them; sending one again brings it back. |
updated_at | string | Read only. When it last changed (what ?updated_since= filters on). |
curl -X POST https://api.tcs-i.com/v1/products/bulk \
-H "Content-Type: application/json" \
-H "x-api-key: $TCSI_KEY" \
-d '{ "dimension_unit": "cm", "products": [
{ "sku": "TEE-M", "name": "T-shirt M", "length": 30, "width": 20, "height": 3,
"is_flexible": true, "bag_allowed": true },
{ "sku": "MUG-01", "length": 12, "width": 9, "height": 10, "is_fragile": true }
] }'
{ "data": [ { "sku": "TEE-M", "brand": null, "result": "created" },
{ "sku": "MUG-01", "brand": null, "result": "updated" } ],
"created": 1, "updated": 1, "unchanged": 0, "failed": 0 }OrdersFree on every planRecommend is billed
Orders your own system (or an AI agent) sends, with or without a WMS. Send the SKUs and quantities; TCS-i fills in sizes, tags and boxes from your products and boxes. Ask for the box, then say what it went in: that's what the reports and the assistant learn from. Only the recommendation is billed.
GET/v1/ordersList orders (?brand, ?status, ?source, ?created_since, ?q, ?limit, ?cursor)
GET/v1/orders/{order_id}One order (?brand)
POST/v1/ordersCreate an order (free)
PUT/v1/orders/{order_id}Create or replace an order: safe to repeat
PATCH/v1/orders/{order_id}Change an order's number, note or lines
POST/v1/orders/bulkCreate or replace up to 500 orders
POST/v1/orders/{order_id}/cancelCancel an order
POST/v1/orders/{order_id}/recommendThe box(es) for an order: billed as /pack; needs the pack scope
POST/v1/orders/{order_id}/packedRecord the box(es) an order went in
POST/v1/pack-inputThe complete /pack body for SKUs and quantities (free)
Fields
| Field | Type | Description |
|---|---|---|
order_id | string | Your id for the order. |
order_number | string | What packers see. |
brand | string | The brand (client account); leave out for a single brand. |
lines | array | [{ sku, quantity (default 1), name?, length?, width?, height?, weight? }]. Sizes and weight are only needed for a SKU TCS-i doesn't know yet, or to override it for this order; weight lets a box's max_weight count. |
note | string | Kept with the order. |
recommendation | object | Read only. { request_id, view_url, recommended_at, boxes: [{ id, name, dims, items }], unpacked }. |
packed | object | Read only. { boxes, packed_at, packed_by } as you reported it. |
status | open | recommended | packed | cancelled | Read only. open: no recommendation yet (or its lines changed since). packed can't change any more. |
source, created_at, updated_at | Read only. |
curl -X POST https://api.tcs-i.com/v1/orders \
-H "Content-Type: application/json" -H "x-api-key: $TCSI_KEY" \
-d '{ "order_id": "SO-10042", "order_number": "10042",
"lines": [ { "sku": "TEE-M", "quantity": 2 }, { "sku": "MUG-01" } ] }'
curl -X POST https://api.tcs-i.com/v1/orders/SO-10042/recommend -H "x-api-key: $TCSI_KEY"
{ "order_id": "SO-10042", "status": "recommended",
"recommendation": { "request_id": "6f1c…", "view_url": "https://api.tcs-i.com/pack/view/6f1c…",
"boxes": [ { "id": "CARTON-M", "name": "Medium carton", "dims": [40, 30, 20], "items": 3 } ],
"unpacked": 0 },
"solution": { … } }
curl -X POST https://api.tcs-i.com/v1/orders/SO-10042/packed \
-H "Content-Type: application/json" -H "x-api-key: $TCSI_KEY" -d '{ "packed_by": "ann" }'Packing resultsFree on every plan
Every box TCS-i has recommended and what was actually packed: the console's Orders page. Unlike /v1/orders, this covers every source, including orders a linked WMS sent and direct POST /pack calls. Use it to pull results into your own reporting, find orders packed in a bigger box, or re-check past orders after changing boxes or preferences.
GET/v1/recommendationsEvery box recommendation and what was packed, newest first
POST/v1/recommendations/dismissTake orders that won't be packed off Not packed yet
POST/v1/recommendations/recheckRe-check past orders with today's boxes, sizes and preferences
POST/v1/recommendations/recheck/restorePut back what the last re-check changed
GET/v1/recommendations/{request_id}One recommendation with its 3D plan and what was packed
POST/v1/auditStart an audit of orders a linked WMS shipped without guidance
POST/v1/recommendations/{request_id}/tryTry a change on a past order: solve it again with what you send
Fields
| Field | Type | Description |
|---|---|---|
request_id | string | The recommendation's id (also in an order's recommendation.request_id). |
order_id, order_number | string | The order it was for. |
brand | string or null | The brand (client account). |
created_at | string | When the recommendation was made. |
recommended_boxes | array | The box ids TCS-i chose. |
status | packed | awaiting | expired | closed | cancelled | dismissed | null | awaiting: not packed yet. null: packing isn't tracked for this source. |
packed_at | string or null | When it was packed. |
box_state | same | bigger | smaller | null | The box used against the one recommended. |
parcels, carrier, service, tracking_numbers, shipping_cost | From the shipping label, where a linked WMS gives it. | |
rechecked | object or null | Set when a re-check replaced the recommendation: { at, changed, original_boxes }. |
view_url | string | The packer's 3D view. |
request, plan, packed, box_comparison, reasons | With ?detail=full, and always for one recommendation. |
# Yesterday's orders that went in a bigger box than recommended
curl "https://api.tcs-i.com/v1/recommendations?status=packed&box_state=bigger&from=2026-11-11T00:00:00Z" \
-H "x-api-key: $TCSI_KEY"
{ "data": [ { "request_id": "6f1c…", "order_id": "SO-10042", "order_number": "10042", "brand": null,
"created_at": "2026-11-11T09:14:02Z", "items": 3, "recommended_boxes": ["CARTON-M"],
"status": "packed", "packed_at": "2026-11-11T09:40:10Z", "box_state": "bigger",
"view_url": "https://api.tcs-i.com/pack/view/6f1c…", … } ],
"next_cursor": "2026-11-11T09:14:02.118Z" }
# One of them in full: the 3D plan, the request and what was packed
curl https://api.tcs-i.com/v1/recommendations/6f1c… -H "x-api-key: $TCSI_KEY"Shipped ordersFree on every planNever billed
Tell TCS-i what an order actually shipped in when it was packed elsewhere: its items and the box or boxes used. Any system can send it, on every plan. Orders you sent to POST /pack get their packed box recorded (plan followed, fill, money and CO2 then work for your system). Other orders are kept for monitoring: boxes used, fill, packaging CO2, the EU 50% empty-space limit, and a rough weekly missed saving (worked out on a sample of up to 30 orders per brand a week, and always labelled an estimate).
POST/v1/shipped/batchUp to 200 shipped orders at once
Fields
| Field | Type | Description |
|---|---|---|
order_id | string, required | Your order's id. The first report of an order wins. |
order_number | string | The number shown to packers. |
brand | string | The client account (3PLs): the brand the order is for. |
shipped_at | ISO 8601 | When it shipped. Default: now. |
dimension_unit | cm | mm | in | Units for every size below. Default cm. |
weight_unit | kg | g | lb | Default kg. |
items[] | array, required | sku, name, length, width, height, weight, quantity (default 1). |
boxes[] | array, required | Each box: box_id or name (matched to your boxes in TCS-i), and/or length, width, height (a box TCS-i doesn't know is used as sent); is_mailer for bags and mailers. |
stored (answer) | read_back | monitored | monitored_solved | already | read_back: the order was sent to /pack and its packed box is now recorded. monitored: kept as it shipped. monitored_solved: also one of the week's sample. already: reported before, nothing changed. |
curl -X POST https://api.tcs-i.com/v1/shipped \
-H "Content-Type: application/json" \
-H "x-api-key: $TCSI_KEY" \
-d '{
"order_id": "SO-10042",
"order_number": "10042",
"brand": "Lumen Candles",
"shipped_at": "2026-11-09T14:05:00Z",
"dimension_unit": "cm",
"items": [
{ "sku": "CNDL-L", "length": 12, "width": 10, "height": 10, "weight": 0.8, "quantity": 2 }
],
"boxes": [ { "name": "Carton 4", "length": 40, "width": 30, "height": 20 } ]
}'
{ "order_id": "SO-10042", "request_id": "6f1c…", "stored": "monitored_solved" }Packing preferences and box rulesFree on every plan
The same settings as the console's Packing preferences and Packing rules pages. They go into every /pack request TCS-i builds for you (/v1/pack-input and /v1/orders/{order_id}/recommend). /pack itself reads none of them.
GET/v1/packing-preferencesThe account's packing preferences
PATCH/v1/packing-preferencesChange packing preferences
GET/v1/box-rulesBox rules
POST/v1/box-rulesAdd a box rule
PUT/v1/box-rules/{rule_id}Replace a box rule
PATCH/v1/box-rules/{rule_id}Switch a box rule on or off
POST/v1/box-rules/{rule_id}/auto-layoutLay a box rule out with the engine and save it
POST/v1/box-rules/similarWhat a rule's 'products like this' lines would also match
PUT/v1/box-rules/{rule_id}/layoutSave a layout of your own for a box rule
POST/v1/box-rules/{rule_id}/photosAdd a photo packers see with the rule (the image is the body)
GET/v1/box-rules/{rule_id}/photos/{photo_id}A rule's photo (?size=full|thumb)
# Two mugs always go in CARTON-M, laid out by the engine
curl -X POST https://api.tcs-i.com/v1/box-rules \
-H "Content-Type: application/json" -H "x-api-key: $TCSI_KEY" \
-d '{ "name": "Two mugs", "items": [ { "sku": "MUG-01", "qty": 2 } ],
"box_ids": ["CARTON-M"], "note": "Wrap each", "auto_layout": true }'
# Fragile items needn't sit on top; 1.5 cm of void fill around everything
curl -X PATCH https://api.tcs-i.com/v1/packing-preferences \
-H "Content-Type: application/json" -H "x-api-key: $TCSI_KEY" \
-d '{ "fragile_on_top": false, "void_fill_cm": 1.5 }'Cost parametersFree on every plan
What the money in your reports is worked out from: your currency, carrier discounts, what an hour of packing and a litre of void fill cost you, and the period to compare against. TCS-i starts from sensible defaults for your region; set your own so the savings are in your numbers.
GET/v1/cost-settingsThe cost parameters the money in reports is worked out from
PUT/v1/cost-settingsChange cost parameters: only the fields sent
GET/v1/carrier-servicesThe carrier services priced in the account's region
curl -X PUT https://api.tcs-i.com/v1/cost-settings \
-H "Content-Type: application/json" -H "x-api-key: $TCSI_KEY" \
-d '{ "currency": "GBP",
"labour": { "wage_per_hour": 13.5 },
"void_fill": { "kind": "paper", "price_per_litre": 0.02 },
"cost_discounts": { "royal_mail_tracked_48": 22 } }'
{ "currency": "GBP", "cost_discounts": { "royal_mail_tracked_48": 22 }, "us_zone": 5, "cost_baseline": null,
"labour": { "wage_per_hour": 13.5, "void_fill_seconds_per_litre": 1.5, "box_choice_seconds": 10, "source": { … } },
"void_fill": { "kind": "paper", "price_per_litre": 0.02, "source": "account" }, … }AssistantFree on every plan
TCS-i's assistant compares what your packers actually shipped (POST /v1/orders/{order_id}/packed or /v1/shipped) with the box it recommended. Where the shipments prove the data wrong, it fixes the data itself: a product's size, a soft product's squeeze, Bag allowed, a box's record. Each fix can be undone. What it can't decide alone is listed for a person. Its fixes also arrive as product.updated events (changed_by: assistant).
GET/v1/assistantThe assistant: what it fixed, what it backed out, what needs you
POST/v1/assistant/runRun the assistant's check now
POST/v1/assistant/findings/{finding_id}/{action}keep, undo, done or dismiss a finding
InsightsFree on every plan
The two headline answers, for your own BI or an AI agent: how packing with guidance is going, and the monitoring week.
GET/v1/insights/packingPlan followed, fill and money over orders packed with guidance
GET/v1/insights/monitoringThe free monitoring week
ReportsFree on every plan
The tables behind the console's Overview, Reports and Cost pages. Each answers exactly what the console's page shows, so a number in your BI tool matches the one on screen.
GET/v1/reports/summaryOrders, packed, plan followed and fill over a window
GET/v1/reports/costsPackaging, postage and labour money over a window
GET/v1/reports/box-usageEach box: recommended, used and fill
GET/v1/reports/box-usage/monthlyBoxes used in a month (?month=YYYY-MM, ?format=csv)
GET/v1/reports/productsProducts that waste the most space
GET/v1/reports/brandsA 3PL's scorecard, brand by brand
POST/v1/reports/exportA short-lived link to download everything the account holds
curl "https://api.tcs-i.com/v1/reports/summary?window=30d&brand=Voxy" -H "x-api-key: $TCSI_KEY" # The month's box usage as a CSV, for reordering curl "https://api.tcs-i.com/v1/reports/box-usage/monthly?month=2026-11&format=csv" -H "x-api-key: $TCSI_KEY"
Events and webhooksFree on every plan
Hear about changes instead of polling for them. How deliveries, signatures and retries work is in the Webhooks and events guide.
GET/v1/eventsPublic events after an id, oldest first (the event feed)
GET/v1/webhooksYour webhooks
POST/v1/webhooksAdd a webhook: its secret is shown once
GET/v1/webhooks/{webhook_id}One webhook
PATCH/v1/webhooks/{webhook_id}Change a webhook: url, events, description, active
POST/v1/webhooks/{webhook_id}/rotate-secretA new signing secret, shown once
POST/v1/webhooks/{webhook_id}/testSend a webhook.test ping now
GET/v1/webhooks/{webhook_id}/deliveriesA webhook's deliveries, newest first
Integrations and partnersFree on every planLinking needs the admin scope
What's linked to your account, the live check of your own system's connection, linking a third-party WMS (ShipHero, Mintsoft, Extensiv and the rest, all with the same body), the links between a 3PL and its brands (who pays, requests between you, a brand sending a rule or a product fix to its other 3PLs). Accepting a partner invitation stays with the person it was emailed to. A system of your own needs none of the linking calls: it just calls /v1. Anything that saves a login or decides who sees your data needs a key with the admin scope. Brands that share one login (a 3PL's ShipHero login, a Mintsoft warehouse key) aren't packed until their Box check is saved: which of the login's boxes each brand uses.
GET/v1/integrationsWhat's linked: third-party WMSs and your own system
GET/v1/integrations/checkThe in-house integration check: each step from real traffic
GET/v1/integrations/systemsThe warehouse systems TCS-i links to and the details each needs
POST/v1/integrations/syncSync every linked brand now
POST/v1/integrations/{system}/previewCheck a WMS login and list its brands: nothing saved (admin scope)
POST/v1/integrations/{system}Link a WMS login for the brands named (admin scope)
POST/v1/partner-links/invite-brandA 3PL invites a brand to see its packing (admin scope)
POST/v1/partner-links/invite-warehouseA brand invites its 3PL (admin scope)
GET/v1/integrations/box-checkA shared login's boxes and which brands use each (?brand=, repeated)
PUT/v1/integrations/box-checkSave the Box check: which boxes each brand uses; starts their sync
PUT/v1/integrations/box-check/mailerMark a box on a shared login as a bag or mailer, or not
POST/v1/integrations/import-catalogueRead every linked brand's boxes and products from its WMS again
POST/v1/integrations/shiphero/{brand}/checkRun a brand's ShipHero connection check now
DELETE/v1/integrations/{system}Delete Mintsoft's key and unlink its brands (admin scope)
GET/v1/partner-links/compareA brand's 3PLs side by side (?window)
PUT/v1/partner-links/{link_id}/accessWhat the brand may change through a link: edit or view (admin scope)
PUT/v1/partner-links/{link_id}/labelA brand's own name for its 3PL (admin scope)
POST/v1/integrations/shiphero/include-brand-loginsBrands on their own ShipHero login join your 3PL login (admin scope)
POST/v1/integrations/shiphero/reset-boxesGive every brand on a ShipHero login ShipHero's boxes again (admin scope)
POST/v1/partner-links/push/{kind}/previewWhat sending a rule or product fix to your other 3PLs would do
POST/v1/partner-links/push/{kind}Send a rule or product fix to your other 3PLs, as previewed
PUT/v1/partner-links/{link_id}/brandWhich client in your WMS a brand that invited you is (admin scope)
POST/v1/partner-links/{link_id}/payerAsk to change who pays for a partner link (admin scope)
GET/v1/partner-requestsRequests between you and your partners: add a box, send sizes, a question
POST/v1/partner-requestsAsk your partner for something: add a box, send sizes, a question
POST/v1/partner-requests/{request_id}/{reply}Answer a request (done, declined) or withdraw yours
# What does each system need? -> shiphero: refresh_token; mintsoft: api_key; logiwa: email, password; …
curl https://api.tcs-i.com/v1/integrations/systems -H "x-api-key: $TCSI_KEY"
# Check the login and see its brands (nothing is saved)
curl -X POST https://api.tcs-i.com/v1/integrations/shiphero/preview \
-H "Content-Type: application/json" -H "x-api-key: $TCSI_ADMIN_KEY" \
-d '{ "credentials": { "refresh_token": "…" } }'
{ "account": "rapidpack", "is_3pl": true,
"brands": [ { "name": "Voxy", "external_id": "QWNjb3VudDo3", "status": "active" }, … ] }
# Link the brands you want; their boxes, products and orders start arriving
curl -X POST https://api.tcs-i.com/v1/integrations/shiphero \
-H "Content-Type: application/json" -H "x-api-key: $TCSI_ADMIN_KEY" \
-d '{ "credentials": { "refresh_token": "…" },
"brands": [ { "name": "Voxy", "external_id": "QWNjb3VudDo3" } ] }'
# Brands on a shared login: say which boxes each uses, then they're packed
curl "https://api.tcs-i.com/v1/integrations/box-check?brand=Voxy" -H "x-api-key: $TCSI_KEY"Settings and packing stationsFree on every plan
The console's Settings page and its Packing stations: region and units, which notifications are on and where they go (email, Slack, Google Chat), the note packers see for a brand, the packing PCs allowed to show your orders, and whether TCS-i writes the box onto the packing sheet in your WMS. Where notifications go, and a new station key, need the admin scope.
PUT/v1/account/regionSet the account's region (UK, US, CA)
PUT/v1/account/unitsSet the account's units (metric, imperial)
PATCH/v1/notificationsSwitch notifications on or off
PUT/v1/brand-notesSet or clear a brand's note
PUT/v1/packing-stations/settingsWhether stations join by themselves
POST/v1/packing-stations/joinAdd a station by the code on its screen
GET/v1/packing-stations/scan-reportWhat packers scanned and whether it found the order
PATCH/v1/packing-stations/{station_id}Rename a station
PUT/v1/notifications/channels/email/recipientsSet the extra email addresses and the ones switched off (admin scope)
PUT/v1/notifications/channels/{channel}Connect Slack or Google Chat by its incoming-webhook URL (admin scope)
POST/v1/packing-stations/keyA new station key for packing PCs to join with: shown once (admin scope)
PATCH/v1/wms-write-backSwitch writing the packing sheet back on or off
GET/v1/packing-stations/{station_id}/logsThe log files a packing station sent
GET/v1/packing-stations/{station_id}/logs/{log_id}One log file from a packing station
API keys, plan and teamNeeds the admin scope
The account itself, for your own tooling or an AI agent setting things up. All of it needs a key made with the admin scope, apart from reading the plan and the activity feed. A key can invite members and viewers but never make, change or remove an admin: that stays in the console.
POST/v1/api-keysCreate an API key: the secret is shown once (admin scope)
PATCH/v1/api-keys/{key_id}Pause or resume a key (admin scope)
DELETE/v1/api-keys/{key_id}Revoke a key for good (admin scope)
PATCH/v1/subscription/spend-capSet the spend alert (admin scope)
POST/v1/subscription/checkoutA Stripe Checkout link for a person to start the paid plan (admin scope)
POST/v1/team/invitesInvite a member or viewer by email (admin scope)
PATCH/v1/team/members/{user_id}Change a member's role: member or viewer (admin scope)
POST/v1/subscription/{change}pause, resume, cancel or reactivate the subscription (admin scope)
GET/v1/activityThe account's activity feed: who changed what, newest first
PUT/v1/team/domainsWhich email domains may be invited (admin scope)
PUT/v1/team/contactChange the account's contact email (admin scope)
# With a key that has the admin scope: a read-only key for your BI tool
curl -X POST https://api.tcs-i.com/v1/api-keys \
-H "Content-Type: application/json" -H "x-api-key: $TCSI_ADMIN_KEY" \
-d '{ "name": "bi-reader", "scopes": ["read"] }'
{ "key": { "id": "0b7e…", "name": "bi-reader", "last4": "x9Qd", "status": "active", "scopes": ["read"], "test": false },
"secret": "tcsi_…" } # shown once: store it nowPOST /packBilled per call
Works out a 3D packing plan (cartonization) from the items, the boxes to choose from, and your objective and constraints.
POST /v1/pack-input builds this body from your products and boxes, and POST /v1/orders/{order_id}/recommend does both steps in one call. Each call is billed and needs a key with the pack scope.POST/packThe box for a set of items: pure 3D packing from the request alone (billed)
GET/pack/lookupFind an order's packing plan by order number or barcode (the packing screen)
POST/pack/feedback/{request_id}A packer's report on a plan: the box used, or what was wrong
Request body
| Field | Type | Description |
|---|---|---|
items | array, required | The items to pack. See the Item object. |
bins | array | The boxes to choose from. May be left out for minimise_bounding_box and minimise_missing_height. |
objective | string | Default minimise_bins. See Objective. |
constraints | object | Rotation, fragility, centre of gravity, buffers, items that mustn't touch. See Constraints. |
cost_model | object | For minimise_total_cost: shipping base rate, rate per kg, DIM divisor. |
box_rule | object | One of your box rules for this order: the boxes and the layout to use. If it still fits these items and boxes the plan comes straight from it; otherwise the engine solves as normal. /v1/pack-input and /v1/orders/{order_id}/recommend fill it in from your rules. |
strategy | object | Solver tuning for POST /pack-evo. Without it the standard engine runs. |
metadata | object, required | Must name the order: metadata.order_number (your order number, as on the packing slip) or metadata.order_id. It's how what you report packed (POST /v1/orders/{order_id}/packed or /v1/shipped) is matched to this recommendation for plan followed, box fill and money; without it /pack answers 422. Anything else of yours is kept with the request (client_account…). |
// POST /pack
{
"metadata": { "order_number": "10042" },
"objective": "minimise_total_cost",
"items": [
{ "id": "I-001", "length": 2.0, "width": 4.0, "height": 4.0, "weight": 1.5, "label": "electronics", "is_cylinder": false },
{ "id": "I-002", "length": 5.0, "width": 5.0, "height": 2.0, "weight": 0.5, "label": "accessories", "is_cylinder": true }
],
"bins": [
{ "id": "B-001", "length": 10.0, "width": 10.0, "height": 10.0, "is_envelope": false, "fixed_cost": 2.0, "tare_weight": 0.2, "quantity": 2 }
],
"constraints": {
"rotation": true,
"fragility": ["I-001"],
"weight_distribution": { "max_per_layer": 10.0, "footprint": 5.0, "center_of_gravity": true, "min_support_ratio": 0.8 },
"forbidden_adjacency": [["electronics", "liquids"]],
"priority": ["I-001"]
},
"cost_model": { "ship_base": 0.6, "ship_rate_per_kg": 1.1, "dim_divisor": 5000.0, "dunnage_cost_per_volume": 0.05 }
}{
"solution": {
"num_bins_used": 1,
"bins": [
{ "id": "B-001", "length": 10.0, "width": 10.0, "height": 10.0,
"items": [
{ "id": "I-001", "origin_dims": [2.0, 4.0, 4.0], "rotation_instruction": "perm(0, 1, 2)",
"rotated_dims": [2.0, 4.0, 4.0], "position": [0.0, 0.0, 0.0], "is_cylinder": false },
{ "id": "I-002", "origin_dims": [5.0, 5.0, 2.0], "rotation_instruction": "perm(0, 2, 1)",
"rotated_dims": [5.0, 2.0, 5.0], "position": [2.0, 0.0, 0.0], "is_cylinder": true }
] }
],
"packed_item_ids": ["I-001", "I-002"],
"unpacked_item_ids": []
}
}Request and response models
The objects in a POST /pack request. Open one to see its fields. (* required)
Objective
| Value | Means |
|---|---|
minimise_bins | (Default) All items into the fewest boxes. |
minimise_unused_space | The boxes that leave the least empty space (less void fill). |
maximise_items | As many items as fit in a limited set of boxes. |
minimise_bin_costs | The lowest total box cost (fixed_cost). |
minimise_total_cost | The cheapest shipping plus material. Needs cost_model. |
minimise_bounding_box | Works out the smallest box that would hold the items. |
minimise_missing_height | Given a base (length and width), the lowest height needed. |
Constraints object
| Field | Type | Description |
|---|---|---|
rotation | boolean | Default true. Items may be turned. |
fragility | array of string | Item ids nothing may be stacked on. |
fragile_on_top | boolean | false stops keeping fragile items on top. Fragility from items' tags is then ignored, unless fragility is given. |
fragile_buffer_* | number | Room kept around fragile items (cm_per_side, volume). |
dimension_unit* | string | The unit sizes are in (dimension_unit, dimension_unit_source). |
weight_distribution | object | Needs item weight. max_per_layer (weight per layer), footprint (load per cell), center_of_gravity (boolean), min_support_ratio (0 to 1: how much of an item's base must be supported). |
forbidden_adjacency | array of pairs | Item labels that mustn't touch, e.g. [["Food", "Chemicals"]]. |
priority | array of string | Item ids to pack first when space is short. |
max_bin_limit | integer | The most boxes the engine may use. |
Cost model object
| Field | Type | Description |
|---|---|---|
ship_base | number | Shipping cost per box used. |
ship_rate_per_kg | number | Carrier cost per kg (item weights plus the box's tare weight). |
dim_divisor | number | Dimensional weight divisor (e.g. 4000 or 5000). 0 turns it off. |
dunnage_cost_per_volume | number | A cost per unit of empty space left in a box. |
Item object
| Field | Type | Description |
|---|---|---|
id * | string | Unique id (e.g. the SKU). |
name | string | A name to show. |
length, width, height * | number > 0 | Its size. |
weight | number >= 0 | Needed for weight_distribution and a box's max weight. |
label | string | A category, for forbidden_adjacency. |
is_cylinder | boolean | Round: nested as a cylinder. |
is_flexible | boolean | Soft goods that can fold or squash to fit. |
is_fragile | boolean | Needs a protective buffer. |
can_use_envelope | boolean | May go in a mailer or bag. |
can_rotate | boolean | This item's own rotation rule. |
buffer_* | number or string | Room kept around it (per_side, cm_per_side, volume, source, unit). |
Bin object
| Field | Type | Description |
|---|---|---|
id | string | The box or mailer's id. |
name | string | A name to show. |
length, width, height | number > 0 | Inside measurements. |
is_envelope | boolean | A flat mailer: length and width are its flat size. |
fixed_cost | number >= 0 | What the box costs, for minimise_bin_costs. |
tare_weight | number >= 0 | The empty box's weight, for cost models. |
quantity | integer >= 1 | How many of this box there are. |
OpenAPI and Postman
The public API as an OpenAPI 3 document: generate a client in any language, or import it into your integration platform. It lists every endpoint here, with the request and response schemas the API itself validates against. The same as a Postman collection, and in plain text for AI agents at llms.txt.
