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

alibaba.pur.vpr.get (查询vpr信息)

查询VRP信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
source_id Number 必须 100885 来源ID
data_source String 必须 ANT_LUMOS 来源类型

响应参数

名称 类型 示例值 描述
result ActionResult result 获取url的出参
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • String
  • 500
  • 错误code
  • content
  • FixedAssetTopDto
  • content
  • 结果内容
  • └ apply_code
  • String
  • VPR1276
  • VPR编号
  • └ inquiry_id
  • Number
  • 65112
  • 询价单ID
  • └ request_id
  • Number
  • 343556
  • 寻源请求ID
  • └ error_msg
  • String
  • 系统异常
  • 错误信息
  • └ error_level
  • Number
  • 1
  • 错误级别

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPurVprGetRequest req = new AlibabaPurVprGetRequest();
req.setSourceId(100885L);
req.setDataSource("ANT_LUMOS");
AlibabaPurVprGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_pur_vpr_get_response>
    <result>
        <success>true</success>
        <error_code>500</error_code>
        <content>
            <apply_code>VPR1276</apply_code>
            <inquiry_id>65112</inquiry_id>
            <request_id>343556</request_id>
        </content>
        <error_msg>系统异常</error_msg>
        <error_level>1</error_level>
    </result>
</alibaba_pur_vpr_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

返回
顶部