场景说明: 有赞商城的订单是支持到点自提的,有赞微商城线上下单,线下门店自提核销,如何做到线上线下的数据同步?
——到店自提的订单在哪里查看?和普通订单有什么区别?微商城后台-订单-所有订单,在筛选条件中选择“上门自提”即可查看到所有到点自提的订单; ——买家在线下门店自提订单后,如何在微商城后台进行发货操作? ——买家到线下门店领取商品,商家可以通过哪个接口核销到店自提订单? (1)核销到店自提订单:youzan.trade.selffetchcode.apply (3)接口说明:该接口调用成功后,订单状态将由“等待商家发货”变为“商家已发货”; (4)重要字段说明: 》》code:消费者端的到店自提订单提货码;调用接口时,一般是线下使用扫码枪扫描核销码,识别核销码后调用核销接口; 》》extra_info:核销人(开发者根据自己业务规则传,一般为网点号或手机号) (5)调用格式,通过(2)中链接访问后: (6)HTTP调用示例: (7)JAVA调用示例: YZClient client = new DefaultYZClient(newToken("token")); //new Sign(appKey, appSecret) YouzanTradeSelffetchcodeApplyParamsyouzanTradeSelffetchcodeApplyParams = newYouzanTradeSelffetchcodeApplyParams();
youzanTradeSelffetchcodeApplyParams.setCode("49343068033"); youzanTradeSelffetchcodeApplyParams.setExtraInfo("11111");
YouzanTradeSelffetchcodeApply youzanTradeSelffetchcodeApply= new YouzanTradeSelffetchcodeApply(); youzanTradeSelffetchcodeApply.setAPIParams(youzanTradeSelffetchcodeApplyParams); YouzanTradeSelffetchcodeApplyResult result =client.invoke(youzanTradeSelffetchcodeApply);
——线下核销自提订单后,通过哪个接口可以将订单标记为买家已签收? (1)卖家标记签收:youzan.logistics.online.marksign (3)重要字段说明: (4)调用格式,通过(2)中链接访问后: (5)HTTP调用示例: (6)JAVA调用示例: YZClient client = new DefaultYZClient(newToken("token")); //new Sign(appKey, appSecret) YouzanLogisticsOnlineMarksignParamsyouzanLogisticsOnlineMarksignParams = newYouzanLogisticsOnlineMarksignParams();
youzanLogisticsOnlineMarksignParams.setTid("E20171010210030069700005");
YouzanLogisticsOnlineMarksign youzanLogisticsOnlineMarksign= new YouzanLogisticsOnlineMarksign(); youzanLogisticsOnlineMarksign.setAPIParams(youzanLogisticsOnlineMarksignParams); YouzanLogisticsOnlineMarksignResult result =client.invoke(youzanLogisticsOnlineMarksign);
总帖 > 【正向交易接口】五大场景接口对接说明
|