Files
syops/docs/openapi/shipping_notice_tools.dify.json

64 lines
2.3 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"openapi": "3.0.0",
"info": {
"title": "Shipping Notice Tools",
"version": "1.0.0",
"description": "货代 Chatflow 仅作自然语言只读解释。所有写操作必须由 HXOPS 确认卡和后端状态机执行;本 OpenAPI 不包含改单、确认、冻结、库存、Excel 或上传接口。"
},
"servers": [
{
"url": "http://192.168.36.108:5052/api/shipping-notice"
}
],
"paths": {
"/tools/get_task_status": {
"post": {
"operationId": "get_task_status",
"summary": "查询任务当前状态与 human_options;响应含库存源状态与候选结构",
"description": "返回 inventory_source_code、inventory_warehouse_id、inventory_source_status(unresolved|ambiguous|resolved|user_confirmed|invalid|conflicted)、inventory_source_method、inventory_source_config_version、inventory_routing_fingerprint,以及 step_payload.inventory_source_resolution.candidates。",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"task_id": {
"type": "string",
"description": "发货任务引用:技术任务号 SN-20260529-ABCD1234 或业务号 WYC26071501"
},
"conversation_id": {
"type": "string",
"description": "Dify 会话 ID"
},
"shipping_chat_capability_token": {
"type": "string",
"description": "HXOPS 每轮注入的短效只读能力令牌;必须原样透传"
}
},
"required": [
"task_id",
"shipping_chat_capability_token"
]
}
}
}
},
"responses": {
"200": {
"description": "Tool response (status: ok|running|needs_human|failed). May include checkpoint, human_options, action_buttons.",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
}
}