-
-
名称 |
类型 |
必须 |
描述 |
$app |
String |
否 |
应用的app_key |
$method |
String |
是 |
API接口名称 |
$sign |
String |
是 |
签名 |
$token |
String |
是 |
采用OAuth授权方式为必填参数 |
$v |
String |
是 |
API协议版本,可选值:1.0.0 |
-
名称 |
类型 |
必须 |
示例值 |
描述 |
warehouseId |
String |
否
|
|
仓库ID |
warehouseName |
String |
是
|
|
仓库名字 |
provinceId |
String |
是
|
|
省ID |
cityId |
String |
是
|
|
市ID |
districtId |
String |
是
|
|
街道ID |
address |
String |
是
|
|
地址 |
contact |
String |
是
|
|
联系人 |
contactNumber |
String |
是
|
|
联系人手机号 |
postcode |
String |
是
|
|
邮编 |
telephone |
String |
是
|
|
联系电话 |
priority |
int |
是
|
|
设置仓库优先级,仅能填写正整数。数字1优先级最大。下单时如当满足覆盖区域和购买 数量的发货仓多余一个,则优先选取优先级高的发货仓。符合条件的发货仓多余一个且优先级数字相等时,将在同优先级发货仓中随机选取。 |
cancelRestore |
String |
是
|
|
是否取消可卖数 1:是 0:否 系统默认是,表示未付款订单取消后会释放可卖数.如果选择否,表示未付款订单取消后不释放可卖数,避免商品超卖。确认提交后立即生效! |
receiveWarehouseId |
String |
是
|
|
退换货仓库,0是退货到本仓库 |
returnContact |
String |
否
|
|
退换货联系人 |
returnPhone |
String |
否
|
|
退换货电话 |
returnPostCode |
String |
否
|
|
退换货邮编 |
returnAddress |
String |
否
|
|
退换货地址 |
regionIdList |
String |
是
|
|
仓库配送可达区域,区域ID按照逗号分隔 |
-
Java
GmosClient client = new DefaultGmosClient(url, appKey, secret, token);
GomeStockWarehouseUpdateRequest request = new GomeStockWarehouseUpdateRequest();
//详细参数信息请参考API详情页面。
request.setWarehouseId("");
request.setWarehouseName("");
request.setProvinceId("");
request.setCityId("");
request.setDistrictId("");
request.setAddress("");
request.setContact("");
request.setContactNumber("");
request.setPostcode("");
request.setTelephone("");
request.setPriority();
request.setCancelRestore("");
request.setReceiveWarehouseId("");
request.setReturnContact("");
request.setReturnPhone("");
request.setReturnPostCode("");
request.setReturnAddress("");
request.setRegionIdList("");
GomeStockWarehouseUpdateResponse 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 GomeStockWarehouseUpdateRequest;
//详细参数信息请参考API详情页面。
$request -> setWarehouseId("");
$request -> setWarehouseName("");
$request -> setProvinceId("");
$request -> setCityId("");
$request -> setDistrictId("");
$request -> setAddress("");
$request -> setContact("");
$request -> setContactNumber("");
$request -> setPostcode("");
$request -> setTelephone("");
$request -> setPriority();
$request -> setCancelRestore("");
$request -> setReceiveWarehouseId("");
$request -> setReturnContact("");
$request -> setReturnPhone("");
$request -> setReturnPostCode("");
$request -> setReturnAddress("");
$request -> setRegionIdList("");
$response = $client -> execute($request);
Net
IGmosClient client = new DefaultGmosClient(url, appKey, secret, token);
GomeStockWarehouseUpdateRequest request = new GomeStockWarehouseUpdateRequest();
request.WarehouseId="";
request.WarehouseName="";
request.ProvinceId="";
request.CityId="";
request.DistrictId="";
request.Address="";
request.Contact="";
request.ContactNumber="";
request.Postcode="";
request.Telephone="";
request.Priority=;
request.CancelRestore="";
request.ReceiveWarehouseId="";
request.ReturnContact="";
request.ReturnPhone="";
request.ReturnPostCode="";
request.ReturnAddress="";
request.RegionIdList="";
GomeStockWarehouseUpdateResponse response = client.Execute(request);
-
注:名称栏的缩进表示类型的关联,单击可以隐藏当前类型包含的字段
-
JSON
-
-
错误码 |
错误消息 |
10001 |
系统错误 |
10002 |
方法调用次数超限 |
10003 |
当前版本的方法不存在,请检查 |
10004 |
缺少版本参数,请指定服务方法的版本号 |
10005 |
该应用在当前IP下禁止访问 |
8224 |
缺少签名参数,请添加签名请求参数 |
8999 |
存在重复的请求,请在90秒之后再请求第二次 |
8225 |
签名无效,请按正确的算法对请求数据进行签名 |
9000 |
字段%s不能为空 |
8249 |
超过上传限制 |
8223 |
无效的appKey,请使用合法的appKey(由服务提供商授予你) |
8239 |
需要传递accessToken参数 |
8222 |
缺少appKey,请向服务端获取合法的appKey |
20001 |
令牌已过期 |
-