商品编辑接口(修改任何一个商品信息时,必须将其他所有信息进行填写全面后再提交,否则会出现报错或数据丢失问题)
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
aeop_a_e_product | AeopAeProduct | 可选 | 产品信息 | ||
|
|||||
ext_param | String | 可选 | { "custom_image": { "image": { "RU": "http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg", "BR": "http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg", "ES": "" }, "process_customized_image": true }, "vat_tags": [{ "sku_id": "200007763:201336100", "is_sku_vat_tag": true }] } | 扩展参数 json格式 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | AeopModifyProductResponse | 0 | result |
|
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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AliexpressPostproductRedefiningEditaeproductRequest req = new AliexpressPostproductRedefiningEditaeproductRequest(); AliexpressPostproductRedefiningEditaeproductRequest.AeopAeProduct obj1 = new AliexpressPostproductRedefiningEditaeproductRequest.AeopAeProduct(); obj1.setBulkOrder(5L); obj1.setLotNum(1L); obj1.setSummary( "0" ); List<AliexpressPostproductRedefiningEditaeproductRequest.AeopAeProductSku> list3 = new ArrayList<AliexpressPostproductRedefiningEditaeproductRequest.AeopAeProductSku>(); AliexpressPostproductRedefiningEditaeproductRequest.AeopAeProductSku obj4 = new AliexpressPostproductRedefiningEditaeproductRequest.AeopAeProductSku(); list3.add(obj4); obj4.setSkuStock( false ); obj4.setSkuPrice( "200.07" ); obj4.setSkuCode( "cfas00978" ); obj4.setIpmSkuStock(1111L); obj4.setId( "\"200000182:193;200007763:201336100\"" ); obj4.setCurrencyCode( "USD;RUB" ); List<AliexpressPostproductRedefiningEditaeproductRequest.AeopSkuProperty> list7 = new ArrayList<AliexpressPostproductRedefiningEditaeproductRequest.AeopSkuProperty>(); AliexpressPostproductRedefiningEditaeproductRequest.AeopSkuProperty obj8 = new AliexpressPostproductRedefiningEditaeproductRequest.AeopSkuProperty(); list7.add(obj8); obj8.setSkuPropertyId(14L); obj8.setPropertyValueDefinitionName( "pink" ); obj8.setPropertyValueId(366L); list5.setAeopSKUProperty(list7); List<AliexpressPostproductRedefiningEditaeproductRequest.AeopSkuNationalDiscountPrice> list11 = new ArrayList<AliexpressPostproductRedefiningEditaeproductRequest.AeopSkuNationalDiscountPrice>(); AliexpressPostproductRedefiningEditaeproductRequest.AeopSkuNationalDiscountPrice obj12 = new AliexpressPostproductRedefiningEditaeproductRequest.AeopSkuNationalDiscountPrice(); list11.add(obj12); obj12.setDiscountPrice( "10.01" ); obj12.setShiptoCountry( "RU" ); list9.setAeopSKUNationalDiscountPrice(list11); obj4.setSkuDiscountPrice( "12.05" ); obj4.setEanCode( "12345678" ); obj1.setAeopAeProductSKUs(list3); obj1.setDetail( "detail html block" ); obj1.setPackageType( false ); obj1.setAddUnit(2L); obj1.setSubject( "knew odd" ); obj1.setProductMoreKeywords1( "0" ); obj1.setReduceStrategy( "place_order_withhold" ); obj1.setProductMoreKeywords2( "0" ); obj1.setProductUnit(100000000L); obj1.setWsOfflineDate(StringUtils.parseDateTime( "2017-06-28 20:22:01" )); obj1.setBaseUnit(1L); obj1.setSizechartId(123L); obj1.setPackageLength(20L); obj1.setWsDisplay( "expire_offline" ); obj1.setMobileDetail( "mobile Detail html block" ); obj1.setPackageHeight(40L); obj1.setIsImageDynamic( false ); obj1.setSrc( "isv" ); obj1.setCouponStartDate(StringUtils.parseDateTime( "2017-06-28 20:22:01" )); obj1.setPackageWidth(30L); obj1.setIsPackSell( false ); obj1.setCurrencyCode( "USD" ); obj1.setOwnerMemberSeq(1006680305L); obj1.setCategoryId(200002101L); obj1.setKeyword( "0" ); obj1.setCouponEndDate(StringUtils.parseDateTime( "2017-06-28 20:22:01" )); AliexpressPostproductRedefiningEditaeproductRequest.AeopAeMultimedia obj13 = new AliexpressPostproductRedefiningEditaeproductRequest.AeopAeMultimedia(); List<AliexpressPostproductRedefiningEditaeproductRequest.AeopAeVideo> list15 = new ArrayList<AliexpressPostproductRedefiningEditaeproductRequest.AeopAeVideo>(); AliexpressPostproductRedefiningEditaeproductRequest.AeopAeVideo obj16 = new AliexpressPostproductRedefiningEditaeproductRequest.AeopAeVideo(); list15.add(obj16); obj16.setMediaType( "video" ); obj16.setMediaStatus( "approved" ); obj16.setMediaId(12345678L); obj16.setAliMemberId(1006680305L); obj13.setAeopAEVideos(list15); obj1.setAeopAEMultimedia(obj13); obj1.setOwnerMemberId( "aliqatest01" ); obj1.setProductStatusType( "onSelling" ); List<AliexpressPostproductRedefiningEditaeproductRequest.AeopAeProductProperty> list18 = new ArrayList<AliexpressPostproductRedefiningEditaeproductRequest.AeopAeProductProperty>(); AliexpressPostproductRedefiningEditaeproductRequest.AeopAeProductProperty obj19 = new AliexpressPostproductRedefiningEditaeproductRequest.AeopAeProductProperty(); list18.add(obj19); obj19.setAttrValueUnit( "0" ); obj19.setAttrValueStart( "0" ); obj19.setAttrValueEnd( "0" ); obj19.setAttrValue( "2 - 5 kg" ); obj19.setAttrNameId(200000043L); obj19.setAttrName( "size" ); obj19.setAttrValueId(493L); obj1.setAeopAeProductPropertys(list18); obj1.setAddWeight( "30.11" ); obj1.setGrossWeight( "50" ); obj1.setProductId(1239273L); obj1.setGroupId(123L); obj1.setDeliveryTime(3L); obj1.setWsValidNum(30L); obj1.setBulkDiscount(90L); obj1.setPromiseTemplateId(100L); obj1.setProductPrice( "10.11" ); AliexpressPostproductRedefiningEditaeproductRequest.AeopNationalQuoteConfiguration obj20 = new AliexpressPostproductRedefiningEditaeproductRequest.AeopNationalQuoteConfiguration(); obj20.setConfigurationData( "[{\"shiptoCountry\":\"US\",\"percentage\":\"5\"},{\"shiptoCountry\":\"RU\",\"percentage\":\"-2\"}]" ); obj20.setConfigurationType( "percentage" ); obj1.setAeopNationalQuoteConfiguration(obj20); obj1.setFreightTemplateId(1L); List<AliexpressPostproductRedefiningEditaeproductRequest.AeopAeModeSizeChartDto> list22 = new ArrayList<AliexpressPostproductRedefiningEditaeproductRequest.AeopAeModeSizeChartDto>(); AliexpressPostproductRedefiningEditaeproductRequest.AeopAeModeSizeChartDto obj23 = new AliexpressPostproductRedefiningEditaeproductRequest.AeopAeModeSizeChartDto(); list22.add(obj23); obj23.setHips( "2.1" ); obj23.setWaist( "2" ); obj23.setBust( "2" ); obj23.setHeight( "2" ); obj23.setModeSize( "2" ); obj1.setModeSizeChartList(list22); req.setAeopAEProduct(obj1); req.setExtParam( "{ \"custom_image\": { \"image\": { \"RU\": \"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\", \"BR\": \"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\", \"ES\": \"\" }, \"process_customized_image\": true }, \"vat_tags\": [{ \"sku_id\": \"200007763:201336100\", \"is_sku_vat_tag\": true }] }" ); AliexpressPostproductRedefiningEditaeproductResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 | < aliexpress_postproduct_redefining_editaeproduct_response > < result > < error_details > < json >0</ json > </ error_details > < modify_count >1</ modify_count > < is_success >true</ is_success > < product_id >124</ product_id > < error_code >16009999</ error_code > < error_message >系统异常!</ error_message > </ result > </ aliexpress_postproduct_redefining_editaeproduct_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 > |
错误码 | 错误描述 | 解决方案 |
---|