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

aliyun.prod.purchase.po.kp.query (供应商根据PO获取KP信息)

供应商根据PO获取KP信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
po_no String 必须 PO88888888 订单编号

响应参数

名称 类型 示例值 描述
result ActionResult 返回结果
  • content
  • PoBillableInfoTopOutDTO
  • 返回消息体
  • billable_info_details
  • BillableInfoDetailTopDTO []
  • KP信息返回列表
  • └ amount
  • String
  • 1.0000000000
  • 开票金额
  • └ billable_desc
  • String
  • 物品:测试数据,金额:1.00,数量:1.00
  • 开票说明
  • └ billable_no
  • String
  • KP单号
  • KP066666666
  • └ billable_type
  • String
  • EXPENSE
  • 开票类型: PREPAY(预付型), EXPENSE(费用型)
  • └ biz_no
  • String
  • RT8888888
  • 业务单号: RT/RTN/PP
  • └ confirmed_arrival_amount
  • String
  • 1.0000000000
  • 已匹配发票金额
  • └ currency_code
  • String
  • CNY
  • 币种
  • └ entry_amount
  • String
  • 1.0000000000
  • 录入金额
  • └ invoice_type
  • String
  • ORDINARY
  • 发票类型: SPECIAL 专票/NONE 无票/ORDINARY 普票
  • invoices
  • InvoiceTopDTO []
  • 发票对象列表
  • └ desc_status_desc
  • String
  • 认证成功
  • 发票状态描述
  • └ invoce_no
  • String
  • FAS1214123
  • 发票号码
  • └ reg_date
  • Date
  • 2019-01-01 00:00:00
  • 发票扫描时间
  • └ org_id
  • Number
  • 20229
  • 开票抬头公司ID
  • └ org_name
  • String
  • 杭州****有限公司
  • 开票抬头公司名称
  • └ precision
  • Number
  • 2
  • 精度
  • tax_info_dto
  • CompanyTaxInfoTopDTO
  • 税务信息对象
  • └ account_no
  • String
  • 123456789012345678
  • 银行账号
  • └ address
  • String
  • 浙江省杭州市西湖区
  • 地址
  • └ bank_name
  • String
  • 中国工商银行
  • 开户行
  • └ effective_date
  • Date
  • 2020-01-01
  • 生效日期
  • └ invoice_title
  • String
  • XXX公司
  • 发票抬头
  • └ org_id
  • Number
  • 1
  • 机构ID
  • └ phone_no
  • String
  • 联系方式
  • 联系方式
  • └ tax_no
  • String
  • 123456789
  • 税号
  • └ type
  • String
  • SMALL_SCALE
  • 类型:SMALL_SCALE-小规模纳税人 / GENERAL-一般纳税人
  • └ type_desc
  • String
  • 一般纳税人
  • 类型描述
  • └ tax_rate
  • String
  • 0.000000
  • 税率 整数型
  • └ po_no
  • String
  • PO88888888
  • 订单编号
  • receive_info
  • ReceiveInfoTopDTO
  • 发票邮寄信息对象
  • └ address
  • String
  • 杭州市**区**路**号****小邮局
  • 收件人地址
  • └ postcode
  • String
  • 710076
  • 收件人邮编
  • └ receive
  • String
  • 阿里巴巴财务结算组
  • 收件人
  • └ tax_invoice_post_email
  • String
  • 杭州市**区**路**号****小邮局
  • 电子发票邮寄地址
  • └ telephone
  • String
  • 0571-26883163
  • 收件人电话
  • └ error_code
  • String
  • 0000000
  • 异常编码,可能为空
  • └ error_msg
  • String
  • 系统异常
  • 错误信息
  • └ success
  • String
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliyunProdPurchasePoKpQueryRequest req = new AliyunProdPurchasePoKpQueryRequest();
req.setPoNo("PO88888888");
AliyunProdPurchasePoKpQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliyun_prod_purchase_po_kp_query_response>
    <result>
        <content>
            <billable_info_details>
                <billable_info_detail_top_d_t_o>
                    <amount>1.0000000000</amount>
                    <billable_desc>物品:测试数据,金额:1.00,数量:1.00</billable_desc>
                    <billable_no>KP单号</billable_no>
                    <billable_type>EXPENSE</billable_type>
                    <biz_no>RT8888888</biz_no>
                    <confirmed_arrival_amount>1.0000000000</confirmed_arrival_amount>
                    <currency_code>CNY</currency_code>
                    <entry_amount>1.0000000000</entry_amount>
                    <invoice_type>ORDINARY</invoice_type>
                    <invoices>
                        <invoice_top_d_t_o>
                            <desc_status_desc>认证成功</desc_status_desc>
                            <invoce_no>FAS1214123</invoce_no>
                            <reg_date>2019-01-01 00:00:00</reg_date>
                        </invoice_top_d_t_o>
                    </invoices>
                    <org_id>20229</org_id>
                    <org_name>杭州****有限公司</org_name>
                    <precision>2</precision>
                    <tax_info_dto>
                        <account_no>123456789012345678</account_no>
                        <address>浙江省杭州市西湖区</address>
                        <bank_name>中国工商银行</bank_name>
                        <effective_date>2020-01-01</effective_date>
                        <invoice_title>XXX公司</invoice_title>
                        <org_id>1</org_id>
                        <phone_no>联系方式</phone_no>
                        <tax_no>123456789</tax_no>
                        <type>SMALL_SCALE</type>
                        <type_desc>一般纳税人</type_desc>
                    </tax_info_dto>
                    <tax_rate>0.000000</tax_rate>
                </billable_info_detail_top_d_t_o>
            </billable_info_details>
            <po_no>PO88888888</po_no>
            <receive_info>
                <address>杭州市**区**路**号****小邮局</address>
                <postcode>710076</postcode>
                <receive>阿里巴巴财务结算组</receive>
                <tax_invoice_post_email>杭州市**区**路**号****小邮局</tax_invoice_post_email>
                <telephone>0571-26883163</telephone>
            </receive_info>
        </content>
        <error_code>0000000</error_code>
        <error_msg>系统异常</error_msg>
        <success>true</success>
    </result>
</aliyun_prod_purchase_po_kp_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

返回
顶部