接口名称
antchain.caasplatform.general.divide.get
请求参数
名称 | 是否必选 | 类型 | 取值约束 | 示例值 | 描述 |
service_id | 是 | STRING | - | cme20230724104931af3a4d | 合约实例id |
rule_id | 是 | STRING | - | 1266aa49-f211-4932-b19a-a27b03c3c0e6 | 分账规则ID |
返回数据
名称 | 类型 | 示例值 | 描述 |
req_msg_id | STRING | b20167e21a8d4cc2b5f1022d24f43815 | 请求唯一ID,用于链路跟踪和问题排查 |
result_code | STRING | OK | 结果码,一般OK表示调用成功 |
result_msg | STRING | Denied by check auth from IAM | 异常信息的文本描述 |
tx_hash | STRING | c73c751472a9f9fbceef29665101377ba7e170b649b83db33b4634d4484ac626 | 存证交易Hash |
block_number | LONG | 6220309 | 区块高度 |
code | LONG | 0 | 错误码 |
result | STRING | {"code":"200","data":"[{\"code\":\"91350100M000100Y43\",\"proportion\":\"13.26\",\"name\":\"xxx科技有限公司\",\"id\":\"96d72522-a2ef-475d-8ed5-7573a1a7d6a3\"}]"} | 合约接口返回结果 |
接口示例
// This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.sample;
import com.aliyun.tea.*;
import com.antgroup.antchain.openapi.caasplatform.*;
import com.antgroup.antchain.openapi.caasplatform.models.*;
public class Client {
/**
* 使用AK&SK初始化账号Client
* @param accessKeyId
* @param accessKeySecret
* @return Client
* @throws Exception
*/
public static com.antgroup.antchain.openapi.caasplatform.Client createClient(String accessKeyId, String accessKeySecret) throws Exception {
Config config = new Config();
// 您的AccessKey ID
config.accessKeyId = accessKeyId;
// 您的AccessKey Secret
config.accessKeySecret = accessKeySecret;
return new com.antgroup.antchain.openapi.caasplatform.Client(config);
}
public static void main(String[] args_) throws Exception {
java.util.List<String> args = java.util.Arrays.asList(args_);
com.antgroup.antchain.openapi.caasplatform.Client client = Client.createClient("accessKeyId", "accessKeySecret");
GetGeneralDivideRequest getGeneralDivideRequest = new GetGeneralDivideRequest()
.setRuleId("1266aa49-f211-4932-b19a-a27b03c3c0e6")
.setServiceId("cme20230724104931af3a4d");
client.getGeneralDivide(getGeneralDivideRequest);
}
}
结果码
结果码 | 说明 | 解决方案 |
OK | 成功结果码 | - |
文档内容是否对您有帮助?