MCP

MCP 专栏

安全连接 AI 智能体:User MCP 用于运营,Developer MCP 用于集成 — 含 profile、confirm、dry-run 与人工审批。

MCP track_package(tracking_number) Tool
RPC tools/list JSON-RPC 2.0
RPC tools/call JSON-RPC 2.0
Documentation

MCP 专栏概览

本指南是开发者中心的 Superroute MCP 专栏,涵盖两个服务端、智能体安全模型,以及来自 UserMcpToolCatalog 的实时工具目录。

什么是 MCP?

模型上下文协议(MCP)是一种开放标准,允许 Claude、Cursor 和 ChatGPT 等 AI 助手与外部工具和服务交互。它使您的 AI 能够在对话中直接执行实际操作,例如追踪包裹。

通过配置 Superroute MCP 服务器,您的 AI 助手无需离开工作流程即可使用物流工具。

两个 MCP 服务

按受众选择正确的服务。不要给无人值守智能体分配带完全权限的 Developer 服务。

服务名 端点 受众 鉴权
superroute https://api.miliexpress.com/mcp 运营 / 客服 / 业务智能体 Bearer + 可选 profile/scopes(未设置时兼容全量)
superroute-developer https://api.miliexpress.com/mcp/developer 集成开发者与编码智能体 优先连接级 Bearer;tool 参数 api_token 将淘汰

连接器

只包含某一业务领域工具的较小服务器。它们接受相同的 API 令牌和相同的 OAuth 登录;令牌的权限照常生效。

服务名 端点 工具 内容
Superroute Delivery https://api.miliexpress.com/api/mcp/connectors/delivery 33 订单、路线、司机、异常和审批队列。
Superroute Shipping https://api.miliexpress.com/api/mcp/connectors/shipping 28 承运商运费与面单、寄件服务和寄件订单。
Superroute Warehouse https://api.miliexpress.com/api/mcp/connectors/warehouse 37 库存、入库、出库、问题单、任务、盘点、工单和计费。

每个工具都带有标准注解 title、readOnlyHint 和 destructiveHint。会修改或删除数据的工具仍需 confirm=true。

通过 OAuth 连接

Claude 及其他 MCP 客户端可以用您的账户登录,无需粘贴 API 令牌。

  1. 在 MCP 客户端中将服务器 URL 添加为连接器。
  2. 客户端自动找到登录服务器并完成注册,无需事先设置。
  3. 登录后在授权页面批准权限。取消勾选某项权限即可不授予该权限。
  4. 客户端列出已批准权限所允许的工具。

客户端未请求任何权限时,仅授予读取权限。开发者服务器需要 developer 权限。

通过此登录获得的令牌只能用于 MCP 服务器。访问令牌有效期 1 小时;刷新令牌有效期 30 天,每次使用后都会更换。

要终止某个应用的访问,请打开 API 令牌 → 已连接的 AI 应用,然后选择撤销。 /apitoken/connected-apps

每次应用连接时都会显示授权页,并按你上次的选择预先勾选,确认后点授权即可。之前未授予的权限保持不勾选,除非你主动勾上。连接器只申请其工具需要的权限。

现有连接保持不变、继续可用:API 令牌、X-MCP-Profile 和 X-MCP-Scopes 请求头,以及本页列出的所有服务器 URL。

隐私政策 · 服务条款

快速开始

包裹追踪等公开工具无需认证即可使用。将以下配置添加到您的 MCP 客户端:

JSON
{
  "mcpServers": {
    "mili-express": {
      "type": "url",
      "url": "https://api.miliexpress.com/mcp"
    }
  }
}
试试看! 设置完成后,询问您的 AI 助手:"追踪包裹 SR100012345"

认证访问

要使用需要用户权限的工具,请在配置中添加您的 API Bearer 令牌:

务必把令牌放在 MCP 连接请求头中,切勿写入工具参数或提示词。

JSON
{
  "mcpServers": {
    "mili-express": {
      "type": "url",
      "url": "https://api.miliexpress.com/mcp",
      "headers": {
        "Authorization": "Bearer <your-api-token>",
        "X-MCP-Profile": "ops-readonly"
      }
    }
  }
}

如何获取 API 令牌

使用您的凭据调用登录接口:

Bash
curl -X POST https://api.miliexpress.com/api/v1/user/login \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com", "password": "your-password"}'

响应将包含您的访问令牌:

JSON Response
{
  "access_token": "eyJ0eXAiOiJKV1Qi...",
  "token_type": "Bearer",
  "expires_at": "2026-02-20 00:00:00"
}

在 MCP 配置的 Authorization 头中使用 access_token 值。

智能体安全模型

User MCP 面向最小权限智能体。创建 token 时选择 MCP 配置文件(默认运营只读),或通过 header 传递 profile/scopes。

配置文件(X-MCP-Profile)

命名的权限包。无人值守智能体优先 ops-readonly 或 support。

配置 名称 权限范围
ops-readonly 运营只读 orders:read, labels:read, routes:read, drivers:read, analytics:read, address:read, approvals:read
support 客服(客户服务) orders:read, analytics:read, address:read, approvals:read
ops-write 运营写入(订单 + 面单 + 路线) orders:read, orders:write, labels:read, labels:write, routes:read, routes:write, drivers:read, analytics:read, address:read, approvals:read, approvals:write
wms-readonly WMS 只读 wms:read, orders:read
wms-ops WMS 作业(读写,不含计费) wms:read, wms:write, orders:read
wms-owner WMS 货主(我的货物、订单和账单) wms:read, wms:write, wms_billing:read
datasets-readonly 数据集只读 datasets:read
alliance-readonly 联盟只读 alliance:read
datacenter 数据中心(报表) datacenter:read, datacenter:write
full 完全访问(全部 MCP 工具)— 不适用于无人值守智能体 *
.mcp.json — 推荐智能体配置
{
  "mcpServers": {
    "mili-express": {
      "type": "url",
      "url": "https://api.miliexpress.com/mcp",
      "headers": {
        "Authorization": "Bearer <ops-readonly-token>",
        "X-MCP-Profile": "ops-readonly"
      }
    }
  }
}

可选请求头

请求头 用途
Authorization: Bearer …API Bearer 令牌(连接级)。
X-MCP-Profile命名配置:ops-readonly、support、ops-write、wms-readonly、datasets-readonly、alliance-readonly、full。
X-MCP-Scopes显式逗号分隔 scopes(覆盖 profile)。
X-MCP-Dry-Run: 1预览写操作且不落库。
X-MCP-Require-Approval: 1将高危写操作入队等待人工批准,而不是立即执行。

高危确认

以下工具在 tools/call 时需要 confirm=true(或使用审批队列):

人工审批队列

无人值守智能体应提议写操作;由人在应用内或通过 MCP 批准。

  1. 智能体:propose_write 或发送 X-MCP-Require-Approval: 1
  2. 人:打开 Web 的 MCP 审批,或 list_pending_approvals
  3. 人:approve_pending_write(confirm=true)或 reject_pending_write

Web 界面路径(需登录): /mcp-approvals

Developer MCP 鉴权

优先在连接上使用 Authorization: Bearer。按工具传 api_token 已弃用,将于 2026-12-31 后硬切断。

可用工具

以下工具目前在 MCP 服务器上可用: 291 个来自服务端目录的实时工具

此表在请求时由 UserMcpToolCatalog 生成,与生产环境认证全量 tools/list 保持同步。

工具 认证 风险 权限 描述
track_package 公开 low — Track a package by its tracking number. Returns delivery status, tracking events timeline, and proof of delivery if available.
otep_tracking 公开 low — Get the unified OTEP (Open Tracking Event Protocol) timeline for a tracking number — self-delivery, third-party and carrier events normalize...
get_capabilities 公开 low — List MCP tools available to the current connection, with risk level, required scopes, and whether confirm=true is needed. Call this first wh...
get_orders 需要 low orders:read List orders with filtering and pagination. Returns order details including status, tracking, and delivery info.
get_order_detail 需要 low orders:read Get full details of a specific order by ID, including address, status, packages, and tracking info.
find_order 需要 low orders:read Fuzzy-find orders across tracking number, external tracking, ref, recipient name, and phone in a single query. Use this instead of get_order...
get_operation_events 需要 low orders:read Get the full audit trail for orders — every status change, who performed it, GPS coordinates, and photos.
create_order 需要 medium orders:write Create a delivery/pickup order. D=delivery (warehouse→customer), P=pickup (customer→warehouse), P2P=peer-to-peer. Returns order ID and track...
cancel_order confirm 需要 high orders:write Cancel an existing order by order ID. Only works for orders not yet delivered.
bulk_create_orders confirm 需要 high orders:write Create up to 100 delivery orders in one call. Returns a per-order success/failure summary; partial failures do not abort the batch unless st...
reroute_to_address confirm 需要 high orders:write Change the delivery address of an order that has not been picked up yet: cancels the original order and recreates it with the new address. R...
update_delivery_instruction 需要 medium orders:write Update only the delivery_instruction field on an existing order (PATCH). Safer than full order rewrite.
update_order_note 需要 medium orders:write Update only the internal note field on an existing order (PATCH).
update_time_window_by_refs 需要 medium orders:write Bulk-update delivery time windows (and optional schedule_date) for orders identified by external refs.
hold_order confirm 需要 high orders:write Put an order on HOLD so it is not dispatched until release_order. HIGH-RISK: requires confirm=true.
release_order confirm 需要 high orders:write Release an order from HOLD back to NEW_ORDER. HIGH-RISK: requires confirm=true.
propose_write 需要 low approvals:read Queue a write/high-risk tool for human approval instead of executing it. Reviewers use list_pending_approvals + approve_pending_write.
list_pending_approvals 需要 low approvals:read List pending MCP write approvals for this business (or mine_only).
approve_pending_write confirm 需要 high approvals:write Approve and execute a pending write proposal. HIGH-RISK: requires confirm=true. Reviewer must have scopes for the underlying tool.
reject_pending_write 需要 medium approvals:write Reject a pending write proposal without executing it.
get_routes 需要 low routes:read List delivery routes with their status, assigned driver, and order count.
get_route_detail 需要 low routes:read Get one route with its stop/order list. Prefer this over get_routes when you already know route_id.
get_drivers 需要 low drivers:read List drivers for the authenticated business (ids, names, capacity defaults). Use driver id with get_driver_routes_today or route tools.
get_driver_routes_today 需要 low routes:read, drivers:read Orders assigned to a driver on a given date (defaults to today). Useful for "what is driver X running today?"
get_build_route_options 需要 low routes:read List routing engines, balance modes, capacity types, and defaults before calling build_route. While zone planning is switched on for the cli...
build_route confirm 需要 high routes:write Build/optimize a delivery route (POST /api/v3/client/build-route). HIGH-RISK: assigns orders to drivers. Call get_build_route_options first....
order_snapshot 需要 low orders:read One-call order context for support: order detail + operation events + public tracking (when tracking number is known). Pass order_id or trac...
list_exceptions 需要 low orders:read List failed/returned/exception-like orders for a schedule date (default today). Read-only ops triage helper.
get_shipping_methods 需要 low labels:read List available shipping carriers/methods. Returns IDs and names — use the ID for rate/label tools.
get_shipping_rate 需要 low labels:read Get a shipping cost quote. Dry-run — no label created. Returns rate options with pricing and transit time.
create_shipping_label 需要 medium labels:write Book a shipment with a carrier and generate a shipping label with tracking numbers.
quote_and_ship 需要 medium labels:write One-shot: rate across all enabled carriers, pick the best one by strategy, create the shipping label, return tracking number. Saves 3+ tool...
compare_all_carriers 需要 low labels:read Get rate quotes from every enabled carrier for the same shipment, in one call. Returns a sorted comparison (cheapest first) with price + tra...
search_address 需要 low address:read Search and resolve addresses by postal code or free-text query. Returns structured address suggestions.
daily_digest 需要 low analytics:read One-call summary of today's logistics activity: total orders, by status, exceptions (failed/returned), pending pickups. Designed as the firs...
datacenter_subjects 需要 low datacenter:read Data Center: the subjects the user may report on (orders, stops, runs, packages, promises, warehouse tasks and charges, store sales, device...
datacenter_templates 需要 low datacenter:read Data Center: ready-made report definitions (driver performance, delivery rate by territory, promises kept, label margin, …) that datacenter_...
datacenter_query 需要 low datacenter:read Data Center: run a report through the semantic layer under the user's own scope. request = {subject, dimensions: [{field, grain?}], measures...
datacenter_reports 需要 low datacenter:read Data Center: the user's saved reports, each with its definition.
datacenter_run_report 需要 low datacenter:read Data Center: run one of the user's saved reports now; its date preset (last 30 days, last month, …) is worked out today on the client's time...
datacenter_save_report 需要 medium datacenter:write Data Center: save a report for the user. definition = {request (as datacenter_query takes it, without the date filters), visual (table, pivo...
get_orders_summary 需要 low analytics:read Aggregate order metrics over a time window: counts by status, top carriers, on-time rate, exception count. Use period=today|week|month or pa...
get_account_credits 需要 low analytics:read Get the authenticated customer's wallet balance, currency, and recent topup history. Customer (B2C) accounts only — returns an error for cli...
get_warehouses 需要 low wms:read List WMS warehouses available to the authenticated business.
get_inventory 需要 low wms:read Query WMS inventory (POST /api/v1/wms/inventory). Pass filters supported by the inventory API (sku, warehouse_id, etc.).
wms_list_warehouses 需要 low wms:read List the warehouses this login works in (staff) or stores goods in (goods owner). Call first: most WMS tools need a warehouse_id. (GET /api/...
wms_list_locations 需要 low wms:read List storage locations (shelf grids) of a warehouse with their zone, setup and status. (GET /api/v1/wms-core/locations)
wms_get_warehouse_settings 需要 low wms:read Get a warehouse's WMS settings (receiving, putaway, picking and task options). (GET /api/v1/wms-core/warehouse-settings)
wms_list_license_plates 需要 low wms:read List license plates (pallets / totes) of a warehouse. (GET /api/v1/wms-core/license-plates)
wms_get_license_plate 需要 low wms:read Get one license plate with its contents and location. (GET /api/v1/wms-core/license-plates/{license_plate_id})
wms_resolve_license_plate 需要 low wms:read Find a license plate by its scanned code. (GET /api/v1/wms-core/license-plates/resolve)
wms_query_inventory 需要 low wms:read Query stock on hand grouped by SKU, location, lot or goods owner, with available, reserved and frozen quantities. (GET /api/v1/wms-core/inve...
wms_list_movements 需要 low wms:read List stock movements (the inventory ledger): every receipt, putaway, pick, move and adjustment. (GET /api/v1/wms-core/movements)
wms_get_allocation 需要 low wms:read Stock allocation overview of a warehouse: which SKUs are reserved for orders and what is short. (GET /api/v1/wms-core/allocation)
wms_get_sku_allocation 需要 low wms:read Where one SKU's stock sits and which orders hold it. (GET /api/v1/wms-core/allocation/sku)
wms_stock_aging 需要 low wms:read Stock aging of a warehouse: how long stock has been on hand, by age band. (GET /api/v1/wms-core/stock-aging)
wms_expiry_report 需要 low wms:read Lots that have expired or expire within the given days. (GET /api/v1/wms-core/expiry-report)
wms_trace 需要 low wms:read Trace a serial number, or a lot of a SKU, through receipts, moves and shipments. (GET /api/v1/wms-core/trace)
wms_get_lot_tracking 需要 low wms:read Lot / serial tracking settings and lots of one SKU. (GET /api/v1/wms-core/products/{product_id}/lot-tracking)
wms_get_lot_hold_impact 需要 low wms:read What holding a lot would affect: stock, open orders and reservations. (GET /api/v1/wms-core/lots/{lot_id}/hold-impact)
wms_list_stock_freezes 需要 low wms:read List stock freezes (holds that stop stock from being picked or moved). (GET /api/v1/wms-core/stock-freezes)
wms_get_stock_freeze 需要 low wms:read Get one stock freeze with what it holds. (GET /api/v1/wms-core/stock-freezes/{freeze_id})
wms_list_stock_adjustments 需要 low wms:read List stock adjustment requests and their review status. (GET /api/v1/wms-core/stock-adjustments)
wms_list_channel_stock 需要 low wms:read Stock shared to each sales channel (store / platform) and its rules. (GET /api/v1/wms-core/channel-stock)
wms_get_channel_stock 需要 low wms:read Stock and rules of one sales channel. (GET /api/v1/wms-core/channel-stock/{channel_id})
wms_stock_days 需要 low wms:read Daily stock on hand (for storage billing and trends). (GET /api/v1/wms-core/stock-days)
wms_stock_months 需要 low wms:read Monthly stock report: opening, in, out and closing per SKU. (GET /api/v1/wms-core/stock-months)
wms_replenishment_suggestions 需要 low wms:read Suggested pick-face min / max per location from recent demand. (GET /api/v1/wms-core/replenishment-settings/suggestions)
wms_list_replenishment_settings 需要 low wms:read Pick-face min / max replenishment settings per location. (GET /api/v1/wms-core/replenishment-settings)
wms_list_pack_levels 需要 low wms:read Pack levels (each, inner, case, pallet) of a SKU with dimensions and verification. (GET /api/v1/wms-core/pack-levels)
wms_dimension_repair_list 需要 low wms:read SKUs whose weight or dimensions are missing or doubtful, to measure. (GET /api/v1/wms-core/dimension-repair)
wms_my_stock 需要 low wms:read Goods owner: my stock per SKU and warehouse. (GET /api/v1/wms-core/my-stock)
wms_my_products 需要 low wms:read Goods owner: my SKUs (item master). (GET /api/v1/wms-core/my-products)
wms_get_my_product 需要 low wms:read Goods owner: one of my SKUs with its pack levels and stock. (GET /api/v1/wms-core/my-products/{product_id})
wms_my_movements 需要 low wms:read Goods owner: stock movements of my goods. (GET /api/v1/wms-core/my-movements)
wms_my_notifications 需要 low wms:read Goods owner: warehouse notifications about my goods (arrivals, differences, shortages). (GET /api/v1/wms-core/my-notifications)
wms_list_inbound_orders 需要 low wms:read List inbound orders (ASNs) with status and expected date. (GET /api/v1/wms-core/inbound-orders)
wms_get_inbound_order 需要 low wms:read Get one inbound order with lines, received quantities, differences and arrivals. (GET /api/v1/wms-core/inbound-orders/{inbound_order_id})
wms_list_inbound_cartons 需要 low wms:read Cartons of an inbound order and which are received. (GET /api/v1/wms-core/inbound-orders/{inbound_order_id}/cartons)
wms_inbound_schedule 需要 low wms:read Inbound arrivals and dock appointments of a warehouse on a day. (GET /api/v1/wms-core/inbound-schedule)
wms_list_dock_parcels 需要 low wms:read Parcels registered at the dock that are not yet matched to an inbound order. (GET /api/v1/wms-core/dock-parcels)
wms_get_dock_parcel 需要 low wms:read Get one dock parcel. (GET /api/v1/wms-core/dock-parcels/{dock_parcel_id})
wms_list_inspections 需要 low wms:read List quality inspections of received goods. (GET /api/v1/wms-core/inspections)
wms_get_inspection 需要 low wms:read Get one quality inspection with its results. (GET /api/v1/wms-core/inspections/{inspection_id})
wms_list_suppliers 需要 low wms:read List suppliers, optionally with delivery scores. (GET /api/v1/wms-core/suppliers)
wms_list_returns 需要 low wms:read List customer returns received or expected at a warehouse. (GET /api/v1/wms-core/returns)
wms_get_return 需要 low wms:read Get one return with its lines and dispositions. (GET /api/v1/wms-core/returns/{return_id})
wms_list_outbound_requests 需要 low wms:read List outbound requests (orders sent to the warehouse to ship). (GET /api/v1/wms-core/outbound-requests)
wms_get_outbound_request 需要 low wms:read Get one outbound request with its lines and status. (GET /api/v1/wms-core/outbound-requests/{outbound_request_id})
wms_list_outbound_orders 需要 low wms:read List outbound orders (picking documents) of the warehouses this login works in, newest first. (GET /api/v1/wms-core/outbound-orders)
wms_get_outbound_order 需要 low wms:read Get one outbound order with its lines (picked, remaining), packages, delivery, parcels and fulfilment mode. (GET /api/v1/wms-core/outbound-o...
wms_get_outbound_delivery 需要 low wms:read Shipping state of an outbound order: carrier, labels, ship and handover. (GET /api/v1/wms-core/outbound-orders/{outbound_order_id}/delivery)
wms_get_outbound_parcels 需要 low wms:read Parcels of an outbound order with tracking numbers. (GET /api/v1/wms-core/outbound-orders/{outbound_order_id}/parcels)
wms_get_outbound_fulfilment 需要 low wms:read Fulfilment mode of an outbound order (parcel, bulk, replenish) and why. (GET /api/v1/wms-core/outbound-orders/{outbound_order_id}/fulfilment...
wms_get_outbound_handling_units 需要 low wms:read Cartons and pallets of a bulk outbound order. (GET /api/v1/wms-core/outbound-orders/{outbound_order_id}/handling-units)
wms_get_outbound_handover 需要 low wms:read Pickup handover of an outbound order: who collects, what is ready. (GET /api/v1/wms-core/outbound-orders/{outbound_order_id}/handover)
wms_get_outbound_route 需要 low wms:read Outbound queue, channel and split strategy chosen for an outbound order. (GET /api/v1/outbound-routing/orders/{outbound_order_id})
wms_get_outbound_packages 需要 low wms:read Packages an outbound order is split into for picking. (GET /api/v1/picking/outbound-orders/{outbound_order_id}/packages)
wms_list_problem_orders 需要 low wms:read List outbound orders with problems (shortages, address, carrier, intercept). (GET /api/v1/wms-core/problem-orders)
wms_get_problem_order 需要 low wms:read Get one problem order with its history. (GET /api/v1/wms-core/problem-orders/{problem_order_id})
wms_list_short_picks 需要 low wms:read List short picks (lines picked less than ordered). (GET /api/v1/wms-core/short-picks)
wms_fill_rate 需要 low wms:read Order and line fill rate of a warehouse over a period. (GET /api/v1/wms-core/fill-rate)
wms_list_cutoff_rules 需要 low wms:read Carrier cutoff times of a warehouse. (GET /api/v1/wms-core/cutoff-rules)
wms_list_outbound_containers 需要 low wms:read List outbound containers (cages / sacks of parcels for a carrier). (GET /api/v1/wms-core/outbound-containers)
wms_get_outbound_container 需要 low wms:read Get one outbound container with its parcels. (GET /api/v1/wms-core/outbound-containers/{container_id})
wms_list_loads 需要 low wms:read List dock loads (trucks loading or unloading). (GET /api/v1/wms-core/loads)
wms_get_load 需要 low wms:read Get one dock load with its units and progress. (GET /api/v1/wms-core/loads/{load_id})
wms_routes_waiting_for_load 需要 low wms:read Delivery routes whose parcels wait to be loaded. (GET /api/v1/wms-core/loads/routes-waiting)
wms_list_pack_sessions 需要 low wms:read Open packing sessions of a warehouse. (GET /api/v1/wms-core/pack-sessions)
wms_list_pick_candidates 需要 low wms:read Outbound orders ready to be grouped into a pick wave. (GET /api/v1/picking/candidates)
wms_list_pick_waves 需要 low wms:read List pick waves of a warehouse. (GET /api/v1/picking/waves)
wms_get_pick_wave 需要 low wms:read Get one pick wave with its batches and orders. (GET /api/v1/picking/waves/{wave_id})
wms_get_pick_wave_estimate 需要 low wms:read Release estimate of a pick wave: pick time, walking and finish time. (GET /api/v1/picking/waves/{wave_id}/estimate)
wms_list_pick_batches 需要 low wms:read Pick batches waiting or in progress. (GET /api/v1/picking/batches)
wms_get_pick_batch 需要 low wms:read Get one pick batch with its pick lines. (GET /api/v1/picking/batches/{batch_id})
wms_list_outbound_queues 需要 low wms:read Outbound queues and their rules. (GET /api/v1/outbound-routing/queues)
wms_list_tasks 需要 low wms:read List warehouse tasks (putaway, replenishment, relocate, count). (GET /api/v1/wms-core/tasks)
wms_list_task_orders 需要 low wms:read List task orders (receive, putaway, pick, move work orders). (GET /api/v1/wms-core/task-orders)
wms_get_task_order 需要 low wms:read Get one task order with its lines and reservations. (GET /api/v1/wms-core/task-orders/{task_order_id})
wms_task_order_estimates 需要 low wms:read Finish-time estimates of open task orders with the given number of workers. (GET /api/v1/wms-core/task-orders/estimates)
wms_list_task_reservations 需要 low wms:read Stock reservations held by task orders. (GET /api/v1/wms-core/task-reservations)
wms_list_cycle_counts 需要 low wms:read List cycle counts of a warehouse. (GET /api/v1/wms-core/cycle-counts)
wms_get_cycle_count 需要 low wms:read Get one cycle count with its lines and differences. (GET /api/v1/wms-core/cycle-counts/{cycle_count_id})
wms_cycle_count_accuracy 需要 low wms:read Cycle count accuracy by month. (GET /api/v1/wms-core/cycle-count-accuracy)
wms_stock_accuracy 需要 low wms:read Location accuracy summary of a warehouse (how often counts match the system). (GET /api/v1/wms-core/stock-accuracy)
wms_stock_accuracy_locations 需要 low wms:read Location accuracy per location, least accurate first. (GET /api/v1/wms-core/stock-accuracy/locations)
wms_zone_load 需要 low wms:read Zone load heatmap: expected work per zone and hour. (GET /api/v1/wms-core/zone-load)
wms_list_transfers 需要 low wms:read List stock transfers between warehouses. (GET /api/v1/wms-core/transfers)
wms_get_transfer 需要 low wms:read Get one transfer with its lines. (GET /api/v1/wms-core/transfers/{transfer_id})
wms_transfers_in_transit 需要 low wms:read Transfers on their way to a warehouse. (GET /api/v1/wms-core/transfers/in-transit)
wms_list_assembly_orders 需要 low wms:read List kitting / assembly orders. (GET /api/v1/wms-core/assembly-orders)
wms_get_assembly_order 需要 low wms:read Get one assembly order. (GET /api/v1/wms-core/assembly-orders/{assembly_order_id})
wms_assembly_suggestions 需要 low wms:read Kits worth assembling ahead from demand and component stock. (GET /api/v1/wms-core/assembly-orders/suggestions)
wms_list_vas_orders 需要 low wms:read List value-added service orders (labelling, bundling, inspection work). (GET /api/v1/wms-core/vas-orders)
wms_get_vas_order 需要 low wms:read Get one value-added service order. (GET /api/v1/wms-core/vas-orders/{vas_order_id})
wms_list_fba_relabel_orders 需要 low wms:read List FBA relabel orders. (GET /api/v1/wms-core/fba-relabel-orders)
wms_get_fba_relabel_order 需要 low wms:read Get one FBA relabel order. (GET /api/v1/wms-core/fba-relabel-orders/{fba_relabel_order_id})
wms_list_recalls 需要 low wms:read List product recalls. (GET /api/v1/wms-core/recalls)
wms_get_recall 需要 low wms:read Get one recall with the stock and shipments it covers. (GET /api/v1/wms-core/recalls/{recall_id})
wms_list_put_walls 需要 low wms:read Put walls of a warehouse and their slots. (GET /api/v1/wms-core/put-walls)
wms_list_slotting_runs 需要 low wms:read Slotting runs of a warehouse, newest first: proposals to move SKUs to locations that suit their velocity. source tells who made them (stask:...
wms_get_slotting_run 需要 low wms:read Get one slotting run with its proposals, best first: SKU, from and to location with grades, swap partner, benefit, status and relocate task...
wms_alerts 需要 low wms:read Warehouse alerts: late tasks, stuck orders, stock problems. (GET /api/v1/wms-core/alerts)
wms_dashboard 需要 low wms:read The warehouse dashboard: open and overdue inbound, outbound, tasks, exceptions and stock, as the dashboard page. (GET /api/v1/wms-core/dashb...
wms_labor_report 需要 low wms:read Productivity report per worker and activity: lines, units, earned and actual hours, achievement (at most 31 days). (GET /api/v1/wms-core/lab...
wms_get_labor_standards 需要 low wms:read A warehouse's labor standards (seconds per line and per unit by activity), with the medians of the last 90 days for managers. (GET /api/v1/w...
wms_get_release_estimate_coefficients 需要 low wms:read Release-estimate coefficients for pick and task work (in use, defaults, last fit) and how close the estimates came per week. (GET /api/v1/wm...
wms_get_schedule_suggestion 需要 low wms:read Suggested work schedule now: who does which open pick batch, task order and task, in which order, start and finish, and the jobs late agains...
wms_get_dock_slots 需要 low wms:read The earliest free dock slots for a new inbound or outbound appointment, best first. Book one with wms_book_inbound_appointment (inbound orde...
wms_preview_task_trip 需要 low wms:read The mixed trip claiming a warehouse task or task order would build now: the other open putaway, replenishment, relocation, task order and co...
wms_get_task_trip 需要 low wms:read One mixed trip: its tasks in walk order with their own status, the walk and its minutes. (GET /api/v1/wms-core/task-trips/{trip_id})
wms_list_docks 需要 low wms:read A warehouse's docks with the floor plan dock fixture each is linked to, its role (receiving, shipping or both), dock type and weekly opening...
wms_get_dock 需要 low wms:read Get one dock with its floor plan link, role, type and opening hours. (GET /api/v1/wms-core/docks/{dock_grid_id})
wms_list_shifts 需要 low wms:read A warehouse's shifts: name, start, end (crossing midnight when the end is before the start) and weekdays. (GET /api/v1/wms-core/shifts)
wms_get_shift 需要 low wms:read Get one warehouse shift. (GET /api/v1/wms-core/shifts/{shift_id})
wms_get_shift_roster 需要 low wms:read One week of a warehouse's shift roster: who is on which shift, whether the week repeats, and the warehouse's staff and shifts. Schedule sugg...
wms_owner_health 需要 low wms:read Per goods owner health: late inbound, shortages, problem orders. (GET /api/v1/wms-core/owner-health)
wms_sla_report 需要 low wms:read Outbound SLA report: shipped on time by day, carrier and owner. (GET /api/v1/wms-core/sla-report)
wms_callback_failures 需要 low wms:read Failed callbacks to goods owners' systems. (GET /api/v1/wms-core/callback-failures)
wms_list_tickets 需要 low wms:read List warehouse tickets (questions and issues between the warehouse and goods owners). (GET /api/v1/wms-core/tickets)
wms_list_import_batches 需要 low wms:read List the warehouse import batches (shelf, grid, SKU, replenishment, product configuration and inventory imports), newest first, with status,...
wms_get_import_batch 需要 low wms:read Get one warehouse import batch: status, counts, errors and the import's result once completed. (GET /api/v1/import-batches/{import_batch_id}...
wms_import_batch_errors 需要 low wms:read The errors and warnings of one warehouse import batch. (GET /api/v1/wms-core/import-batches/{import_batch_id}/error-report)
wms_list_customers 需要 low wms:read List the client's customers that use the warehouse system (goods owners) with products, stock on hand, open inbound orders and price plan; o...
wms_list_customer_candidates 需要 low wms:read Customers of the client that do not use the warehouse system yet, to turn on with wms_switch_customer. (GET /api/v1/wms-core/customers/candi...
wms_get_ticket 需要 low wms:read Get one ticket with its messages. (GET /api/v1/wms-core/tickets/{ticket_id})
wms_list_billing_statements 需要 low wms_billing:read List warehouse billing statements (invoices to goods owners). (GET /api/v1/wms-core/billing-statements)
wms_get_billing_statement 需要 low wms_billing:read Get one billing statement with totals by charge item. (GET /api/v1/wms-core/billing-statements/{statement_id})
wms_get_billing_statement_charges 需要 low wms_billing:read Every charge line of a billing statement. (GET /api/v1/wms-core/billing-statements/{statement_id}/charges)
wms_list_charges 需要 low wms_billing:read Warehouse charges accrued (storage, handling, value-added) over a period. (GET /api/v1/wms-core/charges)
wms_list_charge_entries 需要 low wms_billing:read Manual charge entries (one-off fees and credits). (GET /api/v1/wms-core/charge-entries)
wms_list_rate_cards 需要 low wms_billing:read List warehouse rate cards (price lists). (GET /api/v1/wms-core/rate-cards)
wms_get_rate_card 需要 low wms_billing:read Get one rate card with its prices. (GET /api/v1/wms-core/rate-cards/{rate_card_id})
wms_resolve_rate_card 需要 low wms_billing:read Which rate card and prices apply to a goods owner in a warehouse. (GET /api/v1/wms-core/rate-cards/resolve)
wms_internal_cost 需要 low wms_billing:read Internal cost of warehouse work over a period. (GET /api/v1/wms-core/internal-cost)
wms_my_prices 需要 low wms_billing:read Goods owner: the warehouse prices that apply to me. (GET /api/v1/wms-core/my-prices)
wms_create_inbound_order 需要 medium wms:write Create an inbound order (ASN): the goods a warehouse should expect. release=true sends it to the warehouse at once. (POST /api/v1/wms-core/i...
wms_update_inbound_order 需要 medium wms:write Change an inbound order that is not yet received. (PUT /api/v1/wms-core/inbound-orders/{inbound_order_id})
wms_release_inbound_order 需要 medium wms:write Release a draft inbound order to the warehouse. (POST /api/v1/wms-core/inbound-orders/{inbound_order_id}/release)
wms_cancel_inbound_order confirm 需要 high wms:write Cancel an inbound order that has nothing received. (POST /api/v1/wms-core/inbound-orders/{inbound_order_id}/cancel)
wms_book_inbound_appointment 需要 medium wms:write Book or move the dock appointment of an inbound order. (PUT /api/v1/wms-core/inbound-orders/{inbound_order_id}/appointment)
wms_cancel_inbound_appointment 需要 medium wms:write Cancel the dock appointment of an inbound order. (DELETE /api/v1/wms-core/inbound-orders/{inbound_order_id}/appointment)
wms_create_supplier 需要 medium wms:write Create a supplier. (POST /api/v1/wms-core/suppliers)
wms_update_supplier 需要 medium wms:write Change a supplier. (PUT /api/v1/wms-core/suppliers/{supplier_id})
wms_create_return 需要 medium wms:write Announce a customer return the warehouse should expect. (POST /api/v1/wms-core/returns)
wms_quote_outbound_request 需要 low wms:write Quote the shipping and warehouse charges of an outbound request before creating it. Changes nothing. (POST /api/v1/wms-core/outbound-request...
wms_create_outbound_request 需要 medium wms:write Create an outbound request: goods the warehouse should pick, pack and ship. (POST /api/v1/wms-core/outbound-requests)
wms_cancel_outbound_request confirm 需要 high wms:write Cancel an outbound request that has not shipped. (POST /api/v1/wms-core/outbound-requests/{outbound_request_id}/cancel)
wms_change_outbound_route 需要 medium wms:write Change the outbound queue or shipping service of an outbound order, or reset it to the rules' choice. (PUT /api/v1/outbound-routing/orders/{...
wms_change_fulfilment_mode 需要 medium wms:write Change the fulfilment mode (parcel, bulk, replenish) of an outbound order before picking. (POST /api/v1/wms-core/outbound-orders/{outbound_o...
wms_answer_problem_order 需要 medium wms:write Answer the question of a problem order (goods owner or staff) with one of the actions it offers. (POST /api/v1/wms-core/problem-orders/{prob...
wms_approve_problem_order 需要 medium wms:write Approve the proposed solution of a problem order. (POST /api/v1/wms-core/problem-orders/{problem_order_id}/approve)
wms_withdraw_problem_order 需要 medium wms:write Withdraw a problem order that is no longer a problem. (POST /api/v1/wms-core/problem-orders/{problem_order_id}/withdraw)
wms_resolve_short_pick 需要 medium wms:write Decide what happens to a short-picked line. (POST /api/v1/wms-core/short-picks/{short_pick_id}/resolve)
wms_create_pick_wave 需要 medium wms:write Group outbound orders (or a day's route drivers) into a pick wave with a pick profile. (POST /api/v1/picking/waves)
wms_release_pick_wave 需要 medium wms:write Release a pick wave: its batches become pickable on the handhelds. (POST /api/v1/picking/waves/{wave_id}/release)
wms_cancel_pick_wave confirm 需要 high wms:write Cancel a pick wave that has not been picked; its orders return to the candidates. (POST /api/v1/picking/waves/{wave_id}/cancel)
wms_plan_tasks 需要 medium wms:write Create the replenishment tasks a warehouse needs now (pick faces under their minimum). (POST /api/v1/wms-core/tasks/plan)
wms_save_labor_standards 需要 medium wms:write Set a warehouse's labor standards per activity (seconds per line and per unit), or reset an activity to the default. (PUT /api/v1/wms-core/l...
wms_save_release_estimate_coefficients 需要 medium wms:write Adopt the last fit of the pick or task release-estimate coefficients, or go back to the defaults. (PUT /api/v1/wms-core/release-estimates/co...
wms_apply_schedule_suggestion 需要 medium wms:write Assign jobs of the schedule suggestion (items of job and user_id from wms_get_schedule_suggestion, or all) through the normal assign rules;...
wms_build_task_trip 需要 medium wms:write Claim a warehouse task or task order for the signed-in worker together with the other open work sTask adds to the same walk (each claimed th...
wms_drop_task_trip_item 需要 medium wms:write Drop one task of the worker's mixed trip before any of it is done; it goes back to the queue. (POST /api/v1/wms-core/task-trips/{trip_id}/dr...
wms_save_dock 需要 medium wms:write Set a dock's floor plan dock fixture (its role), dock type and weekly opening hours; only the fields sent change. (PUT /api/v1/wms-core/dock...
wms_create_shift 需要 medium wms:write Create a warehouse shift: name, start, end (an end before the start crosses midnight) and weekdays. (POST /api/v1/wms-core/shifts)
wms_update_shift 需要 medium wms:write Change a warehouse shift; only the fields sent change. (PUT /api/v1/wms-core/shifts/{shift_id})
wms_delete_shift 需要 medium wms:write Delete a warehouse shift and take it off every roster week. (DELETE /api/v1/wms-core/shifts/{shift_id})
wms_save_shift_roster 需要 medium wms:write Set one week of a warehouse's shift roster (entries of shift_id and user_id replace the week's own; repeats carries it to the following week...
wms_create_task_order 需要 medium wms:write Create a task order (move, putaway, pick or other work order) for the handhelds. (POST /api/v1/wms-core/task-orders)
wms_assign_task_order 需要 medium wms:write Assign a task order to a worker. (POST /api/v1/wms-core/task-orders/{task_order_id}/assign)
wms_cancel_task_order confirm 需要 high wms:write Cancel a task order and release its reservations. (POST /api/v1/wms-core/task-orders/{task_order_id}/cancel)
wms_create_cycle_count 需要 medium wms:write Create a cycle count of locations or a shelf; counting is done on the handheld. (POST /api/v1/wms-core/cycle-counts)
wms_plan_cycle_counts 需要 medium wms:write Create the cycle counts due by the warehouse's count plan (ABC frequency, least accurate first). (POST /api/v1/wms-core/cycle-counts/plan)
wms_cancel_cycle_count confirm 需要 high wms:write Cancel a cycle count; nothing counted is applied. (POST /api/v1/wms-core/cycle-counts/{cycle_count_id}/cancel)
wms_generate_slotting 需要 medium wms:write Generate slotting proposals for a warehouse (nothing moves). Replaces the still-proposed entries of earlier runs. (POST /api/v1/wms-core/slo...
wms_approve_slotting_recommendation 需要 medium wms:write Approve one slotting proposal: it is re-checked and creates relocate task(s); a proposal that no longer holds goes stale. Managers only. (PO...
wms_reject_slotting_recommendation 需要 medium wms:write Reject one slotting proposal. Managers only. (POST /api/v1/wms-core/slotting/recommendations/{recommendation_id}/reject)
wms_approve_slotting_run confirm 需要 high wms:write Approve every still-proposed proposal of a slotting run; each creates relocate task(s). Answers approved, stale and failed with reasons. Man...
wms_create_stock_freeze confirm 需要 high wms:write Freeze stock (a SKU, location, license plate, lot or serial) so it is not picked or moved. (POST /api/v1/wms-core/stock-freezes)
wms_lift_stock_freeze confirm 需要 high wms:write Lift a stock freeze. (POST /api/v1/wms-core/stock-freezes/{freeze_id}/lift)
wms_hold_lot confirm 需要 high wms:write Hold a lot: it is not picked until released. Check wms_get_lot_hold_impact first. (POST /api/v1/wms-core/lots/{lot_id}/hold)
wms_release_lot confirm 需要 high wms:write Release a held lot. (POST /api/v1/wms-core/lots/{lot_id}/release)
wms_create_recall confirm 需要 high wms:write Open a recall of a lot: holds its stock and lists the shipments to notify. (POST /api/v1/wms-core/recalls)
wms_create_transfer 需要 medium wms:write Create a stock transfer from one warehouse to another; picking and receiving happen on the handhelds. (POST /api/v1/wms-core/transfers)
wms_cancel_transfer confirm 需要 high wms:write Cancel a transfer that has not shipped. (POST /api/v1/wms-core/transfers/{transfer_id}/cancel)
wms_create_assembly_order 需要 medium wms:write Create a kitting / assembly order. (POST /api/v1/wms-core/assembly-orders)
wms_release_assembly_order 需要 medium wms:write Release a draft assembly order to the floor. (POST /api/v1/wms-core/assembly-orders/{assembly_order_id}/release)
wms_cancel_assembly_order confirm 需要 high wms:write Cancel an assembly order. (POST /api/v1/wms-core/assembly-orders/{assembly_order_id}/cancel)
wms_create_vas_order 需要 medium wms:write Create a value-added service order (labelling, bundling, inspection work). (POST /api/v1/wms-core/vas-orders)
wms_create_ticket 需要 medium wms:write Open a ticket on a warehouse document (question or issue between the warehouse and a goods owner). (POST /api/v1/wms-core/tickets)
wms_comment_ticket 需要 medium wms:write Add a message to a ticket. (POST /api/v1/wms-core/tickets/{ticket_id}/comments)
wms_set_ticket_status 需要 medium wms:write Change the status of a ticket. (PUT /api/v1/wms-core/tickets/{ticket_id}/status)
wms_rerun_import_batch 需要 medium wms:write Queue a warehouse import batch again from its saved copy (a batch that did not complete; can_rerun on the list). (POST /api/v1/wms-core/impo...
wms_delete_import_batch confirm 需要 high wms:write Roll a warehouse import batch back as a whole: records it created are deleted, records it changed or deleted are restored, then the batch is...
wms_switch_customer confirm 需要 high wms:write Turn the warehouse system on or off for a customer (customer_id from wms_list_customers or wms_list_customer_candidates). Off is refused whi...
wms_create_my_product 需要 medium wms:write Goods owner: add a SKU to my item master. Weight and dimensions as figure + unit. (POST /api/v1/wms-core/my-products)
wms_update_my_product 需要 medium wms:write Goods owner: change one of my SKUs. (PUT /api/v1/wms-core/my-products/{product_id})
list_datasets 需要 low datasets:read List custom datasets available to the business.
get_dataset 需要 low datasets:read Get one dataset by id (metadata/columns).
list_dataset_groups 需要 low datasets:read List groups inside a dataset.
search_dataset_records 需要 low datasets:read Search records across groups in a dataset (POST .../search).
list_alliances 需要 low alliance:read List alliances the authenticated business belongs to.
get_alliance 需要 low alliance:read Get one alliance by id.
list_alliance_members 需要 low alliance:read List members of an alliance.
list_accessible_clients 需要 low alliance:read List clients accessible via alliance partnerships.
quote_delivery 需要 low orders:read Get the local delivery price for a shipment before creating the order (POST /api/v1/orders/rate). No order is created.
print_local_label 需要 low orders:read Get the printable label of a local delivery order as a base64 PDF, with its label code and tracking numbers (POST /api/v2/shipping/getShippi...
bulk_create_orders_async confirm 需要 high orders:write Queue a large batch of delivery orders for creation (POST /api/v1/client/batchOrderCreateAsync). Returns an asyncId at once; read the per-or...
get_async_batch_result 需要 low orders:read Read the status and per-order results of a batch queued with bulk_create_orders_async (GET /api/v1/client/async/{id}).
get_shipping_detail confirm 需要 high labels:write Get the carrier shipping detail of a label order: tracking numbers, price and the label (POST /api/v1/labelservice/getShippingDetail). The f...
download_shipping_label confirm 需要 high labels:write Download the label PDF of an order as base64 (POST /api/v1/shipping/getShippingLabel with base64). For a carrier label order whose label was...
cancel_shipping_label confirm 需要 high labels:write Cancel (void) a carrier label with the carrier (POST /api/v1/labelservice/cancelShippingLabel). Pass the order id, or one package tracking n...
submit_shipping_information confirm 需要 high labels:write Submit the shipping information of one or more label orders to their carriers (POST /api/v1/labelservice/submitShippingInformation).
end_of_day confirm 需要 high labels:write Close the day with the carriers: submit the shipping information of every open label order (POST /api/v1/labelservice/endofday).
uniorder_rate 需要 low uniorder:read Quote one shipment across self delivery and, with quote_labels=true, every label carrier service of the account (POST /api/v1/uniorder/rate)...
uniorder_create 需要 medium uniorder:write Create an order at a rate_id from uniorder_rate (POST /api/v1/uniorder). The rate decides the service: a self delivery order, or a label ord...
uniorder_get 需要 low uniorder:read Read one uniorder order in the uniorder shape (GET /api/v1/uniorder/{orderId}).
uniorder_label 需要 low uniorder:read Get the label PDF of a uniorder order, base64 (GET /api/v1/uniorder/{orderId}/label).
uniorder_tracking 需要 low uniorder:read Get the tracking timeline of a uniorder order (GET /api/v1/uniorder/{orderId}/tracking).
uniorder_cancel confirm 需要 high uniorder:write Cancel a uniorder order, self delivery or label (POST /api/v1/uniorder/{orderId}/cancel). A label order voids its carrier label.
uniorder_purchase_label confirm 需要 high uniorder:write Buy the carrier label of a uniorder label order that was kept without one (LABEL_PURCHASE_FAILED), at the service chosen at create or at a n...
uniorder_rate_batch 需要 low uniorder:read Quote up to 20 shipments in one call (POST /api/v1/uniorder/rate/batch). Each shipment takes the uniorder_rate shape plus an optional refere...
uniorder_create_batch confirm 需要 high uniorder:write Create up to 20 orders in one call, each at its own rate_id (POST /api/v1/uniorder/batch). Returns a result per order.
uniorder_rate_batch_async 需要 low uniorder:read Queue up to 500 shipments to quote (POST /api/v1/uniorder/rate/batch-async). Returns a job id; read the quotes with uniorder_job.
uniorder_create_batch_async confirm 需要 high uniorder:write Queue up to 500 orders to create, each at its own rate_id (POST /api/v1/uniorder/batch-async). Returns a job id; read the results with unior...
uniorder_job 需要 low uniorder:read Read a queued uniorder batch and, once done, its results (GET /api/v1/uniorder/jobs/{jobId}).
list_shipping_services 需要 low customer_shipping:read List the shipping services the customer may order (GET /api/v1/customer/shipping-orders/services). Step 1 of a shipping order. Needs a custo...
get_shipping_service_config 需要 low customer_shipping:read Get one shipping service's order form: warehouses, surcharges, packaging, supplies, units and form fields (GET /api/v1/customer/shipping-ord...
estimate_shipping_order 需要 low customer_shipping:read Estimate the price of a shipping order on a service (POST /api/v1/customer/shipping-orders/services/{serviceCode}/estimate-price). No order...
create_shipping_order 需要 medium customer_shipping:write Create a shipping order on a service (POST /api/v1/customer/shipping-orders/services/{serviceCode}/orders). Note the package list field is `...
pay_shipping_order confirm 需要 high customer_shipping:write Pay the full remaining balance of a shipping order from the customer wallet (POST /api/v1/customer/shipping-orders/{id}/pay). A fully paid p...
get_shipping_order 需要 low customer_shipping:read Get one shipping order of the customer (GET /api/v1/customer/shipping-orders/{id}). Needs a customer account token.
list_shipping_orders 需要 low customer_shipping:read List the customer's shipping orders on one service, paginated (GET /api/v1/customer/shipping-orders/services/{serviceCode}/orders). Needs a...
cancel_shipping_order confirm 需要 high customer_shipping:write Cancel a pending or confirmed shipping order of the customer (POST /api/v1/customer/shipping-orders/{id}/cancel). Needs a customer account t...
get_storage_order_config 需要 low storage:read Get what a storage order form needs: warehouses, packaging, supplies, pickup timeframes, units, surcharges and form fields (GET /api/v1/cust...
quote_storage_order 需要 low storage:read Calculate the price of a storage order before creating it (POST /api/v1/customer/storage-orders/calculate-price). Storage order form fields...
create_storage_order 需要 medium storage:write Create a storage order (POST /api/v1/customer/storage-orders). Storage order form fields as returned by get_storage_order_config: warehouse_...
pay_storage_order confirm 需要 high storage:write Pay a storage order from the customer wallet (POST /api/v1/customer/storage-orders/{id}/pay). Needs a customer account token.
get_storage_order 需要 low storage:read Get one storage order of the customer, with can_edit, can_cancel and each package's received flag (GET /api/v1/customer/storage-orders/{id})...
list_storage_orders 需要 low storage:read List the customer's storage orders, paginated (GET /api/v1/customer/storage-orders). Needs a customer account token.
cancel_storage_order confirm 需要 high storage:write Cancel a storage order of the customer while its status allows it (POST /api/v1/customer/storage-orders/{id}/cancel). Needs a customer accou...
list_stored_packages 需要 low storage:read List the customer's stored packages that can be shipped out: received, not stocked out and not held by another ship-out, grouped by storage...
list_shipout_services 需要 low storage:read List the shipping services that ship out from a warehouse (GET /api/v1/customer/shipout-orders/services). pricing_method 1 = priced at once,...
estimate_shipout 需要 low storage:read Estimate the price of a ship-out (POST /api/v1/customer/shipout-orders/services/{serviceCode}/estimate). A manually priced service answers h...
create_shipout 需要 medium storage:write Create a ship-out of stored packages from one warehouse (POST /api/v1/customer/shipout-orders/services/{serviceCode}/orders). The chosen pac...
pay_shipout confirm 需要 high storage:write Pay a priced ship-out from the customer wallet (POST /api/v1/customer/shipout-orders/{id}/pay). Default is the full remaining balance. Needs...
get_shipout 需要 low storage:read Get one ship-out of the customer with paid amount, remaining balance, can_be_paid, can_be_cancelled and its packages (GET /api/v1/customer/s...
list_shipouts 需要 low storage:read List the customer's ship-outs, paginated (GET /api/v1/customer/shipout-orders). Needs a customer account token.
cancel_shipout confirm 需要 high storage:write Cancel a pending or confirmed ship-out and release its stored packages (POST /api/v1/customer/shipout-orders/{id}/cancel). A payment is not...
otep_client_tracking 需要 low orders:read Get the OTEP timeline and details (addresses, dates, proof of delivery, item counts) of one of your own shipments: a parcel tracking number,...
otep_client_locker_storage 需要 low orders:read Get the OTEP timeline (storage profile) and details of one of your locker storage rentals, by rental id. Requires a token.

客户端配置

选择您的 AI 客户端以获取相应的配置说明:

Claude Code

Claude Code 从项目根目录或主目录中的 .mcp.json 文件读取 MCP 配置。

  1. 在项目根目录创建 .mcp.json 文件(或 ~/.claude/.mcp.json 用于全局访问)。
  2. 添加以下配置:
.mcp.json
{
  "mcpServers": {
    "mili-express": {
      "type": "url",
      "url": "https://api.miliexpress.com/mcp"
    }
  }
}

要使用认证工具,请添加 headers 字段:

.mcp.json (带认证)
{
  "mcpServers": {
    "mili-express": {
      "type": "url",
      "url": "https://api.miliexpress.com/mcp",
      "headers": {
        "Authorization": "Bearer <your-api-token>",
        "X-MCP-Profile": "ops-readonly"
      }
    }
  }
}

Cursor

Cursor 通过内置配置支持 MCP 服务器。

  1. 在项目根目录创建 .cursor/mcp.json 文件。
  2. 添加以下配置:
  3. 重启 Cursor 以加载新的 MCP 服务器。
.cursor/mcp.json
{
  "mcpServers": {
    "mili-express": {
      "type": "url",
      "url": "https://api.miliexpress.com/mcp"
    }
  }
}

Windsurf

Windsurf 使用全局 MCP 配置文件。

  1. 编辑 ~/.codeium/windsurf/mcp_config.json(如果不存在则创建)。
  2. 添加以下配置:
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "mili-express": {
      "serverUrl": "https://api.miliexpress.com/mcp"
    }
  }
}

ChatGPT

ChatGPT 为 Plus、Pro 和 Team 用户支持 MCP 连接。

  1. 打开 ChatGPT 并进入设置。
  2. 导航到"连接的应用"或"工具"部分。
  3. 添加新的 MCP 服务器,使用上方显示的端点 URL。
ChatGPT 的 MCP 支持可能因您的计划和地区而异。请参阅 OpenAI 文档获取最新说明。

技术细节