基础信息同步,POS机从ERP获取顾客基础数据
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
request | Request | 可选 | |||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
response | Response | ||
|
1 2 3 4 5 6 7 8 9 10 11 | QimenClient client = new DefaultQimenClient(url, appkey, secret); PosCustomerGetRequest req = new PosCustomerGetRequest(); req.setCustomerId( "stub-cust-code" ); req.setVersion( "2.0" ); req.setPage(1L); req.setPageSize(12L); req.setCustomerCode( "GUK123" ); req.setStartTime( "2017-02-12 00:00:00" ); req.setEndTime( "2017-02-12 00:00:00" ); PosCustomerGetResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | < response > < flag >success</ flag > < code >0</ code > < message >invalid appkey</ message > < total >12</ total > < customers > < customer > < customerInfo > < customerCode >GU123</ customerCode > < customerName >老王</ customerName > < storeCode >M123</ storeCode > < storeName >常二路门店</ storeName > < orgCode >M123</ orgCode > < regTime >2017-02-12 00:00:00</ regTime > < regSource >MD</ regSource > < isVIP >Y</ isVIP > < contactInfo > < name >老王</ name > < gender >M</ gender > < birthDate >2017-02-10</ birthDate > < career >码农</ career > < zipCode >043300</ zipCode > < tel >056789</ tel > < mobile >123456</ mobile > < fax >0567</ fax > < email >0867667</ email > < province >浙江</ province > < city >杭州</ city > < area >余杭</ area > < town >西溪</ town > < detailAddress >文一路</ detailAddress > </ contactInfo > </ customerInfo > < VIPInfo > < VIPCode >VIP123</ VIPCode > < firstPurchaseTime >2017-02-12 00:00:00</ firstPurchaseTime > < lastPurchaseTime >2017-02-12 00:00:00</ lastPurchaseTime > < amount >12</ amount > < lastYearConsumption >12</ lastYearConsumption > < orderNum >12</ orderNum > < goodsNum >13</ goodsNum > < avgOrderPrice >12</ avgOrderPrice > < avgGoodsPrice >12</ avgGoodsPrice > < point >12</ point > < pointBalance >12</ pointBalance > < balance >12</ balance > < VIPCardInfo > < VIPCardNo >VIP123</ VIPCardNo > < status >0</ status > </ VIPCardInfo > < storeCode >M123</ storeCode > < orgCode >X123</ orgCode > < operator >Y123</ operator > < serialCode >VIP23</ serialCode > < serialName >VIPN123</ serialName > < groupCode >VIP123</ groupCode > < groupName >S123</ groupName > < expireDate >2017-02-10 00:00:00</ expireDate > < discount >1</ discount > < isValid >Y</ isValid > </ VIPInfo > < createTime >2017-02-10 00:00:00</ createTime > < latestUpdateTime >2017-02-10 00:00:00</ latestUpdateTime > </ customer > </ customers > </ 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 > |
错误码 | 错误描述 | 解决方案 |
---|