方法名称
hotel.sr.finddic
使用说明
通过该接口获取工单的类别/类型;
工单类别会发生变化,但频率不会很高;
输入参数
节点 | 名称 | 类型 | 可为空 | 说明 |
---|---|---|---|---|
ParentId | 父类型id | Integer | N | 父节点ID,初始值为1 |
ShowType | 展示类型 | String | Y |
1、ToB:同程与分销商客服内部系统使用的工单类型; 2、ToC:展示给C端客人服务类型; 为空时默认1 |
响应结果
节点 | 名称 | 类型 | 可为空 | 说明 |
---|---|---|---|---|
Dicts | 类别字典集合 | Dict | N | 类别字典集合,参考Dict节点 |
Dict节点
节点 | 名称 | 类型 | 可为空 | 说明 |
---|---|---|---|---|
Id | 字典ID |
Integer |
N | |
ParentId | 父节点Id | Integer | N | |
DicValue | 字典名称 | Int | N | |
DicType | 字典类型 | Int | N | 该节点有:srtype (服务类型),srsubtype (服务子类型),srsubdetail (咨询细项)几种值 |
输入示例
http://api-test.elong.com/rest?format=json &data={"Version": "1.36", "Local": "zh_CN", "Request": {"ParentId": "494"}} &signature=094a8346c4459b98a443ffd723a094f0×tamp=1626158075&user={userId}&method=hotel.sr.finddic
输出参数示例
{ "Code": "0", "Result": { "Dicts": [ { "DicType": " srsubtype ", "DicValue": "在线投诉", "Id": 495, "ParentId": 494 } ] }, "Guid": "5cb4edaf-4baf-4fc5-a876-05af48dc42da" }