供应商线路信息变更(如价格,发车时间,新增班次)同步到飞猪销售端需要 10分钟-10个小时的时间(跟供应商线路数量,接口可支持的并发量有关)。 为了让供应商线路信息变更能够及时体现到飞猪销售端,供应商可以在修改完自身系统的线路信息后,主动调用该接口通知飞猪,飞猪会将该线路数据进行一次同步。
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param_top_item_change_notify_r_q | TopItemChangeNotifyRQ | 必须 | 请求参数 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result_code | String | SYSTEM_ERROR | 错误码 |
result_msg | String | 系统错误 | 错误描述 |
is_success | Boolean | false | 是否成功 |
1 2 3 4 5 6 7 8 9 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); BusItemNotifyRequest req = new BusItemNotifyRequest(); BusItemNotifyRequest.TopItemChangeNotifyRQ obj1 = new BusItemNotifyRequest.TopItemChangeNotifyRQ(); obj1.setFromCity( "北京" ); obj1.setToCity( "石家庄" ); obj1.setFromDate( "2023-01-01" ); req.setParamTopItemChangeNotifyRQ(obj1); BusItemNotifyResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 | < bus_item_notify_response > < result_code >SYSTEM_ERROR</ result_code > < result_msg >系统错误</ result_msg > < is_success >false</ is_success > </ bus_item_notify_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|