创建捐赠证明

接口名称

antchain.caasplatform.deposit.charity.create

请求参数

参数名

是否必填

类型

取值约束

示例值

描述

order_id

STRING

-

uuid

业务幂等id

service_id

STRING

-

cme20230724104931af3a4d

合约服务实例id

base_info_json

STRING

-

{"name":"张三"}

基础信息json

extension_info_json

STRING

-

额外信息json

file_id

STRING

-

lo6svnp4035dea28

文件id

返回参数

名称

类型

示例值

描述

req_msg_id

STRING

b20167e21a8d4cc2b5f1022d24f43815

请求唯一ID,用于链路跟踪和问题排查

result_code

STRING

OK

结果码,一般OK表示调用成功

result_msg

STRING

Denied by check auth from IAM

异常信息的文本描述

接口示例

// 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");
        CreateDepositCharityRequest createDepositCharityRequest = new CreateDepositCharityRequest()
                .setBaseInfoJson("{\"name\":\"张三\"}")
                .setExtensionInfoJson("略")
                .setServiceId("cme20230724104931af3a4d")
                .setFileId("lo6svnp4035dea28")
                .setOrderId("uuid");
        client.createDepositCharity(createDepositCharityRequest);
    }
}

结果码

结果码

说明

解决方案

OK

成功结果码

-