当订单被处理时,用于通知奇门系统。
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
status | String | 必须 | QIMEN_ERP_TRANSFER | 事件状态,如QIMEN_ERP_TRANSFER,QIMEN_ERP_CHECK | |
ext | String | 可选 | {"rdsName","123wdx1"} | JSON格式扩展字段 | |
tid | String | 必须 | 12231221231232 | 淘宝订单号 | |
platform | String | 可选 | JD | 商家平台编码.MAIN:官方渠道,JD:京东,DD:当当,PP:拍拍,YX:易讯,EBAY:ebay,AMAZON:亚马逊,SN:苏宁,GM:国美,WPH:唯品会,JM:聚美,MGJ:蘑菇街,YT:银泰,YHD:1号店,1688:1688,POS:POS门店,OTHER:其他 | |
create | Number | 可选 | 20170808 | 订单创建时间,数字 | |
nick | String | 可选 | seller_001 | 外部商家名称。必须同时填写platform | |
erp_order_id | String | 可选 | erp_order_id | 主单号对应的erp单号,转单、审单、通知配货、出库 需要填。拆单、合单场景下不用填 | |
taobao_sub_order_ids | String | 可选 | taobao_sub_order_ids | 淘宝子订单id(拆单、合单场景下不用填,其他场景需要回传,用英文逗号隔开) | |
event_time | String | 可选 | yyyy-mm-dd HH:mm:ss | 触发事件的时间 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
is_success | Boolean | true | 是否成功 |
1 2 3 4 5 6 7 8 9 10 11 12 13 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); QimenEventProduceRequest req = new QimenEventProduceRequest(); req.setStatus( "QIMEN_ERP_TRANSFER" ); req.setExt( "{\"rdsName\",\"123wdx1\"}" ); req.setTid( "12231221231232" ); req.setPlatform( "JD" ); req.setCreate(20170808L); req.setNick( "seller_001" ); req.setErpOrderId( "erp_order_id" ); req.setTaobaoSubOrderIds( "taobao_sub_order_ids" ); req.setEventTime( "yyyy-mm-dd HH:mm:ss" ); QimenEventProduceResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 | < qimen_event_produce_response > < is_success >true</ is_success > </ qimen_event_produce_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 > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
isv.invalid-message-field: unmatch-topic-meta-info | 消息content中的字段与系统定义的字段不一致 | 参考消息的定义修改参数 |
isv.topic-limitation: pub | 应用没有发送消息的权限 | 在页面中订阅相应的消息 |
isv.ivalid-message-content: error-json-format | 消息体content的json格式错误 | 修改content为正确的json串 |
isv.invalid-param: topic-empty | topic不能为空 | 输入正确的topic |
isv.invalid-param: status has already backflow | 状态已经回流 | 回流状态之前,先判断是否已经回流过 |