-
-
名称 |
类型 |
必须 |
描述 |
$app |
String |
否 |
应用的app_key |
$method |
String |
是 |
API接口名称 |
$sign |
String |
是 |
签名 |
$token |
String |
是 |
采用OAuth授权方式为必填参数 |
$v |
String |
是 |
API协议版本,可选值:1.0.0 |
-
名称 |
类型 |
必须 |
示例值 |
描述 |
refundId |
long |
是
|
7500023048 |
退款编号 |
remark |
String |
否
|
退货 |
退货留言 |
returnContact |
String |
否
|
|
联系人 |
provinceId |
String |
否
|
|
'省份ID' |
provinceName |
String |
否
|
|
省名称 |
cityId |
String |
否
|
|
'地市ID |
cityName |
String |
否
|
|
地市名称 |
areId |
String |
否
|
|
区县ID |
areName |
String |
否
|
|
区县名称 |
returnAddress |
String |
否
|
|
详细地址 |
returnMobile |
String |
否
|
|
手机号码 |
returnTelephone |
String |
否
|
|
退换货电话 |
returnPostCode |
String |
否
|
|
退货邮编 |
-
Java
GmosClient client = new DefaultGmosClient(url, appKey, secret, token);
GomeRefundOrderApproveRequest request = new GomeRefundOrderApproveRequest();
//详细参数信息请参考API详情页面。
request.setRefundId(7500023048);
request.setRemark("退货");
request.setReturnContact("");
request.setProvinceId("");
request.setProvinceName("");
request.setCityId("");
request.setCityName("");
request.setAreId("");
request.setAreName("");
request.setReturnAddress("");
request.setReturnMobile("");
request.setReturnTelephone("");
request.setReturnPostCode("");
GomeRefundOrderApproveResponse 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 GomeRefundOrderApproveRequest;
//详细参数信息请参考API详情页面。
$request -> setRefundId(7500023048);
$request -> setRemark("退货");
$request -> setReturnContact("");
$request -> setProvinceId("");
$request -> setProvinceName("");
$request -> setCityId("");
$request -> setCityName("");
$request -> setAreId("");
$request -> setAreName("");
$request -> setReturnAddress("");
$request -> setReturnMobile("");
$request -> setReturnTelephone("");
$request -> setReturnPostCode("");
$response = $client -> execute($request);
Net
IGmosClient client = new DefaultGmosClient(url, appKey, secret, token);
GomeRefundOrderApproveRequest request = new GomeRefundOrderApproveRequest();
request.RefundId=7500023048;
request.Remark="退货";
request.ReturnContact="";
request.ProvinceId="";
request.ProvinceName="";
request.CityId="";
request.CityName="";
request.AreId="";
request.AreName="";
request.ReturnAddress="";
request.ReturnMobile="";
request.ReturnTelephone="";
request.ReturnPostCode="";
GomeRefundOrderApproveResponse 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 |
令牌已过期 |
-