Java
GmosClient client = new DefaultGmosClient(url, appKey, secret, token);
GomeGoodsCrossBorderProductAddRequest request = new GomeGoodsCrossBorderProductAddRequest();
//详细参数信息请参考API详情页面。
request.setCbGoodsNo("");
request.setCbBondedWarehouseId("CB0007");
request.setCbBondedWarehouseName("");
request.setCbHsTaxNo("");
request.setCbHsName("");
request.setCbFirstLegalNnit("");
request.setCbFirstLegalNum("");
request.setCbSecLegalNnit("");
request.setCbSecLegalNum("");
request.setCbOriginCountry("美国");
request.setCbOriginCountryCode("US");
request.setCbGoodsSource("");
request.setCbGoodsSourceCode("");
request.setCbBrandLocation("美国");
request.setCbBrandLocationCode("US");
request.setCbTaxpayer("");
request.setCbWeight("");
request.setCbGoodsUse("");
request.setCbSpecifications("");
request.setCbBrand("");
request.setGoods("情况一:如果templateId输入的是0,1,2,3,goods还是按照原来的要求来填写如:outId~P901,color~红色,goodsAnxl~1||2||3||4||5,sell_price~99,goods_version~3.5,goods_tax~0.13,stock~100,tmp_bar_code~131313,image~http://www.cdntaobao.com/1.jpg||http://www.cdntaobao.com/2.jpg,pros~cpjtSpec_property_3=大卡||cpjtSpec_property_2=2*2cm;outId~P902,color~蓝色,goodsAnxl~1||2||3||4||5,sell_price~876,goods_version~2.5,stock~200,tmp_bar_code~231511,image~http://www.cdntaobao.com/3.jpg||http://www.cdntaobao.com/4.jpg,pros~T31_58=8-40个||S8_85=30升及以上。 情况二:如果templateId输入的是4,即销售属性,需要按照下面规范来填写:outId~bht220,goodsProp~c80c62c4448d:H||8ac55c9d2cf8:蓝色,goodsAnxl~1||2||3||4||5,sell_price~100,goods_tax~0.13,stock~100,image~http://img3.gomeprelive.net.cn/image/bbcimg/production_image/nimg/201604/28/17/18/332369474a5918844b_800.jpg||http://img3.gomeprelive.net.cn/image/bbcimg/production_image/nimg/201604/28/17/18/332369474a5918844b_800.jpg||http://img3.gomeprelive.net.cn/image/bbcimg/production_image/nimg/201604/28/17/18/332369474a5918844b_800.jpg||http://img3.gomeprelive.net.cn/image/bbcimg/production_image/nimg/201604/28/17/18/332369474a5918844b_800.jpg||http://img3.gomeprelive.net.cn/image/bbcimg/production_image/nimg/201604/28/17/18/332369474a5918844b_800.jpg; 其中goodsProp为销售属性标识,c80c62c4448d:H分别为销售属性id和值,对于多个id和值的情况,用||分开,goodsAnxl代表安迅代储需要的长(cm)、高(cm)、宽(cm)、毛重(kg)、保质期天数,用||分开。invoiceType支持的发票类型,支持多种组合非必输 1:电子普票 2:纸质普票 3:增值税专用,默认1,2");
request.setCatalogId("cat18000340");
request.setShopCtgyId("292056;222085;130188");
request.setBrandId("19106");
request.setProductName("");
request.setDescription("这是一件商品");
request.setUnit("件");
request.setPackingList("");
request.setSaleService("");
request.setTemplateId("3");
request.setProps("S1111_11572=其他_,S1111_10238=其他_,T1092_10495=OL通勤_,T1092_10156=其他_,T1092_10664=其他_,T1092_11077=长裙_,T1092_11137=短袖_,T1092_10238=150_");
request.setGift("降 价 促 销");
request.setKeyWord("液晶电视,电视,创维液晶电视");
request.setPropTempletId("fuZhuangSpec");
request.setFreightTempletId("");
request.setMobileDescription("");
request.setProductAnxl("");
GomeGoodsCrossBorderProductAddResponse response = client.execute(request);
System.out.println(response.getBody());
PHP
require_once('GmosSdk.php');
$client = new GmosClient;
$client -> appkey = "";
$client -> secretKey = "";
$client -> session = "";
$client -> gatewayUrl = "";
$request = new GomeGoodsCrossBorderProductAddRequest;
//详细参数信息请参考API详情页面。
$request -> setCbGoodsNo("");
$request -> setCbBondedWarehouseId("CB0007");
$request -> setCbBondedWarehouseName("");
$request -> setCbHsTaxNo("");
$request -> setCbHsName("");
$request -> setCbFirstLegalNnit("");
$request -> setCbFirstLegalNum("");
$request -> setCbSecLegalNnit("");
$request -> setCbSecLegalNum("");
$request -> setCbOriginCountry("美国");
$request -> setCbOriginCountryCode("US");
$request -> setCbGoodsSource("");
$request -> setCbGoodsSourceCode("");
$request -> setCbBrandLocation("美国");
$request -> setCbBrandLocationCode("US");
$request -> setCbTaxpayer("");
$request -> setCbWeight("");
$request -> setCbGoodsUse("");
$request -> setCbSpecifications("");
$request -> setCbBrand("");
$request -> setGoods("情况一:如果templateId输入的是0,1,2,3,goods还是按照原来的要求来填写如:outId~P901,color~红色,goodsAnxl~1||2||3||4||5,sell_price~99,goods_version~3.5,goods_tax~0.13,stock~100,tmp_bar_code~131313,image~http://www.cdntaobao.com/1.jpg||http://www.cdntaobao.com/2.jpg,pros~cpjtSpec_property_3=大卡||cpjtSpec_property_2=2*2cm;outId~P902,color~蓝色,goodsAnxl~1||2||3||4||5,sell_price~876,goods_version~2.5,stock~200,tmp_bar_code~231511,image~http://www.cdntaobao.com/3.jpg||http://www.cdntaobao.com/4.jpg,pros~T31_58=8-40个||S8_85=30升及以上。 情况二:如果templateId输入的是4,即销售属性,需要按照下面规范来填写:outId~bht220,goodsProp~c80c62c4448d:H||8ac55c9d2cf8:蓝色,goodsAnxl~1||2||3||4||5,sell_price~100,goods_tax~0.13,stock~100,image~http://img3.gomeprelive.net.cn/image/bbcimg/production_image/nimg/201604/28/17/18/332369474a5918844b_800.jpg||http://img3.gomeprelive.net.cn/image/bbcimg/production_image/nimg/201604/28/17/18/332369474a5918844b_800.jpg||http://img3.gomeprelive.net.cn/image/bbcimg/production_image/nimg/201604/28/17/18/332369474a5918844b_800.jpg||http://img3.gomeprelive.net.cn/image/bbcimg/production_image/nimg/201604/28/17/18/332369474a5918844b_800.jpg||http://img3.gomeprelive.net.cn/image/bbcimg/production_image/nimg/201604/28/17/18/332369474a5918844b_800.jpg; 其中goodsProp为销售属性标识,c80c62c4448d:H分别为销售属性id和值,对于多个id和值的情况,用||分开,goodsAnxl代表安迅代储需要的长(cm)、高(cm)、宽(cm)、毛重(kg)、保质期天数,用||分开。invoiceType支持的发票类型,支持多种组合非必输 1:电子普票 2:纸质普票 3:增值税专用,默认1,2");
$request -> setCatalogId("cat18000340");
$request -> setShopCtgyId("292056;222085;130188");
$request -> setBrandId("19106");
$request -> setProductName("");
$request -> setDescription("这是一件商品");
$request -> setUnit("件");
$request -> setPackingList("");
$request -> setSaleService("");
$request -> setTemplateId("3");
$request -> setProps("S1111_11572=其他_,S1111_10238=其他_,T1092_10495=OL通勤_,T1092_10156=其他_,T1092_10664=其他_,T1092_11077=长裙_,T1092_11137=短袖_,T1092_10238=150_");
$request -> setGift("降 价 促 销");
$request -> setKeyWord("液晶电视,电视,创维液晶电视");
$request -> setPropTempletId("fuZhuangSpec");
$request -> setFreightTempletId("");
$request -> setMobileDescription("");
$request -> setProductAnxl("");
$response = $client -> execute($request);
Net
IGmosClient client = new DefaultGmosClient(url, appKey, secret, token);
GomeGoodsCrossBorderProductAddRequest request = new GomeGoodsCrossBorderProductAddRequest();
request.CbGoodsNo="";
request.CbBondedWarehouseId="CB0007";
request.CbBondedWarehouseName="";
request.CbHsTaxNo="";
request.CbHsName="";
request.CbFirstLegalNnit="";
request.CbFirstLegalNum="";
request.CbSecLegalNnit="";
request.CbSecLegalNum="";
request.CbOriginCountry="美国";
request.CbOriginCountryCode="US";
request.CbGoodsSource="";
request.CbGoodsSourceCode="";
request.CbBrandLocation="美国";
request.CbBrandLocationCode="US";
request.CbTaxpayer="";
request.CbWeight="";
request.CbGoodsUse="";
request.CbSpecifications="";
request.CbBrand="";
request.Goods="情况一:如果templateId输入的是0,1,2,3,goods还是按照原来的要求来填写如:outId~P901,color~红色,goodsAnxl~1||2||3||4||5,sell_price~99,goods_version~3.5,goods_tax~0.13,stock~100,tmp_bar_code~131313,image~http://www.cdntaobao.com/1.jpg||http://www.cdntaobao.com/2.jpg,pros~cpjtSpec_property_3=大卡||cpjtSpec_property_2=2*2cm;outId~P902,color~蓝色,goodsAnxl~1||2||3||4||5,sell_price~876,goods_version~2.5,stock~200,tmp_bar_code~231511,image~http://www.cdntaobao.com/3.jpg||http://www.cdntaobao.com/4.jpg,pros~T31_58=8-40个||S8_85=30升及以上。 情况二:如果templateId输入的是4,即销售属性,需要按照下面规范来填写:outId~bht220,goodsProp~c80c62c4448d:H||8ac55c9d2cf8:蓝色,goodsAnxl~1||2||3||4||5,sell_price~100,goods_tax~0.13,stock~100,image~http://img3.gomeprelive.net.cn/image/bbcimg/production_image/nimg/201604/28/17/18/332369474a5918844b_800.jpg||http://img3.gomeprelive.net.cn/image/bbcimg/production_image/nimg/201604/28/17/18/332369474a5918844b_800.jpg||http://img3.gomeprelive.net.cn/image/bbcimg/production_image/nimg/201604/28/17/18/332369474a5918844b_800.jpg||http://img3.gomeprelive.net.cn/image/bbcimg/production_image/nimg/201604/28/17/18/332369474a5918844b_800.jpg||http://img3.gomeprelive.net.cn/image/bbcimg/production_image/nimg/201604/28/17/18/332369474a5918844b_800.jpg; 其中goodsProp为销售属性标识,c80c62c4448d:H分别为销售属性id和值,对于多个id和值的情况,用||分开,goodsAnxl代表安迅代储需要的长(cm)、高(cm)、宽(cm)、毛重(kg)、保质期天数,用||分开。invoiceType支持的发票类型,支持多种组合非必输 1:电子普票 2:纸质普票 3:增值税专用,默认1,2";
request.CatalogId="cat18000340";
request.ShopCtgyId="292056;222085;130188";
request.BrandId="19106";
request.ProductName="";
request.Description="这是一件商品";
request.Unit="件";
request.PackingList="";
request.SaleService="";
request.TemplateId="3";
request.Props="S1111_11572=其他_,S1111_10238=其他_,T1092_10495=OL通勤_,T1092_10156=其他_,T1092_10664=其他_,T1092_11077=长裙_,T1092_11137=短袖_,T1092_10238=150_";
request.Gift="降 价 促 销";
request.KeyWord="液晶电视,电视,创维液晶电视";
request.PropTempletId="fuZhuangSpec";
request.FreightTempletId="";
request.MobileDescription="";
request.ProductAnxl="";
GomeGoodsCrossBorderProductAddResponse response = client.Execute(request);