多语言原发接口。卖家可以通过这个接口发布一个多语言商品。一次只能发布一种多语言商品,例如:俄文。
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
product | MultilanguageAeopAeProduct | 可选 | 产品信息 | ||
|
|||||
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 custom_image 分国家主图 vat_tags 含税标 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | AeopPostProductResponse | 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 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AliexpressPostproductRedefiningPostmultilanguageaeproductRequest req = new AliexpressPostproductRedefiningPostmultilanguageaeproductRequest(); AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.MultilanguageAeopAeProduct obj1 = new AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.MultilanguageAeopAeProduct(); obj1.setBulkOrder(5L); obj1.setLotNum(10L); obj1.setSummary( "0" ); List<AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopAeProductSku> list3 = new ArrayList<AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopAeProductSku>(); AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopAeProductSku obj4 = new AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopAeProductSku(); list3.add(obj4); obj4.setSkuStock( false ); obj4.setSkuPrice( "11.11" ); obj4.setSkuCode( "cfas00978" ); obj4.setIpmSkuStock(1234L); obj4.setId( "\"200000182:193;200007763:201336100\"" ); obj4.setCurrencyCode( "USD" ); List<AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopSkuProperty> list7 = new ArrayList<AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopSkuProperty>(); AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopSkuProperty obj8 = new AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopSkuProperty(); list7.add(obj8); obj8.setSkuPropertyId(14L); obj8.setPropertyValueDefinitionName( "pink" ); obj8.setPropertyValueId(366L); list5.setAeopSKUProperty(list7); obj4.setSkuDiscountPrice( "10.01" ); List<AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopSkuNationalDiscountPrice> list11 = new ArrayList<AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopSkuNationalDiscountPrice>(); AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopSkuNationalDiscountPrice obj12 = new AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopSkuNationalDiscountPrice(); list11.add(obj12); obj12.setDiscountPrice( "9.05" ); obj12.setShiptoCountry( "RU" ); list9.setAeopSKUNationalDiscountPrice(list11); obj4.setBarcode( "0" ); obj1.setAeopAeProductSKUs(list3); obj1.setDetail( "<ul> </ul>" ); obj1.setUseAutoTrans( true ); obj1.setPackageType( false ); obj1.setAddUnit(2L); obj1.setSubject( "knew odd of test" ); obj1.setProductMoreKeywords1( "0" ); obj1.setReduceStrategy( "place_order_withhold或payment_success_deduct" ); obj1.setProductMoreKeywords2( "0" ); obj1.setMultilanguageDetail( "Многоязычный подробное описание" ); obj1.setProductUnit(100000000L); obj1.setWsOfflineDate(StringUtils.parseDateTime( "2017-06-28 20:22:01" )); obj1.setBaseUnit(1L); obj1.setSizechartId(100L); obj1.setPackageLength(20L); obj1.setWsDisplay( "expire_offline" ); obj1.setMobileDetail( "0" ); obj1.setPackageHeight(40L); obj1.setIsImageDynamic( false ); obj1.setSrc( "isv" ); obj1.setCouponStartDate(StringUtils.parseDateTime( "2017-06-28 20:22:01" )); obj1.setPackageWidth(30L); obj1.setLocaleName( "ru_RU" ); obj1.setIsPackSell( false ); obj1.setCurrencyCode( "USD;RUB" ); obj1.setOwnerMemberSeq(1006680305L); obj1.setCategoryId(200002101L); obj1.setKeyword( "0" ); obj1.setCouponEndDate(StringUtils.parseDateTime( "2017-06-28 20:22:01" )); AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopAeMultimedia obj13 = new AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopAeMultimedia(); List<AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopAeVideo> list15 = new ArrayList<AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopAeVideo>(); AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopAeVideo obj16 = new AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.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<AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopAeProductProperty> list18 = new ArrayList<AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopAeProductProperty>(); AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopAeProductProperty obj19 = new AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopAeProductProperty(); list18.add(obj19); obj19.setAttrValueUnit( "0" ); obj19.setAttrValueStart( "0" ); obj19.setAttrValueEnd( "0" ); obj19.setAttrValue( "2 - 5 kg" ); obj19.setAttrName( "0" ); obj19.setAttrNameId(0L); obj19.setAttrValueId(0L); obj1.setAeopAeProductPropertys(list18); obj1.setAddWeight( "3.03" ); obj1.setGrossWeight( "10.020" ); obj1.setProductId(1234L); obj1.setGroupId(124L); obj1.setWsValidNum(30L); obj1.setDeliveryTime(7L); obj1.setBulkDiscount(90L); obj1.setMultilanguageSubject( "Название нескольких языков" ); obj1.setPromiseTemplateId(100L); obj1.setProductPrice( "11.00" ); AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopNationalQuoteConfiguration obj20 = new AliexpressPostproductRedefiningPostmultilanguageaeproductRequest.AeopNationalQuoteConfiguration(); obj20.setConfigurationData( "[{\"shiptoCountry\":\"US\",\"percentage\":\"5\"},{\"shiptoCountry\":\"RU\",\"percentage\":\"-2\"}]" ); obj20.setConfigurationType( "percentage" ); obj1.setAeopNationalQuoteConfiguration(obj20); obj1.setFreightTemplateId(1L); req.setProduct(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 }] }" ); AliexpressPostproductRedefiningPostmultilanguageaeproductResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 | < aliexpress_postproduct_redefining_postmultilanguageaeproduct_response > < result > < is_success >true</ is_success > < product_id >59345</ product_id > < error_message >系统异常!</ error_message > < error_code >16009999</ error_code > </ result > </ aliexpress_postproduct_redefining_postmultilanguageaeproduct_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 > |
错误码 | 错误描述 | 解决方案 |
---|