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

alibaba.related.rule.query (查询是否关联交易接口)

关联交易查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
related_party_param RelatedPartyParam 必须 查询入参对象
  • └ company_id
  • Number
  • 必须
  • 290
  • 我方公司ID
  • └ company_name
  • String
  • 可选
  • 阿里巴巴中国
  • 我方公司名称
  • └ related_party_names
  • String []
  • 必须
  • 对方公司名称集合
  • └ related_party_group
  • String
  • 必须
  • alibaba
  • 关联交易 类型,alibaba代表阿里巴巴,ali_jk代表健康,ali_gaoxin代表高鑫
system_code String 必须 test 调用方系统名称
system_secret String 必须 test 调用方密钥

响应参数

名称 类型 示例值 描述
result ActionResult 返回结果外层对象
  • content
  • 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
  • Alibabaxxx
  • 我方公司英文名称
  • └ 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);
AlibabaRelatedRuleQueryRequest req = new AlibabaRelatedRuleQueryRequest();
AlibabaRelatedRuleQueryRequest.RelatedPartyParam obj1 = new AlibabaRelatedRuleQueryRequest.RelatedPartyParam();
obj1.setCompanyId(290L);
obj1.setCompanyName("阿里巴巴中国");
obj1.setRelatedPartyNames("");
obj1.setRelatedPartyGroup("alibaba");
req.setRelatedPartyParam(obj1);
req.setSystemCode("test");
req.setSystemSecret("test");
AlibabaRelatedRuleQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_related_rule_query_response>
    <result>
        <content>
            <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>Alibabaxxx</company_en_name>
        </content>
        <error_code>1001</error_code>
        <error_level>-100</error_level>
        <error_msg>参数不正确</error_msg>
        <success>true</success>
    </result>
</alibaba_related_rule_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

返回
顶部