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

alibaba.cloudgame.tradeplatform.asynccashier (页面异步操作接口)

页面异步操作接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
payment_platform_common_request PaymentPlatformCommonRequest 可选 请求入参
  • └ tenant_id
  • Number
  • 可选
  • 1
  • 租户ID
  • └ params
  • String
  • 可选
  • 1
  • 请求参数

响应参数

名称 类型 示例值 描述
result_success Boolean true 是否成功
error CommonError 错误
  • error_code
  • ErrorCode
  • 错误码
  • └ code
  • String
  • 1
  • 编码
  • └ prefix
  • String
  • HP
  • 错误码前缀
  • └ location
  • String
  • 1
  • 系统名
  • └ message
  • String
  • 1
  • 说明
extend_info Json 1 扩展参数
value String 1 返回数据

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCloudgameTradeplatformAsynccashierRequest req = new AlibabaCloudgameTradeplatformAsynccashierRequest();
AlibabaCloudgameTradeplatformAsynccashierRequest.PaymentPlatformCommonRequest obj1 = new AlibabaCloudgameTradeplatformAsynccashierRequest.PaymentPlatformCommonRequest();
obj1.setTenantId(1L);
obj1.setParams("1");
req.setPaymentPlatformCommonRequest(obj1);
AlibabaCloudgameTradeplatformAsynccashierResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_cloudgame_tradeplatform_asynccashier_response>
    <result_success>true</result_success>
    <error>
        <error_code>
            <code>1</code>
            <prefix>HP</prefix>
        </error_code>
        <location>1</location>
        <message>1</message>
    </error>
    <extend_info>1</extend_info>
    <value>1</value>
</alibaba_cloudgame_tradeplatform_asynccashier_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

返回
顶部