查询物流轨迹的接口

查询物流轨迹方式有2种接口
一、直接用飞鸟的查询物流轨迹的接口https://api.birdsystem.com/consignment/tracking

举例:GET https://api.birdsystem.com/consignment/tracking?tracking_references=JV746708174GB

返回



{ "success": true, "data": { "JV746708174GB": { "destination_country": "GB", "origination_country": "CN", "check_points": [ { "create_time": "2018-11-21T14:24:35+00:00", "current_status": null, "note": "Delivery Recorded\nDelivery Address." }, { "create_time": "2018-11-21T04:53:43+00:00", "current_status": null, "note": "Sorted For Delivery\nPeterborough DO." }, { "create_time": "2018-11-21T03:26:31+00:00", "current_status": null, "note": "Item In Rm Sales Order\n7021636173." }, { "create_time": "2018-11-21T02:29:56+00:00", "current_status": null, "note": "Item Scan\nPeterborough Mail Centre." }, { "create_time": "2018-11-20T03:02:22+00:00", "current_status": null, "note": "Item Scan\nNorth West RDC." }, { "create_time": "2018-11-19T18:00:00+00:00", "current_status": null, "note": "二程服务商对接时间." }, { "create_time": "2018-11-16T18:03:00+00:00", "current_status": null, "note": "到达目的机场时间." }, { "create_time": "2018-11-14T21:41:00+00:00", "current_status": null, "note": "出发机场(起飞时间)." }, { "create_time": "2018-11-12T21:28:28+08:00", "current_status": "FINISHED", "note": "Consignment is now at [ FINISHED ] status, waiting for dispatch." }, { "create_time": "2018-11-12T19:27:51+00:00", "current_status": null, "note": "Item Advised." }, { "create_time": "2018-11-12T09:26:25+08:00", "current_status": "PENDING", "note": "Consignment is now at [ PENDING ] status." } ] } }, "message": [] }





注:客户主动获取的, 需要客户自己判断是不是完整的物流轨迹

字段

备注

字段

备注

destination_country

目的国

origination_country

起始国

create_time

生成时间

current_status

当前订单状态

note

事件



二、通过webhook接口:待土豪哥补充

 注:webhook是客户被动接收的, 但是胜在即时