拉取品牌方的营销数据
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
storeNo | String | 必须 | MJ01 | 在银泰的门店号 | |
memberBarcde | String | 可选 | 18612642933 | 品牌方会员码 | |
shoppeNo | String | 必须 | 00092 | 在银泰的专柜编号 | |
serialNo | String | 必须 | MJ0173774040001 | 本次算价的唯一编号 | |
singleProductList | String | 必须 | [{"tagPrice":"3000","unionKey":"1","barcode":"YOGA001","salePrice":2888,"count":2,"skuid":"6155701"}] | 在银泰的门店号 | |
selectList | String | 必须 | [{"promotionUnionKey":"12345678","promotionType":"coupon","value":"0"}] | 已选中的所有营销信息 | |
extendParam | String | 可选 | {"xx","xx"} | 扩展参数 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
errcode | String | 200 | 业务异常码 |
isSuccess | Boolean | true | 是否成功 |
model | Model | 营销明细 | |
|
|||
message | String | 查询成功 | 业务异常消息 |
1 2 3 4 5 6 7 8 9 10 11 | QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret); AlibabaMosBroadingbrandGetRequest req = new AlibabaMosBroadingbrandGetRequest(); req.setStoreNo( "MJ01" ); req.setMemberBarcde( "18612642933" ); req.setShoppeNo( "00092" ); req.setSerialNo( "MJ0173774040001" ); req.setSingleProductList( "[{\"tagPrice\":\"3000\",\"unionKey\":\"1\",\"barcode\":\"YOGA001\",\"salePrice\":2888,\"count\":2,\"skuid\":\"6155701\"}]" ); req.setSelectList( "[{\"promotionUnionKey\":\"12345678\",\"promotionType\":\"coupon\",\"value\":\"0\"}]" ); req.setExtendParam( "{\"xx\",\"xx\"}" ); AlibabaMosBroadingbrandGetResponse rsp = client.execute(req, sessionKey); 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 | < errcode >200</ errcode > < isSuccess >true</ isSuccess > < model > < memberInfo > < nickName >Ethan</ nickName > < levelName >西有灵犀卡会员</ levelName > < memberId >5</ memberId > </ memberInfo > < notifyMsg >当前订单可办灵犀卡</ notifyMsg > < promotionGroupList > < isShowSummryInfo >false</ isShowSummryInfo > < name >会员权益</ name > < promotionList > < promotion_list > < totalAmount >0</ totalAmount > < promotionType > < checkedType >UNCHECKED</ checkedType > </ promotionType > < unionKey >R84ddfb34126fc3a48ee38d7044e87276</ unionKey > < name >灵犀卡[365]</ name > < isAllowEdit >false</ isAllowEdit > </ promotion_list > </ promotionList > < totalPromotion >0</ totalPromotion > </ promotionGroupList > < serialNo >MJ0173774040001</ serialNo > < totalPromotion >500</ totalPromotion > </ model > < message >查询成功</ message > |
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 > |
错误码 | 错误描述 | 解决方案 |
---|