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

alibaba.pur.contract.get (根据PR单号查询合同信息)

根据PR单号查询合同信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
pr_code String 可选 VPR168142 PR单号

响应参数

名称 类型 示例值 描述
result ActionResult 接口返回数据
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • String
  • 500
  • 错误码
  • content
  • ContractTopOutDTO []
  • 返回内容
  • └ pr_code
  • String
  • PR1234
  • PR单号
  • └ supplier_code
  • String
  • 111
  • 供应商编码
  • └ supplier_name
  • String
  • 111
  • 供应商名称
  • └ contract_code
  • String
  • Z69202300008
  • 合同编码
  • └ contract_gmt_create
  • Date
  • 2023-02-14 17:40:04
  • 合同创建时间
  • └ contract_gmt_approval
  • Date
  • 2023-02-14 17:40:04
  • 合同审批时间
  • └ contract_status
  • String
  • audited
  • 合同状态
  • └ error_msg
  • String
  • 系统异常
  • 错误描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPurContractGetRequest req = new AlibabaPurContractGetRequest();
req.setPrCode("VPR168142");
AlibabaPurContractGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_pur_contract_get_response>
    <result>
        <success>true</success>
        <error_code>500</error_code>
        <content>
            <contract_top_out_d_t_o>
                <pr_code>PR1234</pr_code>
                <supplier_code>111</supplier_code>
                <supplier_name>111</supplier_name>
                <contract_code>Z69202300008</contract_code>
                <contract_gmt_create>2023-02-14 17:40:04</contract_gmt_create>
                <contract_gmt_approval>2023-02-14 17:40:04</contract_gmt_approval>
                <contract_status>audited</contract_status>
            </contract_top_out_d_t_o>
        </content>
        <error_msg>系统异常</error_msg>
    </result>
</alibaba_pur_contract_get_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

返回
顶部