文档中心 > API类目 > 信息平台-采购

alibaba.infop.pur.contract.querydetail (通过表单号查询合同信息)

查询合同信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
contract_id Number 可选 152618 合同id
app_code String 可选 ANT_RELATED 业务系统唯一编码

响应参数

名称 类型 示例值 描述
result ContractDTO ContractDto 合同数据
  • └ contract_type
  • String
  • common_frame
  • 合同类型
  • └ company_name
  • String
  • 支付宝(中国)网络技术有限公司(原名:浙江支付宝网络科技有限公司)
  • 甲方公司名称
  • └ ou_code
  • String
  • A50
  • OU编码
  • └ source_code
  • String
  • ANT
  • 来源编码
  • └ id
  • Number
  • 合同表单号
  • 152618
  • └ corp_id
  • Number
  • 2
  • 公司id
  • └ bu_code
  • String
  • AD
  • bu编码
  • └ supplier_id
  • Number
  • 12345
  • 供应商id
  • └ description
  • String
  • 测试测试
  • 描述
  • └ org_id
  • String
  • 2
  • 组织id
  • └ contract_name
  • String
  • 双11采购合同
  • 合同名称
  • └ supplier_name
  • String
  • 阳光易网供应商
  • 供应商名称
  • └ contract_code
  • String
  • A5020186732
  • 合同编码
  • └ currency_code
  • String
  • CNY
  • 币种
  • attachment_dtos
  • AttachmentDTO []
  • AttachmentDto
  • 合同附件列表
  • └ attachment_url
  • String
  • https://ceres.alibaba.net/contract/rockfile//downloadFile?resourceId=null&storageType=OSS
  • 下载链接
  • └ attachment_type
  • String
  • archiveAttachmentFile
  • 文件类型
  • └ resource_id
  • String
  • 123433
  • 资源id
  • └ attachment_name
  • String
  • 廉洁诚信约定函.pdf
  • 文件名称

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaInfopPurContractQuerydetailRequest req = new AlibabaInfopPurContractQuerydetailRequest();
req.setContractId(152618L);
req.setAppCode("ANT_RELATED");
AlibabaInfopPurContractQuerydetailResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_infop_pur_contract_querydetail_response>
    <result>
        <contract_type>common_frame</contract_type>
        <company_name>支付宝(中国)网络技术有限公司(原名:浙江支付宝网络科技有限公司)</company_name>
        <ou_code>A50</ou_code>
        <source_code>ANT</source_code>
        <id>合同表单号</id>
        <corp_id>2</corp_id>
        <bu_code>AD</bu_code>
        <supplier_id>12345</supplier_id>
        <description>测试测试</description>
        <org_id>2</org_id>
        <contract_name>双11采购合同</contract_name>
        <supplier_name>阳光易网供应商</supplier_name>
        <contract_code>A5020186732</contract_code>
        <currency_code>CNY</currency_code>
        <attachment_dtos>
            <attachment_d_t_o>
                <attachment_url>https://ceres.alibaba.net/contract/rockfile//downloadFile?resourceId=null&amp;storageType=OSS</attachment_url>
                <attachment_type>archiveAttachmentFile</attachment_type>
                <resource_id>123433</resource_id>
                <attachment_name>廉洁诚信约定函.pdf</attachment_name>
            </attachment_d_t_o>
        </attachment_dtos>
    </result>
</alibaba_infop_pur_contract_querydetail_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

返回
顶部