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

alibaba.cloudgame.account.merchantrequest.callback (外部商户请求结果回写)

外部商户请求结果回写接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
yuan_miao_merchant_biz_request_callback_request YuanMiaoMerchantBizRequestCallbackRequest 可选 入参model
  • └ request_time
  • Number
  • 可选
  • 1647582802256
  • 请求时间
  • └ request_type
  • String
  • 可选
  • 2
  • 请求类型
  • └ data
  • String
  • 可选
  • {"aasStatus":true,"realNameStatus":true,"activateStatus":true}
  • 回写数据
  • └ merchant_id
  • String
  • 可选
  • NETEASE
  • 商户ID
  • └ request_id
  • String
  • 可选
  • 12df46422e7df53f1e20e7547a7edc7f
  • 请求ID
  • └ sign
  • String
  • 可选
  • oG8+O6GyelWEA2nbByrXsyUTz3Y+FyQi1G0jHfzGK2Lcx2WsyeK84tZtlSMmfGf/1KYgYdtTMuLkbDgM1QCWziSwYw+yOWwr+JkVToZirLoqoiIfbQ0hI7wZiwG9behr69Z/+BckLdn7SWqVwY96Qqo9QF8rKB47GEkNV+Q/AoQtolk843l/vi6iZmN2hLc5q+KcEVRsKFPvEljVCIbnX8YBzl7vBeE/HIshV2EWqYwUmxFG3G1Yv86bM1h9ZM51yyu+iysHfcNNniY9WJn0Pq7vlcb8PL369KcQZ5tcJCJGiEjrKZiP0ZWDyd+mvgf9bOHXSZLla49C/UMNmx/7UQ==
  • 具体签名
  • └ sign_method
  • String
  • 可选
  • SHA256_WITH_RSA2048
  • 签名方式

响应参数

名称 类型 示例值 描述
response_code String 200 响应码
data MerchantBizRequestCallbackResultDTO 响应数据
  • └ result
  • Boolean
  • true
  • 回写结果
  • └ error_code
  • String
  • INVALID_REQUEST_ID
  • 错误码
  • └ error_message
  • String
  • 无效请求ID
  • 错误原因
message String success 响应信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCloudgameAccountMerchantrequestCallbackRequest req = new AlibabaCloudgameAccountMerchantrequestCallbackRequest();
AlibabaCloudgameAccountMerchantrequestCallbackRequest.YuanMiaoMerchantBizRequestCallbackRequest obj1 = new AlibabaCloudgameAccountMerchantrequestCallbackRequest.YuanMiaoMerchantBizRequestCallbackRequest();
obj1.setRequestTime(1647582802256L);
obj1.setRequestType("2");
obj1.setData("{\"aasStatus\":true,\"realNameStatus\":true,\"activateStatus\":true}");
obj1.setMerchantId("NETEASE");
obj1.setRequestId("12df46422e7df53f1e20e7547a7edc7f");
obj1.setSign("oG8+O6GyelWEA2nbByrXsyUTz3Y+FyQi1G0jHfzGK2Lcx2WsyeK84tZtlSMmfGf/1KYgYdtTMuLkbDgM1QCWziSwYw+yOWwr+JkVToZirLoqoiIfbQ0hI7wZiwG9behr69Z/+BckLdn7SWqVwY96Qqo9QF8rKB47GEkNV+Q/AoQtolk843l/vi6iZmN2hLc5q+KcEVRsKFPvEljVCIbnX8YBzl7vBeE/HIshV2EWqYwUmxFG3G1Yv86bM1h9ZM51yyu+iysHfcNNniY9WJn0Pq7vlcb8PL369KcQZ5tcJCJGiEjrKZiP0ZWDyd+mvgf9bOHXSZLla49C/UMNmx/7UQ==");
obj1.setSignMethod("SHA256_WITH_RSA2048");
req.setYuanMiaoMerchantBizRequestCallbackRequest(obj1);
AlibabaCloudgameAccountMerchantrequestCallbackResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_cloudgame_account_merchantrequest_callback_response>
    <response_code>200</response_code>
    <data>
        <result>true</result>
        <error_code>INVALID_REQUEST_ID</error_code>
        <error_message>无效请求ID</error_message>
    </data>
    <message>success</message>
</alibaba_cloudgame_account_merchantrequest_callback_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

返回
顶部