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

alibaba.pur.sr.query (查询需求池)

查询需求池信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
sourcing_request_query_top_out_d_t_o SourcingRequestQueryTopOutDto 可选 系统自动生成
  • └ buyer
  • String
  • 可选
  • 857857
  • 工号
  • └ pr_number
  • String
  • 可选
  • PR10276449
  • PR编号
  • └ request_id
  • String
  • 可选
  • 1224324
  • 寻源号

响应参数

名称 类型 示例值 描述
result ActionResult 1 获取url的出参
  • └ success
  • Boolean
  • ture
  • 成功标识
  • └ error_code
  • String
  • 1
  • 错误码
  • contents
  • SourcingRequestDto []
  • 1
  • 结果内容
  • └ order_type
  • String
  • byAmount
  • 开单方式
  • └ po_tag
  • String
  • newPoSys
  • 判断已有合同履行走新PO系统还是老PO系统
  • └ order_num
  • Number
  • 0
  • 序号
  • └ ou_code
  • String
  • R9Z
  • 费用归属公司OU编码
  • └ remark
  • String
  • 1
  • 备注
  • └ item_name
  • String
  • 程的白名单提交测试
  • 物品名称
  • └ uom
  • String
  • 单位
  • └ apply_dept
  • String
  • A7297
  • 申请人部门
  • └ origin_id
  • String
  • 6493487801
  • 来源ID
  • └ delivery_address
  • String
  • --
  • 收货地址
  • └ ou_id
  • Number
  • 200000081
  • 采购OU ID
  • └ id
  • Number
  • 100195492
  • ID
  • └ item_description
  • String
  • 消金
  • 规格说明
  • └ original_buyer
  • String
  • 56771
  • 原始采购员
  • └ is_pr_ds
  • Boolean
  • false
  • 是否PR指定采购
  • └ company_code
  • String
  • 99782076
  • 公司编码
  • └ unit_price
  • String
  • 1
  • 单价
  • └ quantity
  • String
  • 60000000
  • 数量或金额
  • └ need_by_date
  • String
  • 1619107200000
  • 期望交货日期
  • └ category_code
  • String
  • EPZ1
  • 类别名称
  • └ actual_requestor
  • String
  • 560225
  • 实际需求方
  • └ parent_id
  • Number
  • 100194125
  • 父任务行ID
  • └ buyer
  • String
  • 56771
  • 采购员
  • └ tags
  • String
  • CMALL
  • 标签
  • └ apply_person
  • String
  • 56771
  • 申请人
  • └ origin_type
  • String
  • PR
  • 来源类型
  • └ apply_code
  • String
  • PR10038355
  • 申请编号
  • └ currency_code
  • String
  • CNY
  • 币种
  • └ data_source
  • String
  • NEW_PR
  • 数据来源
  • └ is_ceres
  • Boolean
  • false
  • 是否是ceres数据
  • └ status
  • String
  • Pending
  • 状态
  • └ ext
  • String
  • { \"slaUrl\":\"https://omsp.alibaba-inc.com/application/newSla.htm?projectId=67d28f1f-b1ff-4257-964b-89ea19857f06&projectTypeChildCode=support&buNo=XXPT&workNo=038912&slaId=4288e541-a8d5-4610-b683-3cd22d1ac3de&SLAFrom=detail&isDetail=true\", \"slaCode\":\"4288e541-a8d5-4610-b683-3cd22d1ac3de\", \"slaLink\":{ \"url\":\"https://omsp.alibaba-inc.com/application/newSla.htm?projectId=67d28f1f-b1ff-4257-964b-89ea19857f06&projectTypeChildCode=support&buNo=XXPT&workNo=038912&slaId=4288e541-a8d5-4610-b683-3cd22d1ac3de&SLAFrom=detail&isDetail=true\", \"title\":\"设计类 SLA\" }, \"slaName\":\"设计类 SLA\", \"monthNum\":23, \"workload\":276, \"personNum\":12, \"fiscalYear\":\"FY2021\", \"levelValue\":\"B+S5+M4\", \"projectUrl\":\"https://outsourcing.alibaba.net/project/detail/67d28f1f-b1ff-4257-964b-89ea19857f06\", \"projectName\":\"混合价格类型试一试_2021011801\", \"projectType\":\"technology\", \"serviceType\":\"MONTHLY\", \"isFramePrice\":\"y\", \"levelValueId\":\"10000009848\", \"positionValue\":\"安全负责人(行政外包)\", \"projectNumber\":\"2032911\", \"settlementType\":\"byMonth\", \"budgetUnitPrice\":7, \"positionValueId\":\"10000009855\", \"secondProjectType\":\"support\", \"isUserDefinedPrice\":\"n\", \"isSettlementContract\":\"y\", \"serviceLocationValue\":\"杭州驻场\", \"settlementFormulaCode\":\"DingGentleSlaOffline\", \"settlementFormulaName\":\"钉钉考勤-5x8弹性工作制(线下做SLA打分)\", \"serviceLocationValueId\":\"563\", \"settlementContractList\":[ { \"taxRate\":0.06, \"supplierId\":\"135522\", \"taxRateName\":\" 6% \", \"contractCode\":\"A50202100004\", \"supplierCode\":\"SU079630\", \"supplierName\":\"0327国内hao1@1.com\" } ] }
  • 扩展字段
  • └ error_msg
  • String
  • 查询错误
  • 错误信息
  • └ error_level
  • Number
  • 0
  • 错误级别

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPurSrQueryRequest req = new AlibabaPurSrQueryRequest();
AlibabaPurSrQueryRequest.SourcingRequestQueryTopOutDto obj1 = new AlibabaPurSrQueryRequest.SourcingRequestQueryTopOutDto();
obj1.setBuyer("857857");
obj1.setPrNumber("PR10276449");
obj1.setRequestId("1224324");
req.setSourcingRequestQueryTopOutDTO(obj1);
AlibabaPurSrQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_pur_sr_query_response>
    <result>
        <success>ture</success>
        <error_code>1</error_code>
        <contents>
            <sourcing_request_dto>
                <order_type>byAmount</order_type>
                <po_tag>newPoSys</po_tag>
                <order_num>0</order_num>
                <ou_code>R9Z</ou_code>
                <remark>1</remark>
                <item_name>程的白名单提交测试</item_name>
                <uom>元</uom>
                <apply_dept>A7297</apply_dept>
                <origin_id>6493487801</origin_id>
                <delivery_address>--</delivery_address>
                <ou_id>200000081</ou_id>
                <id>100195492</id>
                <item_description>消金</item_description>
                <original_buyer>56771</original_buyer>
                <is_pr_ds>false</is_pr_ds>
                <company_code>99782076</company_code>
                <unit_price>1</unit_price>
                <quantity>60000000</quantity>
                <need_by_date>1619107200000</need_by_date>
                <category_code>EPZ1</category_code>
                <actual_requestor>560225</actual_requestor>
                <parent_id>100194125</parent_id>
                <buyer>56771</buyer>
                <tags>CMALL</tags>
                <apply_person>56771</apply_person>
                <origin_type>PR</origin_type>
                <apply_code>PR10038355</apply_code>
                <currency_code>CNY</currency_code>
                <data_source>NEW_PR</data_source>
                <is_ceres>false</is_ceres>
                <status>Pending</status>
                <ext>{     \&quot;slaUrl\&quot;:\&quot;https://omsp.alibaba-inc.com/application/newSla.htm?projectId=67d28f1f-b1ff-4257-964b-89ea19857f06&amp;projectTypeChildCode=support&amp;buNo=XXPT&amp;workNo=038912&amp;slaId=4288e541-a8d5-4610-b683-3cd22d1ac3de&amp;SLAFrom=detail&amp;isDetail=true\&quot;,     \&quot;slaCode\&quot;:\&quot;4288e541-a8d5-4610-b683-3cd22d1ac3de\&quot;,     \&quot;slaLink\&quot;:{         \&quot;url\&quot;:\&quot;https://omsp.alibaba-inc.com/application/newSla.htm?projectId=67d28f1f-b1ff-4257-964b-89ea19857f06&amp;projectTypeChildCode=support&amp;buNo=XXPT&amp;workNo=038912&amp;slaId=4288e541-a8d5-4610-b683-3cd22d1ac3de&amp;SLAFrom=detail&amp;isDetail=true\&quot;,         \&quot;title\&quot;:\&quot;设计类 SLA\&quot;     },     \&quot;slaName\&quot;:\&quot;设计类 SLA\&quot;,     \&quot;monthNum\&quot;:23,     \&quot;workload\&quot;:276,     \&quot;personNum\&quot;:12,     \&quot;fiscalYear\&quot;:\&quot;FY2021\&quot;,     \&quot;levelValue\&quot;:\&quot;B+S5+M4\&quot;,     \&quot;projectUrl\&quot;:\&quot;https://outsourcing.alibaba.net/project/detail/67d28f1f-b1ff-4257-964b-89ea19857f06\&quot;,     \&quot;projectName\&quot;:\&quot;混合价格类型试一试_2021011801\&quot;,     \&quot;projectType\&quot;:\&quot;technology\&quot;,     \&quot;serviceType\&quot;:\&quot;MONTHLY\&quot;,     \&quot;isFramePrice\&quot;:\&quot;y\&quot;,     \&quot;levelValueId\&quot;:\&quot;10000009848\&quot;,     \&quot;positionValue\&quot;:\&quot;安全负责人(行政外包)\&quot;,     \&quot;projectNumber\&quot;:\&quot;2032911\&quot;,     \&quot;settlementType\&quot;:\&quot;byMonth\&quot;,     \&quot;budgetUnitPrice\&quot;:7,     \&quot;positionValueId\&quot;:\&quot;10000009855\&quot;,     \&quot;secondProjectType\&quot;:\&quot;support\&quot;,     \&quot;isUserDefinedPrice\&quot;:\&quot;n\&quot;,     \&quot;isSettlementContract\&quot;:\&quot;y\&quot;,     \&quot;serviceLocationValue\&quot;:\&quot;杭州驻场\&quot;,     \&quot;settlementFormulaCode\&quot;:\&quot;DingGentleSlaOffline\&quot;,     \&quot;settlementFormulaName\&quot;:\&quot;钉钉考勤-5x8弹性工作制(线下做SLA打分)\&quot;,     \&quot;serviceLocationValueId\&quot;:\&quot;563\&quot;,     \&quot;settlementContractList\&quot;:[         {             \&quot;taxRate\&quot;:0.06,             \&quot;supplierId\&quot;:\&quot;135522\&quot;,             \&quot;taxRateName\&quot;:\&quot; 6% \&quot;,             \&quot;contractCode\&quot;:\&quot;A50202100004\&quot;,             \&quot;supplierCode\&quot;:\&quot;SU079630\&quot;,             \&quot;supplierName\&quot;:\&quot;0327国内hao1@1.com\&quot;         }     ] }</ext>
            </sourcing_request_dto>
        </contents>
        <error_msg>查询错误</error_msg>
        <error_level>0</error_level>
    </result>
</alibaba_pur_sr_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

返回
顶部