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

alibaba.pur.sr.get (查询需求池信息)

查询需求池信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
pr_number String 必须 PR330201 PR编码
buyer String 可选 857857 采购员工号

响应参数

名称 类型 示例值 描述
contents SourcingRequestDto [] 0 结果内容
  • └ item_name
  • String
  • 低压进线柜
  • 物品名称
  • └ order_type
  • String
  • byAmount
  • 开单方式
  • └ item_description
  • String
  • 低压进线柜OKKEN/BLOKSET-01
  • 规格说明
  • └ unit_price
  • String
  • 1000
  • 单价
  • └ quantity
  • String
  • 10
  • 数量或金额
  • └ category_code
  • String
  • HA01
  • 采购类别编码
  • └ buyer
  • String
  • 65407
  • 采购员工号
  • └ apply_code
  • String
  • PR330201
  • PR编码
  • └ currency_code
  • String
  • CNY
  • 币种
  • └ id
  • Number
  • 174490
  • 需求池行ID
  • └ origin_id
  • String
  • 10760838
  • PR行的ID
  • └ remark
  • String
  • 家用
  • 备注
  • └ category_use
  • String
  • AE11
  • 用途规则
error_level Number 0 错误级别

请求示例

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

响应示例

  • XML示例
  • JSON示例
<alibaba_pur_sr_get_response>
    <contents>
        <sourcing_request_dto>
            <item_name>低压进线柜</item_name>
            <order_type>byAmount</order_type>
            <item_description>低压进线柜OKKEN/BLOKSET-01</item_description>
            <unit_price>1000</unit_price>
            <quantity>10</quantity>
            <category_code>HA01</category_code>
            <buyer>65407</buyer>
            <apply_code>PR330201</apply_code>
            <currency_code>CNY</currency_code>
            <id>174490</id>
            <origin_id>10760838</origin_id>
            <remark>家用</remark>
            <category_use>AE11</category_use>
        </sourcing_request_dto>
    </contents>
    <error_level>0</error_level>
</alibaba_pur_sr_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

返回
顶部