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

alibaba.pur.rcv.info.query (根据接收单号查询接收单信息)

根据接收单号查询接收单信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
info_top_query RcvInfoTopQuery 必须 查询条件
  • └ rcv_number
  • String
  • 必须
  • RT12345678
  • 接收单号

响应参数

名称 类型 示例值 描述
result ActionResult 操作返回结果
  • └ success
  • Boolean
  • true
  • 操作是否成功
  • └ error_code
  • String
  • 100
  • 错误码
  • content
  • RcvResultTopDTO
  • 返回值
  • supplier_dto
  • SupplierDto
  • 供应商信息
  • └ supplier_name
  • String
  • 洪著测试haofan@alitest.com====测试
  • 供应商名
  • └ supplier_id
  • Number
  • 628
  • 供应商ID
  • └ supplier_code
  • String
  • SU010612
  • 供应商code
  • └ rcv_type
  • String
  • RECEIVE
  • rcv类型 RETURN和RECEIVE
  • receiver
  • PersonDto
  • 接收人
  • └ work_no
  • String
  • WB054249
  • 员工工号
  • └ user_name
  • String
  • 徐x
  • 员工名字
  • └ resign
  • Boolean
  • false
  • 是否离职
  • └ rcv_number
  • String
  • RT1000065173
  • 接收单号
  • └ rcv_head_id
  • Number
  • 40186682160
  • 接收单头id
  • └ rcv_description
  • String
  • 说明
  • 接收说明
  • └ rcv_detail_url
  • String
  • https://procurement.alibaba.net/receipt/detail?rcvIdCode=150b8c7831fdce070b921102488294f2&rcvId=40186682160
  • 接收单详情页面
  • └ rcv_status
  • String
  • 审批中
  • 接收状态
  • └ received_amount
  • String
  • 650
  • 已接收金额
  • └ rcv_status_code
  • String
  • AUDITING
  • 接收状态编码
  • workflow_logs
  • WorkflowLogs []
  • 审批记录
  • approver
  • PersonDto
  • 审批人
  • └ work_no
  • String
  • WB12123
  • 员工工号
  • └ user_name
  • String
  • 唧唧
  • 员工名字
  • └ resign
  • Boolean
  • true
  • 是否离职
  • └ approval_role
  • String
  • 提交申请
  • 审批角色
  • attachments
  • FileDto []
  • 审批附件
  • └ file_name
  • String
  • 文件名
  • 文件名称
  • └ file_download_url
  • String
  • www.baidu.com
  • 附件下载地址
  • └ comments
  • String
  • 同意
  • 审批意见
  • └ approve_time
  • Date
  • 1637843190000
  • 审批时间
  • └ operation
  • String
  • 提交申请
  • 审批动作
  • └ credit_note
  • String
  • 1
  • 附件号
  • └ execute_amount
  • String
  • 650
  • 可执行金额
  • └ instance_id
  • String
  • 3db22ca5-f0a1-4b93-8f6b-2ca62ea26bc4
  • 流程实例ID
  • └ is_allow_modify
  • Boolean
  • false
  • 是否允许修改
  • rcv_shipment_lines
  • RcvShipmentLines []
  • 接收单行信息
  • └ item_name
  • String
  • 天猫精灵-简化-xtc-2151
  • 物品名称
  • └ quantity
  • String
  • 30
  • 可执行金额/数量
  • └ rcv_line_num
  • Number
  • 1
  • 接收单行号
  • └ po_line_num
  • Number
  • 1
  • po行号
  • └ rcv_date
  • Date
  • 1637843174000
  • 接受日期
  • └ received_quantity
  • String
  • 30
  • 已接收金额/数量
  • └ line_type
  • String
  • 按数量
  • QUANTITY/AMOUNT(按金额/按数量)
  • └ received_amount
  • String
  • 390
  • 已接收金额
  • └ expense_month
  • String
  • 2021-10
  • 费用归属月份
  • └ rcv_line_id
  • Number
  • 2008599284181
  • 收单行ID
  • files
  • FileDto []
  • 验收所需材料
  • └ file_name
  • String
  • 文件名
  • 文件名称
  • └ file_download_url
  • String
  • www.baidu.com
  • 附件下载地址
  • company
  • OuDto
  • 公司
  • └ code
  • String
  • T60
  • 公司code
  • └ name
  • String
  • 南京淘宝软件有限公司
  • 公司名称
  • └ id
  • Number
  • 1458
  • id
  • └ finish_date
  • Date
  • 2021-11-04
  • (审批)完成时间
  • └ po_number
  • String
  • PO200057380
  • 订单编号
  • └ error_level
  • Number
  • 1
  • 错误级别
  • └ error_msg
  • String
  • 1
  • 错误信息
  • └ args
  • String
  • 1
  • 国际化参数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPurRcvInfoQueryRequest req = new AlibabaPurRcvInfoQueryRequest();
AlibabaPurRcvInfoQueryRequest.RcvInfoTopQuery obj1 = new AlibabaPurRcvInfoQueryRequest.RcvInfoTopQuery();
obj1.setRcvNumber("RT12345678");
req.setInfoTopQuery(obj1);
AlibabaPurRcvInfoQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_pur_rcv_info_query_response>
    <result>
        <success>true</success>
        <error_code>100</error_code>
        <content>
            <supplier_dto>
                <supplier_name>洪著测试haofan@alitest.com====测试</supplier_name>
                <supplier_id>628</supplier_id>
                <supplier_code>SU010612</supplier_code>
            </supplier_dto>
            <rcv_type>RECEIVE</rcv_type>
            <receiver>
                <work_no>WB054249</work_no>
                <user_name>徐x</user_name>
                <resign>false</resign>
            </receiver>
            <rcv_number>RT1000065173</rcv_number>
            <rcv_head_id>40186682160</rcv_head_id>
            <rcv_description>说明</rcv_description>
            <rcv_detail_url>https://procurement.alibaba.net/receipt/detail?rcvIdCode=150b8c7831fdce070b921102488294f2&amp;rcvId=40186682160</rcv_detail_url>
            <rcv_status>审批中</rcv_status>
            <received_amount>650</received_amount>
            <rcv_status_code>AUDITING</rcv_status_code>
            <workflow_logs>
                <workflow_logs>
                    <approver>
                        <work_no>WB12123</work_no>
                        <user_name>唧唧</user_name>
                        <resign>true</resign>
                    </approver>
                    <approval_role>提交申请</approval_role>
                    <attachments>
                        <file_dto>
                            <file_name>文件名</file_name>
                            <file_download_url>www.baidu.com</file_download_url>
                        </file_dto>
                    </attachments>
                    <comments>同意</comments>
                    <approve_time>1637843190000</approve_time>
                    <operation>提交申请</operation>
                </workflow_logs>
            </workflow_logs>
            <credit_note>1</credit_note>
            <execute_amount>650</execute_amount>
            <instance_id>3db22ca5-f0a1-4b93-8f6b-2ca62ea26bc4</instance_id>
            <is_allow_modify>false</is_allow_modify>
            <rcv_shipment_lines>
                <rcv_shipment_lines>
                    <item_name>天猫精灵-简化-xtc-2151</item_name>
                    <quantity>30</quantity>
                    <rcv_line_num>1</rcv_line_num>
                    <po_line_num>1</po_line_num>
                    <rcv_date>1637843174000</rcv_date>
                    <received_quantity>30</received_quantity>
                    <line_type>按数量</line_type>
                    <received_amount>390</received_amount>
                    <expense_month>2021-10</expense_month>
                    <rcv_line_id>2008599284181</rcv_line_id>
                </rcv_shipment_lines>
            </rcv_shipment_lines>
            <files>
                <file_dto>
                    <file_name>文件名</file_name>
                    <file_download_url>www.baidu.com</file_download_url>
                </file_dto>
            </files>
            <company>
                <code>T60</code>
                <name>南京淘宝软件有限公司</name>
                <id>1458</id>
            </company>
            <finish_date>2021-11-04</finish_date>
            <po_number>PO200057380</po_number>
        </content>
        <error_level>1</error_level>
        <error_msg>1</error_msg>
        <args>1</args>
    </result>
</alibaba_pur_rcv_info_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

返回
顶部