文档

配置分账方

更新时间:

接口名称

antchain.caasplatform.general.divide.register

请求参数

名称

是否必选

类型

取值约束

示例值

描述

service_id

STRING

-

cme20230724104931af3a4d

合约实例id

id

STRING

最大长度64

ea596f28-4ece-406d-a9e1-86fa83cc505f

自定义Id,重复则更新

code

STRING

最大长度100

91350100M000100Y43

企业营业证编号,或唯一ID

name

STRING

最大长度100

xxx科技有限公司

企业名称

返回数据

名称

类型

示例值

描述

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","message":"Create success"}

合约接口返回结果

接口示例

// 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");
        RegisterGeneralDivideRequest registerGeneralDivideRequest = new RegisterGeneralDivideRequest()
                .setCode("91350100M000100Y43")
                .setServiceId("cme20230724104931af3a4d")
                .setName("xxx科技有限公司")
                .setId("ea596f28-4ece-406d-a9e1-86fa83cc505f");
        client.registerGeneralDivide(registerGeneralDivideRequest);
    }
}

结果码

结果码

说明

解决方案

OK

成功结果码

-

  • 本页导读 (0)
文档反馈