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

alibaba.pur.quotation.query (根据pr单号查询报价单信息)

根据pr单号查询报价单信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
pr_number String 必须 PR219851 pr单号

响应参数

名称 类型 示例值 描述
result ActionResult 返回对象
  • └ success
  • Boolean
  • true
  • 操作状态
  • └ error_code
  • String
  • 500
  • 错误code
  • └ error_msg
  • String
  • 系统异常
  • 异常信息
  • └ error_level
  • String
  • 0
  • 错误级别
  • content
  • SourcingQuotationTopOutDTO []
  • 结果内容
  • └ approved_time
  • Date
  • 2022-02-03
  • 报价审批通过时间
  • └ status
  • String
  • Cancel
  • 报价单状态
  • └ quotation_code
  • String
  • BJD10043161
  • 报价单编码
  • └ quotation_time
  • Date
  • 2022-02-03
  • 报价时间(创建时间)
  • └ supplier_code
  • String
  • SU010612
  • 供应商code
  • └ supplier_name
  • String
  • 洪著测试haofan@alitest.com====测试
  • 供应商名称

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPurQuotationQueryRequest req = new AlibabaPurQuotationQueryRequest();
req.setPrNumber("PR219851");
AlibabaPurQuotationQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_pur_quotation_query_response>
    <result>
        <success>true</success>
        <error_code>500</error_code>
        <error_msg>系统异常</error_msg>
        <error_level>0</error_level>
        <content>
            <sourcing_quotation_top_out_d_t_o>
                <approved_time>2022-02-03</approved_time>
                <status>Cancel</status>
                <quotation_code>BJD10043161</quotation_code>
                <quotation_time>2022-02-03</quotation_time>
                <supplier_code>SU010612</supplier_code>
                <supplier_name>洪著测试haofan@alitest.com====测试</supplier_name>
            </sourcing_quotation_top_out_d_t_o>
        </content>
    </result>
</alibaba_pur_quotation_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

返回
顶部