天猫国际营销域对接-成本录入设置
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
costs | ItemSkuCostDTO | 必须 | 入参列表 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
reasons_for_part_succ_list | ItemCostSkuResultDTO | 错误详情 | |
|
|||
result_code | String | "00000" | 成功 |
result_msg | String | 错误原因 | 原因 |
1 2 3 4 5 6 7 8 9 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); TmallHkItemCostPriceUpdateRequest req = new TmallHkItemCostPriceUpdateRequest(); TmallHkItemCostPriceUpdateRequest.ItemSkuCostDTO obj1 = new TmallHkItemCostPriceUpdateRequest.ItemSkuCostDTO(); obj1.setItemid(123L); obj1.setSkuid(1L); obj1.setCost(100L); req.setCosts(obj1); TmallHkItemCostPriceUpdateResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 | < tmall_hk_item_cost_price_update_response > < reasons_for_part_succ_list > < json > < item_cost_sku_detail_d_t_o > < msg >更新失败</ msg > < sku_id >1</ sku_id > </ item_cost_sku_detail_d_t_o > </ json > </ reasons_for_part_succ_list > < result_code >"00000"</ result_code > < result_msg >错误原因</ result_msg > </ tmall_hk_item_cost_price_update_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 > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
isp.tmg-price-service-unavailable | 服务不可用 | 重试 |