# TCS-i API > TCS-i picks the smallest box for each parcel order, learns from what packers actually used, and fixes its data itself. Everything the console does is available through this API and, for AI agents, as MCP tools. Base URL: https://api.tcs-i.com. JSON in, JSON out. Docs for people: https://www.tcs-i.com/api-docs/ OpenAPI: https://api.tcs-i.com/v1/openapi.json. Postman: https://api.tcs-i.com/v1/postman.json. MCP: https://api.tcs-i.com/mcp ## If you are an AI agent setting an account up - A person must make the account (https://www.tcs-i.com/register/) and let you in: by signing in and approving you when your client asks (OAuth 2.1 with PKCE: POST /mcp answers 401 with the authorization server's address; the approver chooses a temporary connection, an hour-long access token renewed with a single-use refresh token for 30 days, or one that lasts until revoked), or by giving you an API key from Console > Integrations. You cannot sign up or accept terms for them. - Call GET /v1/setup first (MCP: setup_status). It says what is linked, what is missing, and `next`: the calls still to make, in order. - A test key is free and never billed (500 recommendations a day); its orders stay out of reports. Use one until the person says to go live. - Scopes: read, write, pack (recommendations), admin (API keys, team, plan, WMS logins, partner links). A key has admin only if it was made with it; a 403 names the scope that's missing. - Ask the person before deleting anything, inviting people, or linking a login. - Only box recommendations are billed (POST /pack, POST /v1/orders/{order_id}/recommend). Everything else is free on every plan. ## Rules on every endpoint - Auth: header x-api-key: , or Authorization: Bearer . - Brands: a 3PL names the brand (client account) in the body or as ?brand=; a single brand leaves it out (brand null). - Units: send dimension_unit (cm | mm | in) and weight_unit (kg | g | lb) with sizes; reads answer in cm and kg unless asked with ?dimension_unit= / ?weight_unit=. - Lists: { data, next_cursor }; pass next_cursor as ?cursor=; ?limit= up to 500. - PUT creates or replaces and is safe to repeat; sending something unchanged does nothing. - An unknown field is a 422 that names it. Errors: { error: { code, message, details? } } with codes invalid_request, unauthorized, payment_required, forbidden, not_found, conflict, rate_limited, wms_refused, unavailable. ## The whole loop ``` # 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" ``` ## Endpoints ### Account and setup 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/setup: Where the account stands and which calls are left to make. One call that says where the account stands: what's linked, how many boxes and products it has, each integration step with done true or false, and next: the calls still to make, in order, each with why and a link here. Reads only. Made for a developer's first hour and for AI agents. - GET /v1/me: The API key's account and scopes. { account, name, scopes, key_kind (customer | test), plan, region, units }. A first call to check a key. - GET /v1/brands: The account's brands (client accounts). { data: [{ brand }] }: the brands (client accounts) with boxes or products. A single brand's own data is brand null and isn't listed. ### Boxes The boxes, mailers and bags your packers choose from. Sizes are inside measurements. - GET /v1/boxes: List boxes (?brand, ?status, ?limit, ?cursor). ?brand=, ?status=active|disabled, ?limit=, ?cursor= - GET /v1/boxes/{box_id}: One box (?brand). ?brand= when several brands use the same id. - POST /v1/boxes: Create a box (free). 409 if the brand already has that id. Send brands: [ … ] to add it for several brands at once. - PATCH /v1/boxes/{box_id}: Change a box's fields. status: disabled takes the box out of new recommendations but keeps it. - PUT /v1/boxes/{box_id}: Create or replace a box: safe to repeat. Creates the box, or changes it to the fields you send. - DELETE /v1/boxes/{box_id}: Delete a box (?brand; without it, every brand's). One brand's copy with ?brand=, every brand's without. A box linked to a box in your WMS is deleted there first; 409 says what to do when it can't be (another brand uses it, or the WMS is read-only): switch it off with PATCH { "status": "disabled" } instead. Orders already recommended keep their box. Answers { id, deleted: [brand], wms }. - GET /v1/standard-boxes: Standard carton sizes on sale in the account's region. Common carton sizes on sale in your region, smallest first, with supplier and price: a starting list when you have no boxes yet. ?dimension_unit=in for inches. Add the ones you stock with PUT /v1/boxes/{box_id}. - POST /v1/boxes/bulk: Create or replace up to 500 boxes. Up to 500 boxes by brand and id, each created or changed; one already as sent is left alone. Answers { saved, unchanged }. - POST /v1/boxes/bulk-delete: Delete up to 500 boxes: one result each. { ids: [ … ], brand? }: each deleted as DELETE does. One result per id (deleted, not_found, or error with the reason, e.g. a box your WMS shares with another brand); one failing doesn't stop the rest. - GET /v1/boxes/wms-sync: Each ShipHero brand's box sync, and why it's off where it is. ?brand=. For each ShipHero brand: whether TCS-i keeps its boxes in step with ShipHero (two_way, read_only, off) and the reason. - POST /v1/boxes/push-to-wms: Add a brand's boxes that ShipHero doesn't have yet to ShipHero (?brand, ?dry_run). ?brand= (required), ?dry_run=true. The brand's boxes ShipHero doesn't have yet are added there and linked; a box ShipHero already has is linked, not duplicated. - POST /v1/boxes/from-shipments: Add the boxes packers used on these orders that TCS-i doesn't have yet. { request_ids: [ … ] } (up to 100, from GET /v1/recommendations). The boxes packers actually used on those orders that TCS-i doesn't have are added to your boxes. - POST /v1/boxes/{box_id}/to-brands: Give a box saved for all brands to the brands named. { brands: [ … ] }. A box saved for all brands (before brands had their own boxes) becomes each named brand's. - PATCH /v1/boxes/{box_id}/everywhere: Switch a ShipHero-linked box off or on for every brand on the login. ?brand= &{ active }. For a box linked to ShipHero on a two-way login: off (or on) for every brand on that login, and in ShipHero. ### Products 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/products: List products (?brand, ?q, ?updated_since, ?limit, ?cursor). ?brand=, ?q= (part of a SKU or name), ?updated_since= (ISO 8601), ?include_archived=true, ?limit=, ?cursor= - GET /v1/products/{sku}: One product (?brand) - POST /v1/products: Create a product (free). 409 if the brand already has that SKU. - PATCH /v1/products/{sku}: Change a product's fields - DELETE /v1/products/{sku}: Retire a product: archived and kept; sending it again brings it back. 204; ?brand=. The product is archived: kept with its data, left out of lists (?include_archived=true shows it) and checks, and still packs in an order that has it. Sending it again brings it back. - PUT /v1/products/{sku}: Create or update a product: safe to repeat - POST /v1/products/bulk: Create or update up to 500 products. Up to 500 products, each created, updated or unchanged (with kept_assistant_fix when your old value didn't undo an assistant fix). One result per product; one failing doesn't stop the rest. - POST /v1/products/bulk-archive: Retire up to 500 products: one result each. { skus: [ … ], brand? }: each retired as DELETE does. Answers one result per SKU (archived, unchanged, not_found). - POST /v1/products/confirm-suggestions: Accept the tags TCS-i suggested but wasn't sure of (?sku, ?brand). TCS-i suggests tags from a product's name (fragile, soft, bag allowed) and marks the ones it isn't sure of. This accepts them: ?sku= for one product, else every product (?brand=). Answers { confirmed }. ### Orders Orders your in-house WMS (or an AI agent) sends through the API. 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 counts as a job on your plan. - GET /v1/orders: List orders (?brand, ?status, ?source, ?created_since, ?q, ?limit, ?cursor). Newest first: ?brand=, ?status=, ?source= (api, mcp, console, csv), ?created_since=, ?q=, ?limit=, ?cursor= - GET /v1/orders/{order_id}: One order (?brand). With its recommendation (boxes, 3D view link) and what it was packed in. - POST /v1/orders: Create an order (free). order_id (yours), order_number, brand, lines [{ sku, quantity }], note. 409 if the brand already has that order_id. - PUT /v1/orders/{order_id}: Create or replace an order: safe to repeat. Creates it, or replaces it while it's open or recommended. Sent again as it is, it keeps its recommendation (and a packed one answers 200). - PATCH /v1/orders/{order_id}: Change an order's number, note or lines. Change order_number, note or lines (new lines send it back to open; a new number or note keeps the recommendation). - POST /v1/orders/bulk: Create or replace up to 500 orders. Up to 500 orders, each created, replaced or unchanged. One result each. - POST /v1/orders/{order_id}/cancel: Cancel an order. 409 once packed. Safe to repeat. - POST /v1/orders/{order_id}/recommend: The box(es) for an order: billed as /pack; needs the pack scope. The box(es), with the packer's 3D view link. A job on your plan: counted once per order a month; needs the pack scope. ?ships_as=parcel | pallets | auto when your pallet jobs are on (GET /v1/pallet-settings): the recommendation then carries pallets: { count, cartons, pallets: [{ height, weight, cartons }] }. - POST /v1/orders/{order_id}/packed: Record the box(es) an order went in. { boxes?: [{ box_id or name, or length, width, height, is_mailer? }], packed_by?, packed_at?, dimension_unit? }. Leave boxes out for the recommended ones. Safe to repeat. - POST /v1/pack-input: The complete /pack body for SKUs and quantities (free). The complete POST /pack body for { brand, lines }: your products and boxes, their tags, your packing preferences and the box rule the order matches. Free; nothing is solved. ### Packing results 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/recommendations: Every box recommendation and what was packed, newest first. Every box TCS-i recommended, from any source (your system's orders, a linked WMS, POST /pack), newest first. ?status= packed | awaiting (not packed yet, last 7 days) | expired | cleared; ?box_state= same | bigger | smaller (the box used against the one recommended); ?recommended_box=, ?recorded_box=; ?from=, ?to= (ISO 8601); ?brand=; ?q= (order number or SKU); ?order_by=created|packed; ?source=order (default) | experiment | audit | any; ?detail=full adds each one's plan; ?limit=, ?cursor=. - POST /v1/recommendations/dismiss: Take orders that won't be packed off Not packed yet. { request_ids: [ … ], reason? }: orders that will never be packed (cancelled in your system) leave "Not packed yet". - POST /v1/recommendations/undismiss: Put dismissed orders back - GET /v1/recommendations/recheck: The re-check of past orders: status and progress - POST /v1/recommendations/recheck: Re-check past orders with today's boxes, sizes and preferences. { days? } (default 30). Solves past orders again with today's boxes, sizes and preferences, so the reports show what your changes would have done. Never billed. 202, then poll GET; 409 while one is running. - POST /v1/recommendations/recheck/cancel: Stop the re-check - POST /v1/recommendations/recheck/restore: Put back what the last re-check changed. Puts back the recommendations the last re-check replaced. - GET /v1/recommendations/{request_id}: One recommendation with its 3D plan and what was packed. Everything in the list's row, plus request (what was solved), plan (the full 3D plan), packed (the boxes recorded when it was packed), box_comparison and reasons. - GET /v1/audit: The audit of orders shipped without guidance: status - POST /v1/audit: Start an audit of orders a linked WMS shipped without guidance. { days? } (up to 7). For a linked WMS: what the orders it shipped without guidance would have saved. - POST /v1/audit/cancel: Stop the audit - POST /v1/recommendations/{request_id}/try: Try a change on a past order: solve it again with what you send. The body is a POST /pack request: start from the request GET gives for the order and change what you want to test (another box, a tag off). Answers the plan. It's kept as an experiment, never as the order's recommendation, and needs the pack scope. ### Shipped orders 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: Report a shipped order and the box(es) it went in (free, never billed) - POST /v1/shipped/batch: Up to 200 shipped orders at once. { "orders": [ … ] } -> { "results": [ … ] } in the same order. ### Packing preferences, box rules and pallets 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-preferences: The account's packing preferences. { centre_of_gravity, rotation, fragile_on_top, min_support_pct, void_fill_cm, parcel_preference (fewest | balanced | least_space), extra_parcel_saving_pct, one_box_when_fits, max_parcel_kg, bags_allowed, big_order_shortcut }. null: TCS-i's default. - PATCH /v1/packing-preferences: Change packing preferences. { "fragile_on_top": false, "void_fill_cm": 1.5 }. null puts one back to the default. - GET /v1/pallet-settings: Pallet jobs: on or off, the pallet and when orders go on pallets. { enabled, auto_cartons, pallet: { name, length_cm, width_cm, deck_height_cm, tare_kg, max_height_cm, max_kg, distribution (BEST | EVEN | FULL_FIRST), interlock }, defaults }. Pallet jobs: B2B and wholesale orders planned in boxes, then stacked on pallets. Off until you switch them on. - PUT /v1/pallet-settings: Switch pallet jobs on or off, or change the pallet. { "enabled": true, "auto_cartons": 10, "pallet": { "max_height_cm": 180 } }: only what you send changes; pallet: null goes back to your region's standard pallet. Then every order you have recommended goes on pallets once its boxes reach auto_cartons (0: only when asked), or when you ask with ships_as. - GET /v1/box-rules: Box rules. ?brand=. A box rule: an order of exactly these SKUs and quantities goes in these boxes, laid out as stored. - GET /v1/box-rules/{rule_id}: One box rule, with its layout - POST /v1/box-rules: Add a box rule. { name, brand? (null: every brand), items: [{ sku, qty, match? (exact | similar), buffer_cm? }], box_ids, enabled?, note? (shown to the packer), auto_layout? }. With auto_layout: true the engine lays it out and it's saved; 422 says why if it can't. - PUT /v1/box-rules/{rule_id}: Replace a box rule. The same body as POST. Changing items or boxes clears the layout, unless auto_layout: true. - PATCH /v1/box-rules/{rule_id}: Switch a box rule on or off. { enabled } - DELETE /v1/box-rules/{rule_id}: Delete a box rule - POST /v1/box-rules/{rule_id}/auto-layout: Lay a box rule out with the engine and save it. A rule is used once it has a layout. - POST /v1/box-rules/similar: What a rule's 'products like this' lines would also match. { brand?, items: [{ sku, match: exact | similar }] }: what each "products like this" line would also match in your catalogue, before you save the rule. Changes nothing; a read key is enough. - PUT /v1/box-rules/{rule_id}/layout: Save a layout of your own for a box rule. { boxes: [[ unit, … ], … ] }: the units placed in each of the rule's boxes, in the rule's box order, as GET gives them under layout. Checked like any plan; 422 says what doesn't fit. - POST /v1/box-rules/{rule_id}/photos: Add a photo packers see with the rule (the image is the body). The image is the request body (Content-Type image/jpeg, image/png or image/heic), not JSON. Up to 3 photos a rule; packers see them with the plan. - GET /v1/box-rules/{rule_id}/photos/{photo_id}: A rule's photo (?size=full|thumb). The image. ?size=thumb for a small one. - DELETE /v1/box-rules/{rule_id}/photos/{photo_id}: Remove a rule's photo ### Cost parameters 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-settings: The cost parameters the money in reports is worked out from. { currency, cost_discounts (% off list, per carrier service), underpaid_fees, us_zone, cost_baseline { start, end }, required_boxes, not_required_boxes, void_fill { kind, price_per_litre }, labour { wage_per_hour, void_fill_seconds_per_litre, box_choice_seconds } }. Each value says whether it's yours or TCS-i's default. - PUT /v1/cost-settings: Change cost parameters: only the fields sent. Only the fields you send change; null puts one back to TCS-i's default. What GET answers can be sent straight back. The money in every report is worked out again from the new values. - GET /v1/carrier-services: The carrier services priced in the account's region. The keys to use in cost_discounts and underpaid_fees. ### Assistant 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/assistant: The assistant: what it fixed, what it backed out, what needs you. ?brand=. { run_at, fixed (with before and after for sizes), backed_out (fixes it put back itself), for_you (needs a person), decided, score, learned }. - POST /v1/assistant/run: Run the assistant's check now. At most every 2 minutes; it also runs by itself every few hours. - POST /v1/assistant/findings/{finding_id}/{action}: keep, undo, done or dismiss a finding. undo (put an automatic fix back, and never make it again), keep, done or dismiss (one for a person). ### Insights 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/packing: Plan followed, fill and money over orders packed with guidance. ?days=7 (1-30) &brand=. Over orders packed with TCS-i's guidance: packed_orders, followed (how often packers used the recommended box), fill, and money (saved and missed). - GET /v1/insights/monitoring: The free monitoring week. Boxes used, fill, packaging weight and CO2, parcels over the EU's 50% empty-space limit, and roughly what guidance would have saved. ### Reports 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/summary: Orders, packed, plan followed and fill over a window. ?window=24h|7d|30d (default 7d), ?by=packed|sent, ?brand=. The console's Overview. - GET /v1/reports/costs: Packaging, postage and labour money over a window. ?window=24h|7d|14d|30d (default 30d), ?by=packed|sent, ?brand=. Worked out from your cost parameters. - GET /v1/reports/box-usage: Each box: recommended, used and fill. ?days=30 (1-90). - GET /v1/reports/box-usage/monthly: Boxes used in a month (?month=YYYY-MM, ?format=csv). ?month=YYYY-MM (required), ?format=csv for a file. - GET /v1/reports/products: Products that waste the most space. ?window=7d|30d, ?brand=. - GET /v1/reports/brands: A 3PL's scorecard, brand by brand. ?window=7d|30d. For a 3PL: each brand's orders, plan followed, fill and money. - GET /v1/reports/brand-activity: Each brand's last order and last packed order - GET /v1/reports/product-health: Products with a missing or doubtful size - GET /v1/reports/data-problems: Open data problems to fix - POST /v1/reports/export: A short-lived link to download everything the account holds. { url }: a link, good for a few minutes, to a file of everything TCS-i holds for the account. A read key is enough. ### Events and webhooks Hear about changes instead of polling for them. How deliveries, signatures and retries work is in the Webhooks and events guide. - GET /v1/events: Public events after an id, oldest first (the event feed). Oldest first: ?after=evt_… (or the last next_cursor) &types=a,b &limit=. Without after, the last 30 days; ?after=now gives no events, just the cursor to read new ones from. Keep next_cursor and read on from it. - GET /v1/event-types: The public event types - GET /v1/webhooks: Your webhooks. Secrets shown shortened. - POST /v1/webhooks: Add a webhook: its secret is shown once. { url, events?, description? }: an https address on the public internet; events left out means every event. The answer has the whole signing secret, once. - GET /v1/webhooks/{webhook_id}: One webhook. { id, url, description, events, active, disabled_reason, failing_since, secret (shortened), created_at, updated_at } - PATCH /v1/webhooks/{webhook_id}: Change a webhook: url, events, description, active. { url?, events?, description?, active? }. Switching back on starts from now, not from what was missed. - DELETE /v1/webhooks/{webhook_id}: Delete a webhook - POST /v1/webhooks/{webhook_id}/rotate-secret: A new signing secret, shown once. Shown once. The old one stops at once. - POST /v1/webhooks/{webhook_id}/test: Send a webhook.test ping now. Sends webhook.test now and returns the delivery with your endpoint's answer. - GET /v1/webhooks/{webhook_id}/deliveries: A webhook's deliveries, newest first. status (pending, delivered, failed), attempts, your endpoint's answer. - POST /v1/webhooks/{webhook_id}/deliveries/{delivery_id}/retry: Send a delivery again now ### Integrations and partners What's linked to your account, the live check of your in-house WMS's connection, linking a third-party WMS (every system with the same body), the links between a 3PL and its brands (visual guidance on or off, 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/integrations: What's linked: third-party WMSs and your own system. Each third-party WMS login with its brands ({ kind: "wms", system, brands }), and your in-house WMS once it has sent orders ({ kind: "own_system" }). - GET /v1/integrations/check: The in-house integration check: each step from real traffic. { steps: [{ key, title, when, call, done, detail, last_at }], done, total }. Each step is done only once TCS-i has seen it really happen. Run it in your own tests. - GET /v1/integrations/systems: The warehouse systems TCS-i links to and the details each needs. { data: [{ key, name, fields: [{ key, label, secret, optional }], how_to }] }: ShipHero, Mintsoft, Extensiv, Logiwa, Packiyo, Peoplevox, Linnworks, ShipStation, Veeqo, Despatch Cloud and Infoplus. - POST /v1/integrations/sync: Sync every linked brand now. Starts the sync of every linked brand now instead of waiting for the next one. The write scope is enough. - GET /v1/integrations/{system}: A system's linked logins and brands (admin scope) - POST /v1/integrations/{system}/preview: Check a WMS login and list its brands: nothing saved (admin scope). { credentials: { … the system's fields … } } -> { account, brands: [{ name, external_id }] }. The same for every system: shiphero { refresh_token }, mintsoft { api_key }, extensiv { client_id, client_secret, user_login }, and the rest as /systems lists them. - POST /v1/integrations/{system}: Link a WMS login for the brands named (admin scope). { credentials, brands: [{ name, external_id }] } with brands from preview. Their boxes, products and orders start arriving at once. - DELETE /v1/integrations/{system}/brands/{brand}: Unlink one brand (admin scope) - DELETE /v1/integrations/{system}/logins/{login_id}: Unlink a login (admin scope) - GET /v1/partner-links: Links between a 3PL and its brands (admin scope) - POST /v1/partner-links/invite-brand: A 3PL invites a brand to see its packing (admin scope). { brand, email }: the brand's person gets an email, and once they accept they see that brand's packing in their own account. - POST /v1/partner-links/invite-warehouse: A brand invites its 3PL (admin scope). { brand, email }: for a brand to bring its 3PL in. - POST /v1/partner-links/{link_id}/{action}: resend, on or off for a partner link (admin scope) - DELETE /v1/partner-links/{link_id}: Remove a partner link (admin scope) - GET /v1/integrations/box-check: A shared login's boxes and which brands use each (?brand=, repeated). ?brand=A&brand=B (brands that share a login). The login's boxes, which of these brands use each, and which brands have been checked. - PUT /v1/integrations/box-check: Save the Box check: which boxes each brand uses; starts their sync. { brands: [ … ], boxes: [{ key, brands: [ … ] }] } with keys from GET. Your WMS is updated first (a box no brand uses is switched off there); then the brands are marked checked and their sync starts. - PUT /v1/integrations/box-check/mailer: Mark a box on a shared login as a bag or mailer, or not. { brands, key, is_mailer: true | false | null }: a bag or mailer, a box, or decided by its name again. - POST /v1/integrations/import-catalogue: Read every linked brand's boxes and products from its WMS again. For when boxes or products changed in your WMS and you don't want to wait for the next sync. - GET /v1/integrations/shiphero/{brand}/check: A brand's last ShipHero connection check - POST /v1/integrations/shiphero/{brand}/check: Run a brand's ShipHero connection check now. Read-only: can TCS-i read the brand's orders, products and boxes, and write the box back? Answers the result; a check run in the last few seconds is answered instead of running again. - GET /v1/integrations/shiphero/{brand}/orders: What ShipHero holds for a brand: orders in the last days (?days) - DELETE /v1/integrations/{system}: Delete Mintsoft's key and unlink its brands (admin scope). Mintsoft only (one key per account). For other systems unlink a brand or a login. - GET /v1/partner-links/compare: A brand's 3PLs side by side (?window). ?window=7d|30d. For a brand with several 3PLs: orders, plan followed, fill and money at each. - GET /v1/partner-links/differences: Where a brand's 3PLs hold different data for it - PUT /v1/partner-links/{link_id}/access: What the brand may change through a link: edit or view (admin scope). { access: edit | view }: the 3PL decides what the brand may change in its data through the link. - PUT /v1/partner-links/{link_id}/label: A brand's own name for its 3PL (admin scope). { label }: a brand's own name for one of its 3PLs. - POST /v1/integrations/shiphero/include-brand-logins: Brands on their own ShipHero login join your 3PL login (admin scope). Brands linked through their own ShipHero login that your 3PL login also has as customers move onto your 3PL login, then sync. - POST /v1/integrations/shiphero/reset-boxes: Give every brand on a ShipHero login ShipHero's boxes again (admin scope). { brand, dry_run? (default true) }. Every brand on that brand's ShipHero login loses its boxes in TCS-i and gets ShipHero's active boxes. Send dry_run: false only after reading the dry run. - POST /v1/partner-links/push/{kind}/preview: What sending a rule or product fix to your other 3PLs would do. kind rule: { rule_id, link_ids? }; kind product: { sku, changes: { … product fields … }, link_ids? }. One plan per 3PL link (what would be created or changed there), each with a key. Changes nothing. - POST /v1/partner-links/push/{kind}: Send a rule or product fix to your other 3PLs, as previewed. The same body plus confirm: [{ link_id, key }] from the preview. Each plan is applied only if it is still exactly what was previewed; otherwise preview again. - PUT /v1/partner-links/{link_id}/brand: Which client in your WMS a brand that invited you is (admin scope). { brand }: for a 3PL invited by a brand, which client in its WMS that brand is. - GET /v1/partner-requests: Requests between you and your partners: add a box, send sizes, a question. Each request between you and a partner, newest first, with who asked, what, and its answer. - POST /v1/partner-requests: Ask your partner for something: add a box, send sizes, a question. { link_id, kind: add_box | sku_sizes | question, body? (up to 2,000 characters), data? (e.g. the box's size, the SKUs) }. The other side is told. - POST /v1/partner-requests/{request_id}/{reply}: Answer a request (done, declined) or withdraw yours. done or declined (by the side asked), withdrawn (by the side that asked); { answer? }. ### Settings and packing stations The console's Settings page, and Packing stations at the bottom of its Integrations page: 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/region: Set the account's region (UK, US, CA). { region: UK | US | CA }: suppliers, carrier list prices and the default units. - PUT /v1/account/units: Set the account's units (metric, imperial). { units: metric | imperial }: how the console shows and takes sizes. The API always follows dimension_unit and weight_unit. - GET /v1/notifications: Which notifications are on - PATCH /v1/notifications: Switch notifications on or off. { weekly_summary: false, … }. The switches: spend_cap, key_changes, reviews, catalogue_checks, weekly_summary, monthly_scorecard, partner_requests, packing_stations, email. - GET /v1/brand-notes: The note packers see for a brand (?brand) - PUT /v1/brand-notes: Set or clear a brand's note. { brand?, note }. An empty note clears it. - GET /v1/packing-stations: Packing stations, and the ones waiting to be let in - PUT /v1/packing-stations/settings: Whether stations join by themselves. { auto_join }: whether a station set up with your station key joins without approval. - POST /v1/packing-stations/join: Add a station by the code on its screen. { code }: the code on the station's screen. - GET /v1/packing-stations/scan-report: What packers scanned and whether it found the order. ?days=7 (1-30). - POST /v1/packing-stations/{station_id}/{action}: approve, decline or remove a station - PATCH /v1/packing-stations/{station_id}: Rename a station. { name } - GET /v1/notifications/channels: Where notifications go: email, Slack, Google Chat (admin scope) - PUT /v1/notifications/channels/email/recipients: Set the extra email addresses and the ones switched off (admin scope). { recipients: [email], muted: [email] }: the extra addresses, and the ones switched off (the account's own address is always on the list). - PUT /v1/notifications/channels/{channel}: Connect Slack or Google Chat by its incoming-webhook URL (admin scope). { url }: slack or google_chat, by its incoming-webhook URL. A test message is sent first; nothing is saved if it fails. - POST /v1/notifications/channels/{channel}/test: Send a test notification to a channel (admin scope) - DELETE /v1/notifications/channels/{channel}: Disconnect Slack or Google Chat (admin scope) - POST /v1/packing-stations/key: A new station key for packing PCs to join with: shown once (admin scope). { key, last4, created_at }: packing PCs set up with this key join your account. The key before it stops working. - GET /v1/packing-stations/{station_id}/scans: One station's latest scans (?limit) - GET /v1/wms-write-back: Whether TCS-i writes the box onto the packing sheet in your WMS - PATCH /v1/wms-write-back: Switch writing the packing sheet back on or off. { packing_sheet: true | false } - GET /v1/packing-stations/{station_id}/logs: The log files a packing station sent. { logs: [{ id, name, size, at }] }: what a station sent when it had a problem. - GET /v1/packing-stations/{station_id}/logs/{log_id}: One log file from a packing station. The file itself. ### API keys, plan and team 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. - GET /v1/api-keys: API keys (admin scope) - POST /v1/api-keys: Create an API key: the secret is shown once (admin scope). { name, scopes? (some of read, write, pack, admin; default read, write, pack), test? }. The answer has the secret, once. - PATCH /v1/api-keys/{key_id}: Pause or resume a key (admin scope). { status: active | paused }. A paused key is refused but kept. - DELETE /v1/api-keys/{key_id}: Revoke a key for good (admin scope). For good. The key that's calling can't revoke itself. - GET /v1/subscription: The plan, this month's billed orders and the spend alert - GET /v1/billing: Payment method and invoices (admin scope) - PATCH /v1/subscription/spend-cap: Set the spend alert (admin scope). { enabled, tokens } - POST /v1/subscription/checkout: A Stripe Checkout link for a person to start the paid plan (admin scope). { checkout_url }: a person opens it and pays. Nothing is charged by this call. - POST /v1/subscription/portal: A link to Stripe's billing page (admin scope) - GET /v1/team: Members, open invites and seats (admin scope) - POST /v1/team/invites: Invite a member or viewer by email (admin scope). { email, role: member | viewer }. Emails the invite. Admins are made, changed and removed in the console only. - DELETE /v1/team/invites/{invite_id}: Cancel an invite (admin scope) - PATCH /v1/team/members/{user_id}: Change a member's role: member or viewer (admin scope). { role: member | viewer } - DELETE /v1/team/members/{user_id}: Remove a member (admin scope) - POST /v1/subscription/{change}: pause, resume, cancel or reactivate the subscription (admin scope). pause, resume, cancel (at the end of the paid month) or reactivate. The same as the buttons on the console's Plan page. - GET /v1/activity: The account's activity feed: who changed what, newest first. ?limit=50 (up to 200), ?before= (the last next_before). Who changed what, in the console or through the API: keys made, boxes changed, people invited, re-checks run. GET /v1/events is the feed of documented events for a system to act on; this is the audit trail for a person. - PUT /v1/team/organisation: Rename the organisation (admin scope) - PUT /v1/team/domains: Which email domains may be invited (admin scope). { domains: ["acme.com"] }: only these email domains may be invited; [] lets anyone be. Open invites to other domains are cancelled. - PUT /v1/team/contact: Change the account's contact email (admin scope). { email }: where TCS-i writes to the account. The old address is told. ### Packing engine Pure 3D packing: everything it needs is in the request (items, bins, objective, constraints). It reads none of the account's data; POST /v1/pack-input builds its body from the account's products, boxes, preferences and rules. - POST /pack: The box for a set of items: pure 3D packing from the request alone (billed). Pure 3D packing: everything it needs is in the request. A job on your plan: with metadata.order_id it counts once per order a month; needs the pack scope. The answer's view_url is the packer's 3D view of the plan: show it on your packing screen. Pallets: send ships_as: "pallets" (or "auto": pallets once the boxes reach your auto_cartons) and optionally pallet: { length_cm, width_cm, max_height_cm, max_kg, ... }; the answer's solution.pallets lists each pallet with its height, weight and cartons placed. Needs your pallet jobs switched on (PUT /v1/pallet-settings), else 403. - GET /pack/lookup: Find an order's packing plan by order number or barcode (the packing screen). Used by TCS-i's packing screen and packing stations (a station key). - POST /pack/feedback/{request_id}: A packer's report on a plan: the box used, or what was wrong. Used by the packer's 3D view. ## Events (webhooks and GET /v1/events) - order.created · order.recommended · order.packed · order.cancelled: An order arrives, gets its box, is packed or is cancelled. - 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 is a POST signed with TCS-Signature: t=,v1= using the webhook's secret. Answer 2xx within 10 seconds; failures are retried for about two days. ## MCP tools ```json { "mcpServers": { "tcs-i": { "type": "http", "url": "https://api.tcs-i.com/mcp", "headers": { "Authorization": "Bearer YOUR_TCSI_API_KEY" } } } } ``` - 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 (a job): The box(es) for an order, with the 3D view link. - 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 (a job): 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.