轨迹请求返回

定时任务请求返回数据格式:
{
    "success": false,
    "mess": "查询结果:成功/失败",
    "branch_id": "客户ID",
    "result_items": [{
            "api_service_code": "渠道代码ID",
            "request_dictionary": {
                "key": "value",
                "key2": "value"
            },
            "data": [{
                "id": "单号ID",
                "picked_up_time": "时间",
                "country_en": "国家",
                "skip_parse_code": "SkipParseCode",
                "hawbcode": "单号1"
            }, {
                "id": "单号ID",
                "picked_up_time": "时间",
                "country_en": "国家",
                "skip_parse_code": "SkipParseCode",
                "hawbcode": "单号1"
            }]
        },
        {
            "api_service_code": "渠道代码ID",
            "request_dictionary": {
                "key": "value"
            },
            "data": [{
                "id": "单号ID",
                "picked_up_time": "时间",
                "country_en": "国家",
                "skip_parse_code": "SkipParseCode",
                "hawbcode": "单号1"
            }, {
                "id": "单号ID",
                "picked_up_time": "时间",
                "country_en": "国家",
                "skip_parse_code": "SkipParseCode",
                "hawbcode": "单号1"
            }]
        }
    ],
    "total_items": 222
}
轨迹查询
request:
[{
    "api_service_code": 1,
    "request_dictionary": {
        "key": "value",
        "key2": "value2"
    },
    "data": [{
        "id": "单号ID",
                "picked_up_time": "时间",
                "country_en": "国家",
                "skip_parse_code": "SkipParseCode",
                "hawbcode": "单号1"
    }, {
        "id": "单号ID",
                "picked_up_time": "时间",
                "country_en": "国家",
                "skip_parse_code": "SkipParseCode",
                "hawbcode": "单号1"
    }]
}]

response:
{
    "success": false,
    "reason": "结果说明",
    "data": [{
        "success": false,
        "reason": "结果说明",
        "hawbcode": "单号1",
        "api_service_code": 1,
        "state": "物流状态",
        "origin": "始发地",
        "destination": "目的地",
        "details": [{
            "description": "轨迹内容",
            "location": "地点",
            "accept_time": "时间,格式:yyyy-mm-dd hh:mm:ss",
            "remark": "轨迹描述备注"
        }]
    }, {
        "success": false,
        "reason": "结果说明",
        "hawbcode": "单号2",
        "api_service_code": 1,
        "state": "物流状态",
        "origin": "始发地",
        "destination": "目的地",
        "details": [{
            "description": "轨迹内容",
            "location": "地点",
            "accept_time": "时间,格式:yyyy-mm-dd hh:mm:ss",
            "remark": "轨迹描述备注"
        }]
    }]
}
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容