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

alibaba.infop.ceres.pr.query (查询 pr 信息)

查询 pr 信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
pr_number String 可选 PR254357 pr code

响应参数

名称 类型 示例值 描述
result PrInfoDto 系统自动生成
  • └ pr_number
  • String
  • PR10059165
  • pr 编码
  • └ is_active
  • String
  • Y
  • 是否有效
  • └ pr_ou_code
  • String
  • Z69
  • ou 编码
  • └ gmt_create
  • Date
  • 1642994273000
  • pr创建时间
  • └ description
  • String
  • 链路
  • pr描述
  • └ pr_ou_name
  • String
  • 蚂蚁金服(杭州)网络技术有限公司
  • pr ou名称
  • └ pr_status_desc
  • String
  • 审批完成
  • pr状态描述
  • └ pr_header_id
  • Number
  • 11476511099400
  • pr头id
  • └ pr_status_code
  • String
  • AP
  • pr状态编码
  • └ uom
  • String
  • cny
  • pr金额单位
  • └ amount
  • String
  • 600000.0,
  • pr总金额
  • └ amount_available
  • String
  • 0.0,
  • pr可用金额
  • └ company_code
  • String
  • 45
  • 公司code

请求示例

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

响应示例

  • XML示例
  • JSON示例
<alibaba_infop_ceres_pr_query_response>
    <result>
        <pr_number>PR10059165</pr_number>
        <is_active>Y</is_active>
        <pr_ou_code>Z69</pr_ou_code>
        <gmt_create>1642994273000</gmt_create>
        <description>链路</description>
        <pr_ou_name>蚂蚁金服(杭州)网络技术有限公司</pr_ou_name>
        <pr_status_desc>审批完成</pr_status_desc>
        <pr_header_id>11476511099400</pr_header_id>
        <pr_status_code>AP</pr_status_code>
        <uom>cny</uom>
        <amount>600000.0,</amount>
        <amount_available>0.0,</amount_available>
        <company_code>45</company_code>
    </result>
</alibaba_infop_ceres_pr_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

返回
顶部