API测试>>

酒店

获取工单类别V2更新时间:2025/07/10 16:39


方法名称

hotel.sr.v2.finddic

使用说明

通过该接口获取全部工单V2的类别/类型;

工单类别会发生变化,但频率不会很高;

输入参数


响应结果

节点名称类型可为空说明
Dicts类别字典集合DictN类别字典集合,参考Dict节点

Dict节点

节点名称类型可为空说明
Id字典IDInteger
N
ParentId父节点IdIntegerN
DicValue字典名称IntN
DicType字典类型IntN该节点有:srtype (服务类型),srsubtype (服务子类型),srsubdetail (咨询细项)几种值
Children子节点List<Dict>Y


输入示例

http://api-test.elong.com/rest?format=json
&data={"Version": "1.36", "Local": "zh_CN"}
&signature=094a8346c4459b98a443ffd723a094f0&timestamp=1626158075&user={userId}&method=hotel.sr.v2.finddic

输出参数示例

{
    "Code": "0",
    "Result": {
        "Dicts": [
            {
                "Id": 3675,
                "ParentId": -1,
                "DicType": "srtype",
                "DicValue": "酒店-订单信息",
                "Children": [
                    {
                        "Id": 3677,
                        "ParentId": 3675,
                        "DicType": "srsubtype",
                        "DicValue": "酒店静态信息不符",
                        "Children": [
                            {
                                "Id": 3684,
                                "ParentId": 3677,
                                "DicType": "srsubdetail",
                                "DicValue": "房型基础信息不符"
                            },
                            {
                                "Id": 3683,
                                "ParentId": 3677,
                                "DicType": "srsubdetail",
                                "DicValue": "设施设备不符"
                            },
                            {
                                "Id": 3682,
                                "ParentId": 3677,
                                "DicType": "srsubdetail",
                                "DicValue": "酒店基础信息不符"
                            },
                            {
                                "Id": 3686,
                                "ParentId": 3677,
                                "DicType": "srsubdetail",
                                "DicValue": "酒店入住政策"
                            }
                        ]
                    },
                    {
                        "Id": 3676,
                        "ParentId": 3675,
                        "DicType": "srsubtype",
                        "DicValue": "咨询订单信息",
                        "Children": [
                            {
                                "Id": 3680,
                                "ParentId": 3676,
                                "DicType": "srsubdetail",
                                "DicValue": "咨询订单信息"
                            },
                            {
                                "Id": 3681,
                                "ParentId": 3676,
                                "DicType": "srsubdetail",
                                "DicValue": "补发订单信息"
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "Guid": "dsafdsaf"
}