TCS-i

v1.0.1
com.tcs-i/tcs-i Checked 1 day ago Published 6 days ago

Picks the smallest box for every order and shows packers a 3D packing plan, from your WMS.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

recommend_box Recommend a box for an order

The smallest box (or boxes) an order fits, with a 3D packing plan and a link to the packer's 3D view, without creating an order. Uses the account's saved product tags (fragile, soft...), packing preferences, packing rules and, unless bins are sent, its active boxes. Paid plan; a free account gets 50 jobs a month. Units: cm and kg.

ParameterTypeDescription
items *arrayThe units to pack: each SKU with its size (cm), weight (kg) and quantity
order_number *stringYour order number, as on the packing slip: how what you report packed is matched to this recommendation
binsarrayBoxes to choose from; omit to use the account's
brandstringThe client account
order_idstringYour system's id for the order, if different from order_number
ships_asstringHow it ships: parcel (boxes), pallets (boxes stacked on pallets, with a pallet plan) or auto (pallets when it needs many boxes). Omit for the account's choice. Pallets need the account's pallet jobs s…

report_shipped Report what an order shipped in

Record what an order actually shipped in: its items and the box(es) used. Free and never billed. Feeds monitoring (boxes used, fill, packaging CO2, the EU 50% empty-space limit, the rough missed saving) for any warehouse system, and, for an order sent to recommend_box, whether the recommended box was used. The same as POST /v1/shipped.

ParameterTypeDescription
boxes *arrayThe box(es) it actually shipped in: box_id of a saved box, or name and inside size
items *arrayWhat the order held: each SKU with its size, weight and quantity
order_id *stringYour system's unique id for the order
brandstringThe client account (brand) of a 3PL; omit for a single-brand account
dimension_unitstringUnit of the sizes sent: cm (default), mm or in
order_numberstringThe order number as on the packing slip, if different from order_id
shipped_atstringWhen it shipped (ISO 8601); omit for now
weight_unitstringUnit of the weights sent: kg (default), g or lb

weekly_waste Last 7 days of packaging waste

The last 7 days of monitored orders (free): orders, boxes used, box fill, packaging CO2e, parcels over the EU 50% empty-space limit, and a rough missed saving scaled from a solved sample. Estimates are labelled as such.

list_boxes List boxes

The account's boxes (inside sizes in cm), optionally one brand's. Free. GET /v1/boxes.

ParameterTypeDescription
brandstringThe client account (brand) of a 3PL; omit for a single-brand account
cursorstringnext_cursor from the previous page, to read on
statusstringactive (used in recommendations) or disabled; omit for both

save_box Create or change a box

Create a box, or change the one with that id to what's sent (PUT /v1/boxes/{id}). Free. status disabled takes it out of new recommendations. Saved in the brand's WMS too where TCS-i keeps boxes in step with it.

ParameterTypeDescription
id *stringThe box's id (your code for it); an existing id is changed, a new one created
brandstringThe client account (brand) of a 3PL; omit for a single-brand account
dimension_unitstringUnit of the sizes sent: cm (default), mm or in
heightnumberInside height, in dimension_unit
is_mailerbooleanTrue for a mailer, bag or envelope rather than a rigid box
lengthnumberInside length, in dimension_unit
max_weightnumberMost it may hold, in weight_unit
namestringThe name packers know it by
statusstringactive (used in recommendations) or disabled (kept, but not recommended)
weight_unitstringUnit of the weights sent: kg (default), g or lb
widthnumberInside width, in dimension_unit

list_products List products

The account's products (SKUs) with sizes and packing tags. Free. GET /v1/products.

ParameterTypeDescription
brandstringThe client account (brand) of a 3PL; omit for a single-brand account
cursorstringnext_cursor from the previous page, to read on
qstringPart of a SKU or name

save_product Create or change a product

Create a product, or update it with the fields sent: size, weight, packing tags (PUT /v1/products/{sku}). Free. is_flexible: soft goods that fold and squeeze; bag_allowed: may ship in a bag or mailer.

ParameterTypeDescription
sku *stringThe product's SKU, as in your warehouse system
bag_allowedbooleanMay ship in a bag or mailer
brandstringThe client account (brand) of a 3PL; omit for a single-brand account
dimension_unitstringUnit of the sizes sent: cm (default), mm or in
heightnumberHeight, in dimension_unit (cm when there is none)
is_flexiblebooleanSoft goods that fold and squeeze (clothing, textiles)
is_fragilebooleanBreaks easily: packed with care and kept on top
lengthnumberLength, in dimension_unit (cm when there is none)
namestringThe product's name
own_containerbooleanShips in its own packaging, with no outer box
weightnumberOne unit's weight, in weight_unit
weight_unitstringUnit of the weights sent: kg (default), g or lb
widthnumberWidth, in dimension_unit (cm when there is none)

archive_product Archive a product

Retire a product the account no longer sells (DELETE /v1/products/{sku}). Free. It's kept with its data and left out of lists and checks; save_product brings it back.

ParameterTypeDescription
sku *stringThe SKU to archive
brandstringThe client account (brand) of a 3PL; omit for a single-brand account
confirmationstringLeave out at first: TCS-i then removes nothing and answers with a code and what to ask the person. Send that code only after the person has said yes in the chat.

create_order Create or replace an order

Create an order in TCS-i, or replace it while it's open (PUT /v1/orders/{order_id}). Free. Lines are SKUs and quantities; TCS-i fills in sizes and tags from your products.

ParameterTypeDescription
lines *arrayThe order's lines: each a SKU already saved as a product, and a quantity
order_id *stringYour system's unique id for the order; sending it again replaces an open order
brandstringThe client account (brand) of a 3PL; omit for a single-brand account
notestringA note kept with the order
order_numberstringThe order number as on the packing slip, if different from order_id

list_orders List orders

Orders sent through the API (create_order / POST /v1/orders), newest first, with their status and recommended boxes. Jobs a linked WMS sends are not here: list_recommendations has every job from any source. Free. GET /v1/orders.

ParameterTypeDescription
brandstringThe client account (brand) of a 3PL; omit for a single-brand account
cursorstringnext_cursor from the previous page, to read on
qstringPart of an order id or number
statusstringopen, recommended, packed or cancelled; omit for all

recommend_order Recommend boxes for an order

The box(es) for an order already in TCS-i, with the packer's 3D view link. Billed like recommend_box (POST /v1/orders/{order_id}/recommend).

ParameterTypeDescription
order_id *stringThe order's id in TCS-i (from create_order)
brandstringThe client account (brand) of a 3PL; omit for a single-brand account
ships_asstringHow it ships: parcel (boxes), pallets (boxes stacked on pallets, with a pallet plan) or auto (pallets when it needs many boxes). Omit for the account's choice. Pallets need the account's pallet jobs s…

mark_packed Mark an order packed

Record that an order was packed: in the recommended box(es) unless boxes are given (POST /v1/orders/{order_id}/packed). Free. TCS-i learns from it.

ParameterTypeDescription
order_id *stringThe order's id in TCS-i (from create_order)
boxesarrayThe box(es) actually used; omit when the recommended ones were
brandstringThe client account (brand) of a 3PL; omit for a single-brand account
packed_atstringWhen it was packed (ISO 8601); omit for now. For orders packed earlier.
packed_bystringWho packed it (name or packer id), for the packer reports

list_events List events

What happened in TCS-i, oldest first: orders created, recommended, packed or cancelled, products and boxes added or changed (including sizes the assistant fixed), integrations linked. Pass after (an event id or the last next_cursor) to read on. Free. GET /v1/events.

ParameterTypeDescription
afterstringRead events after this id (evt_…)
limitintegerHow many events to return, 1-500
typesstringComma-separated event types, e.g. product.updated,order.packed

assistant_findings Assistant findings

What TCS-i's assistant found by comparing what packers shipped with the box recommended: data it fixed itself (sizes, soft goods, bag allowed, box records; each can be undone), fixes it put back, and what needs a person. Free. GET /v1/assistant.

ParameterTypeDescription
brandstringOnly this brand's findings

decide_finding Act on an assistant finding

Act on one assistant finding: undo (put an automatic fix back), keep, done or dismiss (one for a person). Free. POST /v1/assistant/findings/{id}/{action}.

ParameterTypeDescription
action *stringkeep (accept a fix), undo (put an automatic fix back), done (a person's finding is handled) or dismiss (not a problem)
finding_id *stringThe finding's id, from assistant_findings

get_packing_preferences Get packing preferences

The account's packing preferences: fragile on top, rotation, void fill, bags allowed, parcel preference, max parcel weight and the rest. Free. GET /v1/packing-preferences.

update_packing_preferences Update packing preferences

Change some of the account's packing preferences; only the fields sent change. Applies to new recommendations. Free. PATCH /v1/packing-preferences.

ParameterTypeDescription
changes *objecte.g. {"fragile_on_top": false, "void_fill_cm": 1.5}

list_box_rules List packing rules

The account's box rules: orders of exactly these SKUs and quantities go in these boxes, laid out as stored. Free. GET /v1/box-rules.

ParameterTypeDescription
brandstringOnly this brand's rules (rules for every brand are included)

packing_kpis Packing KPIs

For orders packed with TCS-i's guidance: recommendation followed, box fill, and the money (missed and realised, an estimate at carrier list prices) over the last N days.

ParameterTypeDescription
brandstringOnly this brand's orders
daysintegerHow many days back, 1-30; default 7

setup_status Account setup status

Start here when setting an account up or checking on one: what is linked, how many boxes and products it has, which integration steps are done, and `next`: the calls still to make, in order, each with why. Reads only. The same as GET /v1/setup.

save_box_rule Create or replace a packing rule

A packing rule: an order of exactly these SKUs and quantities goes in these boxes. Without id it's created; with id, replaced. auto_layout (default true) has the engine place the units so the rule is used at once; if they can't be placed the rule is still saved, with layout_problem saying why. brand null = every brand. As POST/PUT /v1/box-rules.

ParameterTypeDescription
box_ids *arrayThe box(es) such an order goes in, by box id
items *arrayThe exact SKUs and quantities an order must hold for the rule to apply
name *stringA name for the rule
auto_layoutbooleanHave the engine place the units; default true
brandstringThe brand it applies to; omit or null for every brand
enabledbooleanFalse to keep the rule but not use it; default true
idstringThe rule's id to replace; leave out to create one
notestringA note for packers

delete_box Delete a box

Delete a box for good (one brand's copy with brand, every brand's without). To stop recommending a box but keep it, use save_box with status disabled instead.

ParameterTypeDescription
id *stringThe box's id
brandstringOnly this brand's copy; omit to delete it for every brand
confirmationstringLeave out at first: TCS-i then removes nothing and answers with a code and what to ask the person. Send that code only after the person has said yes in the chat.

get_cost_settings Get cost settings

The cost parameters behind the money in reports: currency, carrier discounts, labour (wage per hour, seconds), void fill price, baseline period. Free. GET /v1/cost-settings.

update_cost_settings Update cost settings

Set some cost parameters; only the fields sent change, and null puts one back to TCS-i's default. Changes the money shown in reports. Free. PUT /v1/cost-settings.

ParameterTypeDescription
changes *objecte.g. {"labour": {"wage_per_hour": 18}}

list_recommendations List packing results

Packing results: every box TCS-i recommended and what was actually packed, newest first, from any source (own system, a linked WMS, POST /pack). status: packed, awaiting, expired. box_state: same, bigger, smaller (box used against the one recommended). request_id returns one with its full 3D plan. detail=full adds each one's reasons for its box, the box comparison and its plan (at most 300 a page). With filters a page can hold fewer than limit: while next_cursor is set there are more, read on with cursor. For why one order got its box, explain_order says it in words.

ParameterTypeDescription
box_statestringsame, bigger or smaller: the box packed against the one recommended
brandstringThe client account (brand) of a 3PL; omit for a single-brand account
cursorstringnext_cursor from the previous page, to read on
detailstringlist (default) or full: adds reasons, box comparison and plan
fromstringISO time
limitintegerPage size, 1-500 (at most 300 with detail=full)
qstringorder number or SKU
request_idstringOne recommendation's id: returns it with its full 3D plan
statusstringpacked, awaiting or expired; omit for all
tostringISO time: only results before it

compare_periods Why the numbers changed

Why the numbers moved: the last `days` against the `days` before (1-15, from the last 30 days of packed orders). Plan followed, box fill and the fill TCS-i's own boxes would have had, for each window; then what drove the change: each brand's part in percentage points (they add up to the change), the boxes packers used instead of the one recommended, the SKUs most often packed in another box, orders with no box or size recorded, and the changes made on the account in each window. signals are the likely causes in plain words with their numbers; example_orders open with explain_order. Start here…

ParameterTypeDescription
brandstringOnly this brand's orders
daysintegerWindow length; default 7

explain_order Why an order got its box

Why one order got its box, in plain sentences: TCS-i's reasons, the box packed instead (and how much bigger or smaller), each SKU's saved size and who set it (and whether it changed since), and changes made since to its boxes or SKUs. Give request_id (from list_recommendations) or order (its order number, as compare_periods' example_orders name it). Ends with what to try next.

ParameterTypeDescription
brandstringWith order, when two brands share order numbers
orderstringThe order number
request_idstringThe recommendation's id, from list_recommendations

list_activity Account activity

Everything that happened on the account, newest first, as the console's activity feed: boxes, products, rules and settings changed (by whom: a person, the API or the assistant), imports, re-checks, packer flags. Use it to line changes up against when numbers moved. before pages back (the last entry's at).

ParameterTypeDescription
beforestringOnly entries before this time: the last entry's `at`, to page back
limitintegerHow many entries to return, 1-200

get_report Get a report

A report, as the console shows it. report: summary (orders, packed, plan followed, fill), costs, box-usage, box-usage/monthly (needs month YYYY-MM), products (the ones wasting most space), brands (a 3PL's scorecard), brand-activity, product-health, data-problems.

ParameterTypeDescription
report *stringWhich report (see the tool description)
brandstringThe client account (brand) of a 3PL; omit for a single-brand account
daysintegerHow many days back, where the report takes days
monthstringYYYY-MM, for box-usage/monthly
windowstring24h, 7d, 14d or 30d, where the report takes one

list_webhooks List webhooks

The account's webhooks: URL, events, on or off, last delivery. Free. GET /v1/webhooks.

save_webhook Create or change a webhook

Have TCS-i POST events (a product's size fixed by the assistant, an order recommended or packed, a box changed) to a URL of the customer's system, signed. Without id it's created and the signing secret is returned once; with id it's changed. test: true sends a test ping to the URL.

ParameterTypeDescription
activebooleanFalse to pause deliveries
eventsarrayEvent types to send: box.created, box.deleted, box.updated, box_rule.created, box_rule.deleted, box_rule.updated, integration.connected, integration.disconnected, order.cancelled, order.created, order…
idstringThe webhook's id to change; leave out to create one
testbooleanTrue to send a test ping to the URL
urlstringThe https URL TCS-i POSTs signed events to

api_reference API reference

Every public endpoint of the TCS-i REST API (docs https://www.tcs-i.com/api-docs/, OpenAPI https://api.tcs-i.com/v1/openapi.json), one line each (method, path, what it does). search narrows the list by a word ("team", "report", "webhook"); path returns that endpoint's parameters and request body. No key needed.

ParameterTypeDescription
pathstringe.g. /v1/box-rules
searchstringA word to narrow the list, e.g. team, report, webhook

api_get Read any API endpoint

Read from any GET /v1 endpoint of the TCS-i REST API (docs https://www.tcs-i.com/api-docs/, OpenAPI https://api.tcs-i.com/v1/openapi.json) with the connected account's access: what the console shows that no other tool reads (team, API keys, packing stations, notifications, re-checks, exports). Reads only.

ParameterTypeDescription
path *stringStarts with /v1/, e.g. /v1/team
queryobjectQuery parameters

api_write Create or change through the API

Create or change something through a POST, PUT or PATCH /v1 endpoint of the TCS-i REST API (docs https://www.tcs-i.com/api-docs/, OpenAPI https://api.tcs-i.com/v1/openapi.json), with the connected account's access: what the console does that no other tool covers (inviting a team member, linking a WMS, a packing station, notification channels, starting a re-check). Account-level changes (keys, team, plan, WMS logins) need the admin scope.

ParameterTypeDescription
method *stringPOST to create, PUT to replace, PATCH to change some fields
path *stringStarts with /v1/
bodyobjectThe JSON request body (api_reference with path shows its fields)
queryobjectQuery parameters, as an object of name: value

api_delete Delete through the API

Delete something through a DELETE /v1 endpoint of the TCS-i REST API (docs https://www.tcs-i.com/api-docs/, OpenAPI https://api.tcs-i.com/v1/openapi.json), with the connected account's access (a box rule, a webhook, a team invite, an API key). Can't be undone.

ParameterTypeDescription
path *stringStarts with /v1/
queryobjectQuery parameters, e.g. {"brand": "acme"}