文档中心 > API类目 > 云游戏API

alibaba.cloudgame.tradeplatform.applysubscriberefund (订购退款)

订购退款

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
subscribe_refund_apply_request SubscribeRefundApplyRequest 必须 请求入参
  • └ user_country
  • String
  • 必须
  • CHINA
  • 国家
  • └ refund_scene
  • String
  • 必须
  • 1
  • 退款场景
  • └ refund_order_id
  • String
  • 必须
  • 1
  • 退订单号
  • └ tenant_id
  • Number
  • 必须
  • 1
  • 租户ID
  • └ subscribe_id
  • String
  • 必须
  • 1
  • 订购ID
  • └ currency
  • String
  • 必须
  • CNY
  • 币种
  • └ apply_refund_time
  • Number
  • 必须
  • 1
  • 退款时间
  • └ refund_amount
  • Number
  • 必须
  • 1
  • 退款金额
  • └ order_id
  • String
  • 必须
  • 1
  • 订单号
  • └ refund_serial_id
  • String
  • 必须
  • 1
  • 退款流水号
  • └ idempotent_code
  • String
  • 必须
  • 1
  • 退款幂等号

响应参数

名称 类型 示例值 描述
result_success Boolean true 是否成功
error CommonError 错误
  • error_code
  • ErrorCode
  • 错误码
  • └ code
  • String
  • 1
  • 编码
  • └ prefix
  • String
  • HP
  • 错误码前缀
  • └ location
  • String
  • 1
  • 系统名
  • └ message
  • String
  • 1
  • 说明
value SubscribeRefundApplyResponse 返回值
  • └ huijin_refund_order_id
  • Number
  • 1
  • 汇金退款订单号
  • └ refund_status
  • String
  • 1
  • 退款状态

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCloudgameTradeplatformApplysubscriberefundRequest req = new AlibabaCloudgameTradeplatformApplysubscriberefundRequest();
AlibabaCloudgameTradeplatformApplysubscriberefundRequest.SubscribeRefundApplyRequest obj1 = new AlibabaCloudgameTradeplatformApplysubscriberefundRequest.SubscribeRefundApplyRequest();
obj1.setUserCountry("CHINA");
obj1.setRefundScene("1");
obj1.setRefundOrderId("1");
obj1.setTenantId(1L);
obj1.setSubscribeId("1");
obj1.setCurrency("CNY");
obj1.setApplyRefundTime(1L);
obj1.setRefundAmount(1L);
obj1.setOrderId("1");
obj1.setRefundSerialId("1");
obj1.setIdempotentCode("1");
req.setSubscribeRefundApplyRequest(obj1);
AlibabaCloudgameTradeplatformApplysubscriberefundResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_cloudgame_tradeplatform_applysubscriberefund_response>
    <result_success>true</result_success>
    <error>
        <error_code>
            <code>1</code>
            <prefix>HP</prefix>
        </error_code>
        <location>1</location>
        <message>1</message>
    </error>
    <value>
        <huijin_refund_order_id>1</huijin_refund_order_id>
        <refund_status>1</refund_status>
    </value>
</alibaba_cloudgame_tradeplatform_applysubscriberefund_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

返回
顶部