{"openapi":"3.1.0","info":{"title":"TCS-i API","description":"Everything in TCS-i through one API, for any system: your own, a WMS, or an AI agent. Boxes and products (/v1/boxes, /v1/products), box recommendations (POST /pack, the only billed call) and shipped orders (POST /v1/shipped). Authenticate with x-api-key or Authorization: Bearer (Console > Integrations); a key's scopes say what it may do (read, write, pack, and admin for the account itself). GET /v1/setup says what is set up and what to call next. Errors: { error: { code, message } }. Lists page with ?limit= and ?cursor=. Sizes take dimension_unit (cm, mm, in) and weight_unit (kg, g, lb). AI agents: MCP at POST /mcp.","version":"1.2.0"},"paths":{"/pack":{"post":{"tags":["Packing Intelligence"],"summary":"The box for a set of items: pure 3D packing from the request alone (billed)","operationId":"pack_items_static_pack_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/pack/feedback/{request_id}":{"post":{"tags":["Packing Intelligence"],"summary":"A packer's report on a plan: the box used, or what was wrong","description":"Public feedback endpoint. Visualizer users can create or undo a pending\nreview. Only the authenticated review application may mark it resolved.","operationId":"record_packing_feedback_pack_feedback__request_id__post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pack/lookup":{"get":{"tags":["Packing Intelligence"],"summary":"Find an order's packing plan by order number or barcode (the packing screen)","operationId":"lookup_pack_lookup_get","parameters":[{"name":"order","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"title":"Order"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Brand"}},{"name":"x-station-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Station-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/shipped":{"post":{"tags":["Monitoring"],"summary":"Report a shipped order and the box(es) it went in (free, never billed)","operationId":"shipped_v1_shipped_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippedOrder"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/shipped/batch":{"post":{"tags":["Monitoring"],"summary":"Up to 200 shipped orders at once","description":"Up to 200 shipped orders at once: one result per order, in order.","operationId":"shipped_batch_v1_shipped_batch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippedBatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me":{"get":{"tags":["Open API"],"summary":"The API key's account and scopes","description":"Which account the key belongs to, and what it may do: a first call to check a key.","operationId":"me_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/brands":{"get":{"tags":["Open API"],"summary":"The account's brands (client accounts)","description":"The brands (client accounts) with boxes or products. A single brand's\ndata with no brand named is not listed: it's brand null.","operationId":"brands_v1_brands_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/boxes":{"get":{"tags":["Open API"],"summary":"List boxes (?brand, ?status, ?limit, ?cursor)","operationId":"list_boxes_v1_boxes_get","parameters":[{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"dimension_unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension Unit"}},{"name":"weight_unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Unit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Open API"],"summary":"Create a box (free)","operationId":"create_box_v1_boxes_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoxBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/boxes/wms-sync":{"get":{"tags":["Open API"],"summary":"Each ShipHero brand's box sync, and why it's off where it is","description":"Each ShipHero brand's box sync: whether TCS-i keeps its boxes in step with ShipHero, and why not.","operationId":"box_sync_v1_boxes_wms_sync_get","parameters":[{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/boxes/push-to-wms":{"post":{"tags":["Open API"],"summary":"Add a brand's boxes that ShipHero doesn't have yet to ShipHero (?brand, ?dry_run)","description":"Adds the brand's boxes that ShipHero doesn't have yet to ShipHero, and links them.\n?dry_run=true says which it would add.","operationId":"push_to_wms_v1_boxes_push_to_wms_post","parameters":[{"name":"brand","in":"query","required":true,"schema":{"type":"string","title":"Brand"}},{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/boxes/from-shipments":{"post":{"tags":["Open API"],"summary":"Add the boxes packers used on these orders that TCS-i doesn't have yet","description":"{ request_ids: [ … ] } (up to 100 recommendations): the boxes packers actually used on\nthose orders that TCS-i doesn't have yet are added to your boxes.","operationId":"boxes_from_shipments_v1_boxes_from_shipments_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/boxes/{box_id}/to-brands":{"post":{"tags":["Open API"],"summary":"Give a box saved for all brands to the brands named","description":"A box saved for \"all brands\" before brands had their own boxes, given to the brands named:\n{ brands: [ … ] }.","operationId":"box_to_brands_v1_boxes__box_id__to_brands_post","parameters":[{"name":"box_id","in":"path","required":true,"schema":{"type":"string","title":"Box Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/boxes/{box_id}/everywhere":{"patch":{"tags":["Open API"],"summary":"Switch a ShipHero-linked box off or on for every brand on the login","description":"{ active }: a box linked to ShipHero switched off (or on) for every brand on the login, in ShipHero too.","operationId":"box_everywhere_v1_boxes__box_id__everywhere_patch","parameters":[{"name":"box_id","in":"path","required":true,"schema":{"type":"string","title":"Box Id"}},{"name":"brand","in":"query","required":true,"schema":{"type":"string","title":"Brand"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/boxes/{box_id}":{"get":{"tags":["Open API"],"summary":"One box (?brand)","operationId":"get_box_v1_boxes__box_id__get","parameters":[{"name":"box_id","in":"path","required":true,"schema":{"type":"string","title":"Box Id"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}},{"name":"dimension_unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension Unit"}},{"name":"weight_unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Unit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Open API"],"summary":"Change a box's fields","operationId":"patch_box_v1_boxes__box_id__patch","parameters":[{"name":"box_id","in":"path","required":true,"schema":{"type":"string","title":"Box Id"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoxBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Open API"],"summary":"Create or replace a box: safe to repeat","description":"Creates the box, or changes the one there to what's sent. Repeating it is safe.","operationId":"put_box_v1_boxes__box_id__put","parameters":[{"name":"box_id","in":"path","required":true,"schema":{"type":"string","title":"Box Id"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoxBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Open API"],"summary":"Delete a box (?brand; without it, every brand's)","description":"Deletes a box (the console's Delete): one brand's copy with ?brand=, every\nbrand's without. A box linked to a WMS box is deleted there first; 409 says\nwhat to do when it can't be (another brand uses it, or the WMS is read-only):\nswitch it off instead with PATCH { \"status\": \"disabled\" }. Orders already\nrecommended keep their box. -> { id, deleted: [brand], wms }","operationId":"delete_box_v1_boxes__box_id__delete","parameters":[{"name":"box_id","in":"path","required":true,"schema":{"type":"string","title":"Box Id"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/boxes/bulk-delete":{"post":{"tags":["Open API"],"summary":"Delete up to 500 boxes: one result each","description":"Up to 500 boxes deleted as DELETE /v1/boxes/{id} does (one brand's copies with\nbrand, every brand's without). One result per id, in order; one failing (409: a\nbox your WMS shares with another brand) doesn't stop the rest.","operationId":"bulk_delete_boxes_v1_boxes_bulk_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoxesDelete"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/standard-boxes":{"get":{"tags":["Open API"],"summary":"Standard carton sizes on sale in the account's region","description":"Standard carton sizes on sale in the account's region, smallest first, with\nsupplier prices: sizes to add with PUT /v1/boxes/{id} when starting without a\nbox list. -> { data: [{ name, length, width, height, dimension_unit, supplier,\nproduct_url, prices, currency }], region, checked_at }","operationId":"standard_boxes_v1_standard_boxes_get","parameters":[{"name":"dimension_unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension Unit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/boxes/bulk":{"post":{"tags":["Open API"],"summary":"Create or replace up to 500 boxes","description":"Up to 500 boxes, each created or replaced by brand and id (the console's import).","operationId":"bulk_boxes_v1_boxes_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoxesBulk"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/products":{"get":{"tags":["Open API"],"summary":"List products (?brand, ?q, ?updated_since, ?limit, ?cursor)","operationId":"list_products_v1_products_get","parameters":[{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated Since"}},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"dimension_unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension Unit"}},{"name":"weight_unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Unit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Open API"],"summary":"Create a product (free)","operationId":"create_product_v1_products_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/products/bulk-archive":{"post":{"tags":["Open API"],"summary":"Retire up to 500 products: one result each","description":"Up to 500 products retired as DELETE /v1/products/{sku} does. One result each.","operationId":"bulk_archive_products_v1_products_bulk_archive_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductsArchive"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/products/confirm-suggestions":{"post":{"tags":["Open API"],"summary":"Accept the tags TCS-i suggested but wasn't sure of (?sku, ?brand)","description":"Accepts the tags TCS-i suggested but wasn't sure of (fragile, soft, bag allowed…):\nthey turn on and become yours. ?sku= for one product, else every product (?brand=).","operationId":"confirm_suggestions_v1_products_confirm_suggestions_post","parameters":[{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}},{"name":"sku","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sku"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/products/{sku}":{"get":{"tags":["Open API"],"summary":"One product (?brand)","operationId":"get_product_v1_products__sku__get","parameters":[{"name":"sku","in":"path","required":true,"schema":{"type":"string","title":"Sku"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}},{"name":"dimension_unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension Unit"}},{"name":"weight_unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Unit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Open API"],"summary":"Change a product's fields","operationId":"patch_product_v1_products__sku__patch","parameters":[{"name":"sku","in":"path","required":true,"schema":{"type":"string","title":"Sku"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Open API"],"summary":"Retire a product: archived and kept; sending it again brings it back","description":"Archives the product: a SKU the client no longer sells (12 Nov 2026: there\nwas no way to retire one). Kept with its sizes, tags and history, and left out\nof lists (?include_archived=true shows it), counts and checks. Packing still\nknows it, so an old order with it still packs. Sending it again (PUT, PATCH or\nthe bulk) brings it back. Repeating it is safe.","operationId":"delete_product_v1_products__sku__delete","parameters":[{"name":"sku","in":"path","required":true,"schema":{"type":"string","title":"Sku"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Open API"],"summary":"Create or update a product: safe to repeat","description":"Creates the product, or updates it with the fields sent. Repeating it is safe.","operationId":"put_product_v1_products__sku__put","parameters":[{"name":"sku","in":"path","required":true,"schema":{"type":"string","title":"Sku"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/products/bulk":{"post":{"tags":["Open API"],"summary":"Create or update up to 500 products","description":"Up to 500 products, each created or updated as PUT does. One result per\nproduct, in order; one failing doesn't stop the rest.","operationId":"bulk_products_v1_products_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductsBulk"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/orders":{"get":{"tags":["Open API"],"summary":"List orders (?brand, ?status, ?source, ?created_since, ?q, ?limit, ?cursor)","operationId":"list_orders_v1_orders_get","parameters":[{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"created_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created Since"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"dimension_unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension Unit"}},{"name":"weight_unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Unit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Open API"],"summary":"Create an order (free)","operationId":"create_order_v1_orders_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/orders/{order_id}":{"get":{"tags":["Open API"],"summary":"One order (?brand)","operationId":"get_order_v1_orders__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}},{"name":"dimension_unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension Unit"}},{"name":"weight_unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Unit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Open API"],"summary":"Create or replace an order: safe to repeat","description":"Creates the order, or replaces it while it's open or recommended. Safe to repeat.","operationId":"put_order_v1_orders__order_id__put","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Open API"],"summary":"Change an order's number, note or lines","operationId":"patch_order_v1_orders__order_id__patch","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/orders/bulk":{"post":{"tags":["Open API"],"summary":"Create or replace up to 500 orders","description":"Up to 500 orders, each created or replaced as PUT does. One result per\norder, in order; one failing doesn't stop the rest.","operationId":"bulk_orders_v1_orders_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersBulk"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/orders/{order_id}/cancel":{"post":{"tags":["Open API"],"summary":"Cancel an order","operationId":"cancel_order_v1_orders__order_id__cancel_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/orders/{order_id}/recommend":{"post":{"tags":["Open API"],"summary":"The box(es) for an order: billed as /pack; needs the pack scope","description":"The box(es) for the order: billed as POST /pack. ships_as (pallet jobs,\napi/pallet_jobs.py): parcel, pallets or auto; left out, the account's choice\n(auto when its pallet jobs are on).","operationId":"recommend_order_v1_orders__order_id__recommend_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}},{"name":"ships_as","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(parcel|pallets|auto)$"},{"type":"null"}],"title":"Ships As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/orders/{order_id}/packed":{"post":{"tags":["Open API"],"summary":"Record the box(es) an order went in","description":"What the order went in: recorded on its recommendation (plan followed,\nfill, money, CO2) and learned from by the assistant. No boxes: the\nrecommended ones.","operationId":"packed_order_v1_orders__order_id__packed_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackedBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pack-input":{"post":{"tags":["Open API"],"summary":"The complete /pack body for SKUs and quantities (free)","description":"The complete POST /pack body for these SKUs and quantities of this\nbrand, from your products and boxes in TCS-i. Free: nothing is solved.","operationId":"pack_input_v1_pack_input_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackInputBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/integrations":{"get":{"tags":["Open API"],"summary":"What's linked: third-party WMSs and your own system","operationId":"integrations_v1_integrations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/integrations/check":{"get":{"tags":["Open API"],"summary":"The in-house integration check: each step from real traffic","operationId":"integrations_check_v1_integrations_check_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/events":{"get":{"tags":["Open API"],"summary":"Public events after an id, oldest first (the event feed)","operationId":"list_events_v1_events_get","parameters":[{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After"}},{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Types"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/event-types":{"get":{"tags":["Open API"],"summary":"The public event types","operationId":"event_types_v1_event_types_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/webhooks":{"get":{"tags":["Open API"],"summary":"Your webhooks","operationId":"list_webhooks_v1_webhooks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["Open API"],"summary":"Add a webhook: its secret is shown once","operationId":"create_webhook_v1_webhooks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookBody"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{webhook_id}":{"get":{"tags":["Open API"],"summary":"One webhook","operationId":"get_webhook_v1_webhooks__webhook_id__get","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Open API"],"summary":"Change a webhook: url, events, description, active","operationId":"patch_webhook_v1_webhooks__webhook_id__patch","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Open API"],"summary":"Delete a webhook","operationId":"delete_webhook_v1_webhooks__webhook_id__delete","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{webhook_id}/rotate-secret":{"post":{"tags":["Open API"],"summary":"A new signing secret, shown once","operationId":"rotate_webhook_secret_v1_webhooks__webhook_id__rotate_secret_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{webhook_id}/test":{"post":{"tags":["Open API"],"summary":"Send a webhook.test ping now","operationId":"test_webhook_v1_webhooks__webhook_id__test_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{webhook_id}/deliveries":{"get":{"tags":["Open API"],"summary":"A webhook's deliveries, newest first","operationId":"webhook_deliveries_v1_webhooks__webhook_id__deliveries_get","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{webhook_id}/deliveries/{delivery_id}/retry":{"post":{"tags":["Open API"],"summary":"Send a delivery again now","operationId":"retry_delivery_v1_webhooks__webhook_id__deliveries__delivery_id__retry_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/assistant":{"get":{"tags":["Open API"],"summary":"The assistant: what it fixed, what it backed out, what needs you","operationId":"get_assistant_v1_assistant_get","parameters":[{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/assistant/run":{"post":{"tags":["Open API"],"summary":"Run the assistant's check now","operationId":"run_assistant_v1_assistant_run_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/assistant/findings/{finding_id}/{action}":{"post":{"tags":["Open API"],"summary":"keep, undo, done or dismiss a finding","operationId":"decide_v1_assistant_findings__finding_id___action__post","parameters":[{"name":"finding_id","in":"path","required":true,"schema":{"type":"string","title":"Finding Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/packing-preferences":{"get":{"tags":["Open API"],"summary":"The account's packing preferences","operationId":"get_preferences_v1_packing_preferences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"tags":["Open API"],"summary":"Change packing preferences","operationId":"patch_preferences_v1_packing_preferences_patch","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pallet-settings":{"get":{"tags":["Open API"],"summary":"Pallet jobs: on or off, the pallet and when orders go on pallets","operationId":"get_pallet_settings_v1_pallet_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["Open API"],"summary":"Switch pallet jobs on or off, or change the pallet","operationId":"put_pallet_settings_v1_pallet_settings_put","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/box-rules":{"get":{"tags":["Open API"],"summary":"Box rules","operationId":"list_box_rules_v1_box_rules_get","parameters":[{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Open API"],"summary":"Add a box rule","operationId":"create_box_rule_v1_box_rules_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoxRuleBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/box-rules/similar":{"post":{"tags":["Open API"],"summary":"What a rule's 'products like this' lines would also match","description":"What each \"products like this\" line of a rule would also match in the catalogue. Changes nothing.","operationId":"similar_v1_box_rules_similar_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/box-rules/{rule_id}":{"get":{"tags":["Open API"],"summary":"One box rule, with its layout","operationId":"get_box_rule_v1_box_rules__rule_id__get","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Open API"],"summary":"Replace a box rule","operationId":"put_box_rule_v1_box_rules__rule_id__put","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoxRuleBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Open API"],"summary":"Switch a box rule on or off","operationId":"patch_box_rule_v1_box_rules__rule_id__patch","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnabledBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Open API"],"summary":"Delete a box rule","operationId":"delete_box_rule_v1_box_rules__rule_id__delete","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/box-rules/{rule_id}/auto-layout":{"post":{"tags":["Open API"],"summary":"Lay a box rule out with the engine and save it","operationId":"auto_layout_route_v1_box_rules__rule_id__auto_layout_post","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/box-rules/{rule_id}/layout":{"put":{"tags":["Open API"],"summary":"Save a layout of your own for a box rule","description":"A layout of your own: the units placed in each of the rule's boxes, in the rule's box\norder (as GET gives layout.units). Checked like any plan; 422 says what doesn't fit.","operationId":"put_layout_v1_box_rules__rule_id__layout_put","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/box-rules/{rule_id}/photos":{"post":{"tags":["Open API"],"summary":"Add a photo packers see with the rule (the image is the body)","description":"The image itself is the request body (Content-Type image/jpeg, image/png or image/heic).","operationId":"add_photo_v1_box_rules__rule_id__photos_post","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/box-rules/{rule_id}/photos/{photo_id}":{"get":{"tags":["Open API"],"summary":"A rule's photo (?size=full|thumb)","operationId":"get_photo_v1_box_rules__rule_id__photos__photo_id__get","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}},{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"size","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Open API"],"summary":"Remove a rule's photo","operationId":"delete_photo_v1_box_rules__rule_id__photos__photo_id__delete","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}},{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/insights/packing":{"get":{"tags":["Open API"],"summary":"Plan followed, fill and money over orders packed with guidance","operationId":"packing_v1_insights_packing_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":7,"title":"Days"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/insights/monitoring":{"get":{"tags":["Open API"],"summary":"The free monitoring week","operationId":"monitoring_v1_insights_monitoring_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/recommendations":{"get":{"tags":["Open API"],"summary":"Every box recommendation and what was packed, newest first","description":"Newest first. status: packed | awaiting (not packed yet, last 7 days) | expired | cleared.\nbox_state: same | bigger | smaller (the box used against the one recommended); a page with it can\nhold a few more than limit, and a short page with a next_cursor only when 10 pages had too few.\ndetail=full adds each one's plan and request (heavier); the default is the list's columns. With\ndetail=full a page holds at most 300 (jobs.FULL_ROWS_MAX), whatever limit asks.","operationId":"list_recommendations_v1_recommendations_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order By"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"request_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Ids"}},{"name":"recommended_box","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommended Box"}},{"name":"recorded_box","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recorded Box"}},{"name":"box_state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Box State"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"detail","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/recommendations/dismiss":{"post":{"tags":["Open API"],"summary":"Take orders that won't be packed off Not packed yet","description":"Orders that will never be packed (cancelled in your system) leave \"Not packed yet\".","operationId":"dismiss_v1_recommendations_dismiss_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dismiss"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/recommendations/undismiss":{"post":{"tags":["Open API"],"summary":"Put dismissed orders back","operationId":"undismiss_v1_recommendations_undismiss_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Undismiss"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/recommendations/recheck":{"get":{"tags":["Open API"],"summary":"The re-check of past orders: status and progress","operationId":"recheck_status_v1_recommendations_recheck_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["Open API"],"summary":"Re-check past orders with today's boxes, sizes and preferences","description":"Solves the last `days` (30) of orders again with today's boxes, sizes and preferences.","operationId":"start_recheck_v1_recommendations_recheck_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Days"},{"type":"null"}],"title":"Body"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/recommendations/recheck/cancel":{"post":{"tags":["Open API"],"summary":"Stop the re-check","operationId":"cancel_recheck_v1_recommendations_recheck_cancel_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/recommendations/recheck/restore":{"post":{"tags":["Open API"],"summary":"Put back what the last re-check changed","operationId":"restore_recheck_v1_recommendations_recheck_restore_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/recommendations/{request_id}":{"get":{"tags":["Open API"],"summary":"One recommendation with its 3D plan and what was packed","operationId":"get_recommendation_v1_recommendations__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/audit":{"get":{"tags":["Open API"],"summary":"The audit of orders shipped without guidance: status","operationId":"audit_status_v1_audit_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["Open API"],"summary":"Start an audit of orders a linked WMS shipped without guidance","description":"What the orders your WMS shipped without guidance would have saved (a linked WMS only).","operationId":"start_audit_v1_audit_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Days"},{"type":"null"}],"title":"Body"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/audit/cancel":{"post":{"tags":["Open API"],"summary":"Stop the audit","operationId":"cancel_audit_v1_audit_cancel_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/recommendations/{request_id}/try":{"post":{"tags":["Open API"],"summary":"Try a change on a past order: solve it again with what you send","description":"Solves a past order again with what you send (its request from GET, changed): what if this\nbox were there, or this product weren't fragile? The answer is kept as an experiment.","operationId":"try_change_v1_recommendations__request_id__try_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/summary":{"get":{"tags":["Open API"],"summary":"Orders, packed, plan followed and fill over a window","operationId":"report_summary_v1_reports_summary_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Window"}},{"name":"by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"By"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/costs":{"get":{"tags":["Open API"],"summary":"Packaging, postage and labour money over a window","operationId":"report_costs_v1_reports_costs_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Window"}},{"name":"by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"By"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/box-usage":{"get":{"tags":["Open API"],"summary":"Each box: recommended, used and fill","operationId":"report_box_usage_v1_reports_box_usage_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/box-usage/monthly":{"get":{"tags":["Open API"],"summary":"Boxes used in a month (?month=YYYY-MM, ?format=csv)","operationId":"report_box_usage_monthly_v1_reports_box_usage_monthly_get","parameters":[{"name":"month","in":"query","required":true,"schema":{"type":"string","title":"Month"}},{"name":"format","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/products":{"get":{"tags":["Open API"],"summary":"Products that waste the most space","operationId":"report_products_v1_reports_products_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Window"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/brands":{"get":{"tags":["Open API"],"summary":"A 3PL's scorecard, brand by brand","operationId":"report_brands_v1_reports_brands_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Window"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/brand-activity":{"get":{"tags":["Open API"],"summary":"Each brand's last order and last packed order","operationId":"report_brand_activity_v1_reports_brand_activity_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/reports/product-health":{"get":{"tags":["Open API"],"summary":"Products with a missing or doubtful size","operationId":"report_product_health_v1_reports_product_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/reports/data-problems":{"get":{"tags":["Open API"],"summary":"Open data problems to fix","operationId":"report_data_problems_v1_reports_data_problems_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/reports/export":{"post":{"tags":["Open API"],"summary":"A short-lived link to download everything the account holds","description":"A short-lived link to download everything TCS-i holds for the account.","operationId":"report_export_v1_reports_export_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/cost-settings":{"get":{"tags":["Open API"],"summary":"The cost parameters the money in reports is worked out from","operationId":"get_cost_settings_v1_cost_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["Open API"],"summary":"Change cost parameters: only the fields sent","operationId":"put_cost_settings_v1_cost_settings_put","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/carrier-services":{"get":{"tags":["Open API"],"summary":"The carrier services priced in the account's region","operationId":"carrier_services_v1_carrier_services_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/account/region":{"put":{"tags":["Open API"],"summary":"Set the account's region (UK, US, CA)","operationId":"put_region_v1_account_region_put","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/account/units":{"put":{"tags":["Open API"],"summary":"Set the account's units (metric, imperial)","operationId":"put_units_v1_account_units_put","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications":{"get":{"tags":["Open API"],"summary":"Which notifications are on","operationId":"get_notifications_v1_notifications_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"tags":["Open API"],"summary":"Switch notifications on or off","operationId":"patch_notifications_v1_notifications_patch","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/channels":{"get":{"tags":["Open API"],"summary":"Where notifications go: email, Slack, Google Chat (admin scope)","operationId":"get_channels_v1_notifications_channels_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/notifications/channels/email/recipients":{"put":{"tags":["Open API"],"summary":"Set the extra email addresses and the ones switched off (admin scope)","operationId":"put_recipients_v1_notifications_channels_email_recipients_put","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/channels/{channel}":{"put":{"tags":["Open API"],"summary":"Connect Slack or Google Chat by its incoming-webhook URL (admin scope)","operationId":"put_channel_v1_notifications_channels__channel__put","parameters":[{"name":"channel","in":"path","required":true,"schema":{"type":"string","title":"Channel"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Open API"],"summary":"Disconnect Slack or Google Chat (admin scope)","operationId":"delete_channel_v1_notifications_channels__channel__delete","parameters":[{"name":"channel","in":"path","required":true,"schema":{"type":"string","title":"Channel"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/channels/{channel}/test":{"post":{"tags":["Open API"],"summary":"Send a test notification to a channel (admin scope)","operationId":"test_channel_v1_notifications_channels__channel__test_post","parameters":[{"name":"channel","in":"path","required":true,"schema":{"type":"string","title":"Channel"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/brand-notes":{"get":{"tags":["Open API"],"summary":"The note packers see for a brand (?brand)","operationId":"get_brand_note_v1_brand_notes_get","parameters":[{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Open API"],"summary":"Set or clear a brand's note","operationId":"put_brand_note_v1_brand_notes_put","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/packing-stations":{"get":{"tags":["Open API"],"summary":"Packing stations, and the ones waiting to be let in","operationId":"list_stations_v1_packing_stations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/packing-stations/settings":{"put":{"tags":["Open API"],"summary":"Whether stations join by themselves","operationId":"station_settings_v1_packing_stations_settings_put","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/packing-stations/join":{"post":{"tags":["Open API"],"summary":"Add a station by the code on its screen","operationId":"join_station_v1_packing_stations_join_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/packing-stations/scan-report":{"get":{"tags":["Open API"],"summary":"What packers scanned and whether it found the order","operationId":"scan_report_v1_packing_stations_scan_report_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":7,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/packing-stations/key":{"post":{"tags":["Open API"],"summary":"A new station key for packing PCs to join with: shown once (admin scope)","description":"A new station key, for packing PCs to join with. Shown once; the one before stops working.","operationId":"station_key_v1_packing_stations_key_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/packing-stations/{station_id}/scans":{"get":{"tags":["Open API"],"summary":"One station's latest scans (?limit)","operationId":"station_scans_v1_packing_stations__station_id__scans_get","parameters":[{"name":"station_id","in":"path","required":true,"schema":{"type":"string","title":"Station Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/packing-stations/{station_id}/logs":{"get":{"tags":["Open API"],"summary":"The log files a packing station sent","operationId":"station_logs_v1_packing_stations__station_id__logs_get","parameters":[{"name":"station_id","in":"path","required":true,"schema":{"type":"string","title":"Station Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/packing-stations/{station_id}/logs/{log_id}":{"get":{"tags":["Open API"],"summary":"One log file from a packing station","operationId":"station_log_file_v1_packing_stations__station_id__logs__log_id__get","parameters":[{"name":"station_id","in":"path","required":true,"schema":{"type":"string","title":"Station Id"}},{"name":"log_id","in":"path","required":true,"schema":{"type":"integer","title":"Log Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/packing-stations/{station_id}/{action}":{"post":{"tags":["Open API"],"summary":"approve, decline or remove a station","operationId":"decide_station_v1_packing_stations__station_id___action__post","parameters":[{"name":"station_id","in":"path","required":true,"schema":{"type":"string","title":"Station Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/packing-stations/{station_id}":{"patch":{"tags":["Open API"],"summary":"Rename a station","operationId":"rename_station_v1_packing_stations__station_id__patch","parameters":[{"name":"station_id","in":"path","required":true,"schema":{"type":"string","title":"Station Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wms-write-back":{"get":{"tags":["Open API"],"summary":"Whether TCS-i writes the box onto the packing sheet in your WMS","operationId":"get_write_back_v1_wms_write_back_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"tags":["Open API"],"summary":"Switch writing the packing sheet back on or off","description":"packing_sheet: whether TCS-i writes each order's box onto its packing sheet in your WMS.","operationId":"patch_write_back_v1_wms_write_back_patch","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api-keys":{"get":{"tags":["Open API"],"summary":"API keys (admin scope)","operationId":"list_keys_v1_api_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["Open API"],"summary":"Create an API key: the secret is shown once (admin scope)","description":"A new key. scopes: some of read, write, pack, admin (default read, write, pack).\nThe secret is in this answer only. (test: true is accepted and ignored: test keys\nwere retired on 17 Nov 2026; a free account gets 50 jobs a month instead.)","operationId":"create_key_v1_api_keys_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api-keys/{key_id}":{"patch":{"tags":["Open API"],"summary":"Pause or resume a key (admin scope)","operationId":"set_key_status_v1_api_keys__key_id__patch","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Open API"],"summary":"Revoke a key for good (admin scope)","operationId":"revoke_key_v1_api_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/subscription":{"get":{"tags":["Open API"],"summary":"The plan, this month's billed orders and the spend alert","operationId":"subscription_v1_subscription_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/billing":{"get":{"tags":["Open API"],"summary":"Payment method and invoices (admin scope)","operationId":"get_billing_v1_billing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/subscription/spend-cap":{"patch":{"tags":["Open API"],"summary":"Set the spend alert (admin scope)","operationId":"spend_cap_v1_subscription_spend_cap_patch","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/subscription/checkout":{"post":{"tags":["Open API"],"summary":"A Stripe Checkout link for a person to start the paid plan (admin scope)","description":"A Stripe Checkout link to start the paid plan. A person opens it and pays: nothing is charged by this call.","operationId":"checkout_v1_subscription_checkout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/subscription/portal":{"post":{"tags":["Open API"],"summary":"A link to Stripe's billing page (admin scope)","operationId":"portal_v1_subscription_portal_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/subscription/{change}":{"post":{"tags":["Open API"],"summary":"pause, resume, cancel or reactivate the subscription (admin scope)","description":"pause, resume, cancel (at the end of the paid month) or reactivate the subscription.","operationId":"change_subscription_v1_subscription__change__post","parameters":[{"name":"change","in":"path","required":true,"schema":{"type":"string","title":"Change"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/activity":{"get":{"tags":["Open API"],"summary":"The account's activity feed: who changed what, newest first","description":"Everything that happened on the account, newest first, as the console's activity feed shows\nit: who changed what, in the console or through the API. (GET /v1/events is the feed of the\ndocumented events for a system to act on.) -> { data: [{ id, type, at, data }], next_before }","operationId":"activity_v1_activity_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/team":{"get":{"tags":["Open API"],"summary":"Members, open invites and seats (admin scope)","operationId":"get_team_v1_team_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/team/invites":{"post":{"tags":["Open API"],"summary":"Invite a member or viewer by email (admin scope)","operationId":"invite_v1_team_invites_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/team/invites/{invite_id}":{"delete":{"tags":["Open API"],"summary":"Cancel an invite (admin scope)","operationId":"cancel_invite_v1_team_invites__invite_id__delete","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"integer","title":"Invite Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/team/members/{user_id}":{"patch":{"tags":["Open API"],"summary":"Change a member's role: member or viewer (admin scope)","operationId":"change_role_v1_team_members__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Open API"],"summary":"Remove a member (admin scope)","operationId":"remove_member_v1_team_members__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/team/organisation":{"put":{"tags":["Open API"],"summary":"Rename the organisation (admin scope)","operationId":"rename_organisation_v1_team_organisation_put","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/team/domains":{"put":{"tags":["Open API"],"summary":"Which email domains may be invited (admin scope)","operationId":"set_domains_v1_team_domains_put","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/team/contact":{"put":{"tags":["Open API"],"summary":"Change the account's contact email (admin scope)","operationId":"set_contact_v1_team_contact_put","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/integrations/systems":{"get":{"tags":["Open API"],"summary":"The warehouse systems TCS-i links to and the details each needs","description":"The warehouse systems TCS-i links to, and the details each needs.","operationId":"systems_v1_integrations_systems_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/integrations/sync":{"post":{"tags":["Open API"],"summary":"Sync every linked brand now","operationId":"sync_now_v1_integrations_sync_post","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/integrations/import-catalogue":{"post":{"tags":["Open API"],"summary":"Read every linked brand's boxes and products from its WMS again","description":"Reads every linked brand's boxes and products from its WMS again, in the background.","operationId":"import_catalogue_v1_integrations_import_catalogue_post","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/integrations/box-check":{"get":{"tags":["Open API"],"summary":"A shared login's boxes and which brands use each (?brand=, repeated)","description":"?brand=A&brand=B: the login's boxes and which of these brands use each.","operationId":"get_box_check_v1_integrations_box_check_get","parameters":[{"name":"brand","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"title":"Brand"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Open API"],"summary":"Save the Box check: which boxes each brand uses; starts their sync","description":"{ brands, boxes: [{ key, brands }] }: saves it, marks the brands checked and starts their sync.","operationId":"put_box_check_v1_integrations_box_check_put","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/integrations/box-check/mailer":{"put":{"tags":["Open API"],"summary":"Mark a box on a shared login as a bag or mailer, or not","description":"{ brands, key, is_mailer }: a box is a bag or mailer (true), a box (false), or decided by its name (null).","operationId":"put_box_check_mailer_v1_integrations_box_check_mailer_put","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/integrations/shiphero/{brand}/check":{"get":{"tags":["Open API"],"summary":"A brand's last ShipHero connection check","description":"The brand's last ShipHero connection check: can TCS-i read its orders, products and boxes, and write back?","operationId":"connection_check_v1_integrations_shiphero__brand__check_get","parameters":[{"name":"brand","in":"path","required":true,"schema":{"type":"string","title":"Brand"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Open API"],"summary":"Run a brand's ShipHero connection check now","operationId":"run_connection_check_v1_integrations_shiphero__brand__check_post","parameters":[{"name":"brand","in":"path","required":true,"schema":{"type":"string","title":"Brand"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/integrations/shiphero/{brand}/orders":{"get":{"tags":["Open API"],"summary":"What ShipHero holds for a brand: orders in the last days (?days)","description":"What ShipHero holds for the brand: orders placed and updated in `days` (1-60), and how many carry TCS-i's box.","operationId":"order_check_v1_integrations_shiphero__brand__orders_get","parameters":[{"name":"brand","in":"path","required":true,"schema":{"type":"string","title":"Brand"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":14,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/integrations/shiphero/include-brand-logins":{"post":{"tags":["Open API"],"summary":"Brands on their own ShipHero login join your 3PL login (admin scope)","operationId":"include_brand_logins_v1_integrations_shiphero_include_brand_logins_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/integrations/shiphero/reset-boxes":{"post":{"tags":["Open API"],"summary":"Give every brand on a ShipHero login ShipHero's boxes again (admin scope)","description":"Every brand on the brand's ShipHero login loses its boxes in TCS-i and gets ShipHero's\nactive boxes instead. dry_run (the default) only says what would change.","operationId":"reset_boxes_v1_integrations_shiphero_reset_boxes_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/integrations/{system}":{"get":{"tags":["Open API"],"summary":"A system's linked logins and brands (admin scope)","operationId":"logins_v1_integrations__system__get","parameters":[{"name":"system","in":"path","required":true,"schema":{"type":"string","title":"System"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Open API"],"summary":"Link a WMS login for the brands named (admin scope)","description":"Links the login for the brands named (from preview); their first sync starts at once.","operationId":"connect_v1_integrations__system__post","parameters":[{"name":"system","in":"path","required":true,"schema":{"type":"string","title":"System"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Open API"],"summary":"Delete Mintsoft's key and unlink its brands (admin scope)","description":"Mintsoft has one key per account: this deletes it and unlinks its brands.","operationId":"disconnect_system_v1_integrations__system__delete","parameters":[{"name":"system","in":"path","required":true,"schema":{"type":"string","title":"System"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/integrations/{system}/preview":{"post":{"tags":["Open API"],"summary":"Check a WMS login and list its brands: nothing saved (admin scope)","description":"Checks the login and lists its brands. Nothing is saved.","operationId":"preview_v1_integrations__system__preview_post","parameters":[{"name":"system","in":"path","required":true,"schema":{"type":"string","title":"System"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/integrations/{system}/brands/{brand}":{"delete":{"tags":["Open API"],"summary":"Unlink one brand (admin scope)","operationId":"disconnect_brand_v1_integrations__system__brands__brand__delete","parameters":[{"name":"system","in":"path","required":true,"schema":{"type":"string","title":"System"}},{"name":"brand","in":"path","required":true,"schema":{"type":"string","title":"Brand"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/integrations/{system}/logins/{login_id}":{"delete":{"tags":["Open API"],"summary":"Unlink a login (admin scope)","operationId":"disconnect_login_v1_integrations__system__logins__login_id__delete","parameters":[{"name":"system","in":"path","required":true,"schema":{"type":"string","title":"System"}},{"name":"login_id","in":"path","required":true,"schema":{"type":"integer","title":"Login Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/partner-links":{"get":{"tags":["Open API"],"summary":"Links between a 3PL and its brands (admin scope)","operationId":"partner_links_v1_partner_links_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/partner-links/compare":{"get":{"tags":["Open API"],"summary":"A brand's 3PLs side by side (?window)","operationId":"compare_links_v1_partner_links_compare_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Window"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/partner-links/differences":{"get":{"tags":["Open API"],"summary":"Where a brand's 3PLs hold different data for it","operationId":"link_differences_v1_partner_links_differences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/partner-links/{link_id}/access":{"put":{"tags":["Open API"],"summary":"What the brand may change through a link: edit or view (admin scope)","operationId":"link_access_v1_partner_links__link_id__access_put","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/partner-links/{link_id}/label":{"put":{"tags":["Open API"],"summary":"A brand's own name for its 3PL (admin scope)","operationId":"link_label_v1_partner_links__link_id__label_put","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/partner-links/push/{kind}/preview":{"post":{"tags":["Open API"],"summary":"What sending a rule or product fix to your other 3PLs would do","description":"What sending a rule (rule_id) or a product fix (sku, changes) to your other 3PLs would do,\nlink by link, each with a key to confirm it by. Changes nothing.","operationId":"preview_push_v1_partner_links_push__kind__preview_post","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/partner-links/push/{kind}":{"post":{"tags":["Open API"],"summary":"Send a rule or product fix to your other 3PLs, as previewed","description":"Applies the plans confirmed ({ link_id, key } from the preview), each only if it's still\nexactly what was previewed.","operationId":"apply_push_v1_partner_links_push__kind__post","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/partner-links/{link_id}/brand":{"put":{"tags":["Open API"],"summary":"Which client in your WMS a brand that invited you is (admin scope)","operationId":"choose_brand_v1_partner_links__link_id__brand_put","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/partner-requests":{"get":{"tags":["Open API"],"summary":"Requests between you and your partners: add a box, send sizes, a question","operationId":"list_partner_requests_v1_partner_requests_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["Open API"],"summary":"Ask your partner for something: add a box, send sizes, a question","description":"{ link_id, kind: add_box | sku_sizes | question, body?, data? }: the other side is told.","operationId":"create_partner_request_v1_partner_requests_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/partner-requests/{request_id}/{reply}":{"post":{"tags":["Open API"],"summary":"Answer a request (done, declined) or withdraw yours","description":"done or declined (the side asked), withdrawn (the side that asked).","operationId":"answer_partner_request_v1_partner_requests__request_id___reply__post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"reply","in":"path","required":true,"schema":{"type":"string","title":"Reply"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/partner-links/invite-brand":{"post":{"tags":["Open API"],"summary":"A 3PL invites a brand to see its packing (admin scope)","operationId":"invite_brand_v1_partner_links_invite_brand_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/partner-links/invite-warehouse":{"post":{"tags":["Open API"],"summary":"A brand invites its 3PL (admin scope)","operationId":"invite_warehouse_v1_partner_links_invite_warehouse_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/partner-links/{link_id}/{action}":{"post":{"tags":["Open API"],"summary":"resend, on or off for a partner link (admin scope)","operationId":"link_action_v1_partner_links__link_id___action__post","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/partner-links/{link_id}":{"delete":{"tags":["Open API"],"summary":"Remove a partner link (admin scope)","operationId":"remove_link_v1_partner_links__link_id__delete","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/setup":{"get":{"tags":["Open API"],"summary":"Where the account stands and which calls are left to make","operationId":"setup_v1_setup_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"BoxBody":{"properties":{"id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Id","description":"Your id for the box; the path's on PUT and PATCH"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand","description":"The brand (client account); leave out for a single brand"},"brands":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Brands","description":"On POST: the same box for several brands at once"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"length":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Length"},"width":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Height"},"max_weight":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Max Weight"},"is_mailer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Mailer","description":"A bag or mailer; null: decided by its name"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"active (default) or disabled: off for new orders"},"dimension_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension Unit","description":"cm (default), mm or in"},"weight_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Unit","description":"kg (default), g or lb"}},"type":"object","title":"BoxBody","description":"A box. Sizes are inside measurements."},"BoxRuleBody":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"brand":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Brand"},"items":{"items":{"$ref":"#/components/schemas/RuleItem"},"type":"array","maxItems":50,"minItems":1,"title":"Items"},"box_ids":{"items":{"type":"string"},"type":"array","maxItems":5,"minItems":1,"title":"Box Ids"},"enabled":{"type":"boolean","title":"Enabled","default":true},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"auto_layout":{"type":"boolean","title":"Auto Layout","default":false}},"additionalProperties":false,"type":"object","required":["name","items","box_ids"],"title":"BoxRuleBody"},"BoxesBulk":{"properties":{"boxes":{"items":{"$ref":"#/components/schemas/BoxBody"},"type":"array","maxItems":500,"minItems":1,"title":"Boxes"},"dimension_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension Unit"},"weight_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Unit"}},"type":"object","required":["boxes"],"title":"BoxesBulk"},"BoxesDelete":{"properties":{"ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Ids"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}},"type":"object","required":["ids"],"title":"BoxesDelete"},"Days":{"properties":{"days":{"anyOf":[{"type":"integer","maximum":30.0,"minimum":1.0},{"type":"null"}],"title":"Days"}},"type":"object","title":"Days"},"Dismiss":{"properties":{"request_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Request Ids"},"reason":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Reason"}},"type":"object","required":["request_ids"],"title":"Dismiss"},"EnabledBody":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"additionalProperties":false,"type":"object","required":["enabled"],"title":"EnabledBody"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Line":{"properties":{"sku":{"type":"string","maxLength":200,"minLength":1,"title":"Sku"},"quantity":{"type":"integer","maximum":2000.0,"minimum":1.0,"title":"Quantity","default":1},"name":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Name"},"length":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Length"},"width":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Height"},"weight":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Weight"}},"type":"object","required":["sku"],"title":"Line"},"OrderBody":{"properties":{"order_id":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Order Id","description":"Your id; the path's on PUT"},"order_number":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Order Number","description":"What packers see"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"lines":{"anyOf":[{"items":{"$ref":"#/components/schemas/Line"},"type":"array","maxItems":500,"minItems":1},{"type":"null"}],"title":"Lines"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"},"dimension_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension Unit"},"weight_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Unit"}},"type":"object","title":"OrderBody"},"OrdersBulk":{"properties":{"orders":{"items":{"$ref":"#/components/schemas/OrderBody"},"type":"array","maxItems":500,"minItems":1,"title":"Orders"},"dimension_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension Unit"},"weight_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Unit"}},"type":"object","required":["orders"],"title":"OrdersBulk"},"PackInputBody":{"properties":{"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"lines":{"items":{"$ref":"#/components/schemas/Line"},"type":"array","maxItems":500,"minItems":1,"title":"Lines"},"dimension_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension Unit"},"weight_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Unit"}},"type":"object","required":["lines"],"title":"PackInputBody"},"PackedBody":{"properties":{"boxes":{"anyOf":[{"items":{"$ref":"#/components/schemas/PackedBox"},"type":"array","maxItems":50,"minItems":1},{"type":"null"}],"title":"Boxes","description":"The box(es) it went in; leave out to say it went in the recommended box(es)"},"packed_by":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Packed By"},"packed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Packed At"},"dimension_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension Unit"}},"type":"object","title":"PackedBody"},"PackedBox":{"properties":{"box_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Box Id"},"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"length":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Length"},"width":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Height"},"is_mailer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Mailer"}},"type":"object","title":"PackedBox"},"ProductBody":{"properties":{"sku":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Sku","description":"The path's on PUT and PATCH"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"length":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Length"},"width":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Height"},"is_fragile":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Fragile"},"is_flexible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Flexible","description":"Soft: folds and squeezes (clothes, textiles...)"},"is_rotatable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Rotatable"},"is_cylinder":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Cylinder"},"bag_allowed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Bag Allowed","description":"May ship in a bag or mailer"},"own_container":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Own Container","description":"Ships in its own box, never packed in another"},"weight":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Weight","description":"One unit's weight, in weight_unit. Lets a box's max weight count."},"dimension_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension Unit"},"weight_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Unit","description":"kg (default), g or lb"}},"type":"object","title":"ProductBody","description":"A product (SKU). Sizes are the packed item's outside measurements."},"ProductsArchive":{"properties":{"skus":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Skus"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"}},"type":"object","required":["skus"],"title":"ProductsArchive"},"ProductsBulk":{"properties":{"products":{"items":{"$ref":"#/components/schemas/ProductBody"},"type":"array","maxItems":500,"minItems":1,"title":"Products"},"dimension_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension Unit"},"weight_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Unit"}},"type":"object","required":["products"],"title":"ProductsBulk"},"RuleItem":{"properties":{"sku":{"type":"string","maxLength":200,"minLength":1,"title":"Sku"},"qty":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Qty"},"match":{"type":"string","enum":["exact","similar"],"title":"Match","default":"exact"},"buffer_cm":{"type":"number","maximum":5.0,"minimum":0.0,"title":"Buffer Cm","default":0.0}},"additionalProperties":false,"type":"object","required":["sku","qty"],"title":"RuleItem"},"ShippedBatch":{"properties":{"orders":{"items":{"$ref":"#/components/schemas/ShippedOrder"},"type":"array","maxItems":200,"minItems":1,"title":"Orders"}},"type":"object","required":["orders"],"title":"ShippedBatch"},"ShippedBox":{"properties":{"box_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Box Id"},"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"length":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Length"},"width":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Height"},"is_mailer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Mailer"}},"type":"object","title":"ShippedBox"},"ShippedItem":{"properties":{"sku":{"type":"string","maxLength":200,"minLength":1,"title":"Sku"},"name":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Name"},"length":{"type":"number","exclusiveMinimum":0.0,"title":"Length"},"width":{"type":"number","exclusiveMinimum":0.0,"title":"Width"},"height":{"type":"number","exclusiveMinimum":0.0,"title":"Height"},"weight":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Weight"},"quantity":{"type":"integer","maximum":10000.0,"minimum":1.0,"title":"Quantity","default":1}},"type":"object","required":["sku","length","width","height"],"title":"ShippedItem"},"ShippedOrder":{"properties":{"order_id":{"type":"string","maxLength":200,"minLength":1,"title":"Order Id"},"order_number":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Order Number"},"brand":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Brand"},"shipped_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Shipped At"},"dimension_unit":{"type":"string","enum":["cm","mm","in"],"title":"Dimension Unit","default":"cm"},"weight_unit":{"type":"string","enum":["kg","g","lb"],"title":"Weight Unit","default":"kg"},"items":{"items":{"$ref":"#/components/schemas/ShippedItem"},"type":"array","maxItems":500,"minItems":1,"title":"Items"},"boxes":{"items":{"$ref":"#/components/schemas/ShippedBox"},"type":"array","maxItems":50,"minItems":1,"title":"Boxes"}},"type":"object","required":["order_id","items","boxes"],"title":"ShippedOrder"},"Undismiss":{"properties":{"request_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Request Ids"}},"type":"object","required":["request_ids"],"title":"Undismiss"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WebhookBody":{"properties":{"url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Url"},"events":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Events"},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Description"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},"additionalProperties":false,"type":"object","title":"WebhookBody"}},"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key"},"bearer":{"type":"http","scheme":"bearer"}}},"servers":[{"url":"https://api.tcs-i.com"}],"security":[{"apiKey":[]},{"bearer":[]}]}