查询买赠活动下的商品
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param | ActivitySkuQuery | 必须 | 查询入参 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | MarketPageResult | 查询返回结果 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaHmMarketingItembuygiftQueryitemsRequest req = new AlibabaHmMarketingItembuygiftQueryitemsRequest(); AlibabaHmMarketingItembuygiftQueryitemsRequest.ActivitySkuQuery obj1 = new AlibabaHmMarketingItembuygiftQueryitemsRequest.ActivitySkuQuery(); obj1.setActivityId(123456L); AlibabaHmMarketingItembuygiftQueryitemsRequest.BasePageQuery obj2 = new AlibabaHmMarketingItembuygiftQueryitemsRequest.BasePageQuery(); obj2.setPageSize(20L); obj2.setCurrent(1L); obj1.setPage(obj2); obj1.setOutActId( "sanjiang170907" ); obj1.setSkuCodes( "12513, 12514" ); req.setParam(obj1); AlibabaHmMarketingItembuygiftQueryitemsResponse 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 | < alibaba_hm_marketing_itembuygift_queryitems_response > < result > < message >请求参数非法</ message > < total >100</ total > < page_size >20</ page_size > < error_code >REQUEST_PARAM_ERROR</ error_code > < sku_list > < data > < limit_info > < total_limit_cnt >100</ total_limit_cnt > < user_limit_cnt >10</ user_limit_cnt > < user_daily_limit_cnt >2</ user_daily_limit_cnt > </ limit_info > < gift_sku_name >赠品的名称</ gift_sku_name > < gift_sku_code >12345</ gift_sku_code > < buy_num >4</ buy_num > < item_shop_relation >{2300929749296:1000847028}</ item_shop_relation > < sku_name >主商品名称</ sku_name > < sku_code >12513</ sku_code > </ data > </ sku_list > < current >1</ current > < total_page >10</ total_page > < success >true</ success > </ result > </ alibaba_hm_marketing_itembuygift_queryitems_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 > |
错误码 | 错误描述 | 解决方案 |
---|