文档中心 > API类目 > 法务服务API

alibaba.related.rule.backup.query (查询关联交易是否需要报备)

查询关联交易是否需要报备

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
related_party_process_param RelatedPartyProcessParam 必须 查询入参外层对象
  • └ need_auto_generate_backup_task
  • Boolean
  • 可选
  • false
  • 是否自动生成报备任务
  • related_party_param_list
  • RelatedPartyParam []
  • 必须
  • 查询对象集合
  • └ company_id
  • Number
  • 必须
  • 290
  • 我方公司id
  • └ company_name
  • String
  • 可选
  • alibaba
  • 我方公司名称
  • └ related_party_names
  • String []
  • 必须
  • 对方公司名称集合
  • └ related_party_group
  • String
  • 必须
  • alibaba
  • 关联交易 类型,alibaba代表阿里巴巴,ali_jk代表健康,ali_gaoxin代表高鑫
  • └ query_type_json_value
  • String
  • 必须
  • {"ifNormalCommercialTerms": "y","payType":"one_time","totalAmount":1232134.23}
  • 查询报备类型对应的json参数
  • └ query_type
  • String
  • 必须
  • contract_gaoxin
  • 查询需要报备的类型:contract_approve_type 合同中心审批类型,invest_type 投资类型,contract_gaoxin 高鑫合同类型
system_code String 必须 test 调用方系统标识
system_secret String 必须 test 调用方系统密钥

响应参数

名称 类型 示例值 描述
result ActionResult 关联交易报备返回外层对象
  • content
  • RelatedPartyProcessResult
  • 关联交易报备返回内层对象
  • └ approve_result
  • String
  • man_approve
  • auto_approve自动审批通过;man_approve需人工审批;无需报备no_approve
  • related_party_result_list
  • RelatedPartyResult []
  • 关联交易查询结果集合
  • └ company_id
  • Number
  • 290
  • 我方公司id
  • └ related_party_group_enum
  • String
  • alibaba
  • 关联交易类型,同入参
  • └ connected_transaction
  • String
  • {xxx公司:true}
  • 对方公司中xxx是否关联交易
  • └ company_location
  • String
  • domestic
  • 我方公司属于境内or境外
  • └ company_name
  • String
  • 阿里巴巴xxx
  • 我方公司中文名称
  • └ company_en_name
  • String
  • Alibaba
  • 我方公司英文名称
  • └ error_code
  • String
  • 1001
  • 错误码
  • └ error_level
  • String
  • -100
  • 错误级别
  • └ error_msg
  • String
  • 参数不正确
  • 错误消息
  • └ success
  • String
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaRelatedRuleBackupQueryRequest req = new AlibabaRelatedRuleBackupQueryRequest();
AlibabaRelatedRuleBackupQueryRequest.RelatedPartyProcessParam obj1 = new AlibabaRelatedRuleBackupQueryRequest.RelatedPartyProcessParam();
obj1.setNeedAutoGenerateBackupTask(false);
List<AlibabaRelatedRuleBackupQueryRequest.RelatedPartyParam> list3 = new ArrayList<AlibabaRelatedRuleBackupQueryRequest.RelatedPartyParam>();
AlibabaRelatedRuleBackupQueryRequest.RelatedPartyParam obj4 = new AlibabaRelatedRuleBackupQueryRequest.RelatedPartyParam();
list3.add(obj4);
obj4.setCompanyId(290L);
obj4.setCompanyName("alibaba");
obj4.setRelatedPartyNames("");
obj4.setRelatedPartyGroup("alibaba");
obj1.setRelatedPartyParamList(list3);
obj1.setQueryTypeJsonValue("{\"ifNormalCommercialTerms\": \"y\",\"payType\":\"one_time\",\"totalAmount\":1232134.23}");
obj1.setQueryType("contract_gaoxin");
req.setRelatedPartyProcessParam(obj1);
req.setSystemCode("test");
req.setSystemSecret("test");
AlibabaRelatedRuleBackupQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_related_rule_backup_query_response>
    <result>
        <content>
            <approve_result>man_approve</approve_result>
            <related_party_result_list>
                <related_party_result>
                    <company_id>290</company_id>
                    <related_party_group_enum>alibaba</related_party_group_enum>
                    <connected_transaction>{xxx公司:true}</connected_transaction>
                    <company_location>domestic</company_location>
                    <company_name>阿里巴巴xxx</company_name>
                    <company_en_name>Alibaba</company_en_name>
                </related_party_result>
            </related_party_result_list>
        </content>
        <error_code>1001</error_code>
        <error_level>-100</error_level>
        <error_msg>参数不正确</error_msg>
        <success>true</success>
    </result>
</alibaba_related_rule_backup_query_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

返回
顶部