文档中心 > API类目 > 阿里体育场馆服务API

alibaba.alisports.access.platform.stadiums.refund.create (阿里体育场馆合作方发起退款)

用于合作方发起退款

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
req RefundCreateReqDto 可选 入参
  • └ extra
  • String
  • 可选
  • {"a":"1"}
  • 扩展数据JSON字符串
  • └ refund_amount
  • String
  • 可选
  • 10.00
  • 退款金额,单位元,保留两位小数
  • └ refund_reason
  • String
  • 可选
  • 用户要求退款
  • 退款原因
  • └ third_trade_no
  • String
  • 可选
  • 34567
  • 合作方订单号
  • └ trade_no
  • String
  • 可选
  • 1203264
  • 阿里订单号
  • └ validate_codes
  • String
  • 可选
  • sdfafd
  • 申请退款的验证码,多个验证码以逗号分割
  • └ serial_no
  • String
  • 可选
  • 12134544545
  • 退款流水号
  • └ is_refund_good
  • Number
  • 可选
  • 1
  • 是否退货 0 不退 1 退货

响应参数

名称 类型 示例值 描述
model Boolean true 请求是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlisportsAccessPlatformStadiumsRefundCreateRequest req = new AlibabaAlisportsAccessPlatformStadiumsRefundCreateRequest();
AlibabaAlisportsAccessPlatformStadiumsRefundCreateRequest.RefundCreateReqDto obj1 = new AlibabaAlisportsAccessPlatformStadiumsRefundCreateRequest.RefundCreateReqDto();
obj1.setExtra("{\"a\":\"1\"}");
obj1.setRefundAmount("10.00");
obj1.setRefundReason("用户要求退款");
obj1.setThirdTradeNo("34567");
obj1.setTradeNo("1203264");
obj1.setValidateCodes("sdfafd");
obj1.setSerialNo("12134544545");
obj1.setIsRefundGood(1L);
req.setReq(obj1);
AlibabaAlisportsAccessPlatformStadiumsRefundCreateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alisports_access_platform_stadiums_refund_create_response>
    <model>true</model>
</alibaba_alisports_access_platform_stadiums_refund_create_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部