invoice.getList 发票列表

详细描述

获取订单发票的信息列表

应用级参数

参数名称 是否必要 类型 描述
mode string 开票方式 1:电子发票 ; 0:纸质发票 ;不填不区分
is_status string 开票状态 1:已开票; 0:未发票 ; 2:已作废 ;不填不区分
start_time date 开始时间(发票创建时间) 例如2012-12-08 18:50:30
end_time date 结束时间(发票创建时间) 例如2012-12-08 18:50:30
page_no number 页码
page_size number 每页条数(最大100条)

返回结果

注意: 已经做过特殊字符处理的字段如下: [‘list’][‘product’][‘name’], [‘list’][‘product’][‘order_items’][‘name’]

XML数据,例:

成功

<response>
  <list>
    <id>16</id>
    <order_id>22</order_id>
    <order_bn>201608011510005294</order_bn>
    <type_id>0</type_id>
    <mode><![CDATA[纸质发票]]></mode>
    <amount>12.000</amount>
    <cost_tax>2.550</cost_tax>
    <tax_rate>17</tax_rate>
    <title><![CDATA[haha01]]></title>
    <is_status><![CDATA[已开票]]></is_status>
    <sync>0</sync>
    <is_print>1</is_print>
    <invoice_code/>
    <invoice_no><![CDATA[fapiaohao01]]></invoice_no>
    <remarks><![CDATA[备注内容]]></remarks>
    <operator>1</operator>
    <print_num>1</print_num>
    <create_time>1470036810</create_time>
    <dateline>1470037135</dateline>
    <update_time>1470037135</update_time>
    <tax_company><![CDATA[王俊]]></tax_company>
    <ship_area><![CDATA[上海 上海市 普陀区]]></ship_area>
    <ship_addr><![CDATA[上海 上海市 普陀区曹杨路]]></ship_addr>
    <ship_tel>13918458888</ship_tel>
    <ship_tax><![CDATA[]]></ship_tax>
    <ship_bank><![CDATA[]]></ship_bank>
    <ship_bank_no><![CDATA[]]></ship_bank_no>
    <payee_name><![CDATA[电子 发票开发]]></payee_name>
    <tax_no>440300568519737</tax_no>
    <address><![CDATA[曹杨路]]></address>
    <telephone>13918458888</telephone>
    <payee_operator><![CDATA[王俊]]></payee_operator>
    <bank><![CDATA[建行]]></bank>
    <bank_no>20020</bank_no>
    <content><![CDATA[礼品]]></content>
    <product>
      <obj_id>26</obj_id>
      <obj_alias><![CDATA[goods]]></obj_alias>
      <name><![CDATA[销售物料01]]></name>
      <price>10.000</price>
      <pmt_price>0.000</pmt_price>
      <sale_price>10.000</sale_price>
      <quantity>1</quantity>
      <order_items>
        <item_id>24</item_id>
        <name><![CDATA[基础物料01]]></name>
        <price>10.000</price>
        <pmt_price>0.000</pmt_price>
        <sale_price>10.000</sale_price>
        <nums>1</nums>
        <addon>
          <product_attr/>
        </addon>
      </order_items>
    </product>
    <shop_name><![CDATA[淘嗨]]></shop_name>
    <shop_id><![CDATA[c9806ea45153df1fead3fc91d7dc4a68]]></shop_id>
  </list>
</response>
json数据,例:

成功

{
    "response": {
        "list": [
            {
                "id": "16",
                "order_id": "22",
                "order_bn": "201608011510005294",
                "type_id": "0",
                "mode": "纸质发票",
                "amount": "12.000",
                "cost_tax": "2.550",
                "tax_rate": "17",
                "title": "haha01",
                "is_status": "已开票",
                "sync": "0",
                "is_print": "1",
                "invoice_code": null,
                "invoice_no": "fapiaohao01",
                "remarks": "备注内容",
                "operator": "1",
                "print_num": "1",
                "create_time": "1470036810",
                "dateline": "1470037135",
                "update_time": "1470037135",
                "tax_company": "王俊",
                "ship_area": "上海 上海市 普陀区",
                "ship_addr": "上海 上海市 普陀区曹杨路",
                "ship_tel": "13918458888",
                "ship_tax": "",
                "ship_bank": "",
                "ship_bank_no": "",
                "payee_name": "电子 发票开发",
                "tax_no": "440300568519737",
                "address": "曹杨路",
                "telephone": "13918458888",
                "payee_operator": "王俊",
                "bank": "建行",
                "bank_no": "20020",
                "content": "礼品",
                "product": [
                    {
                        "obj_id": "26",
                        "obj_alias": "goods",
                        "name": "销售物料01",
                        "price": "10.000",
                        "pmt_price": "0.000",
                        "sale_price": "10.000",
                        "quantity": "1",
                        "order_items": [
                            {
                                "item_id": "24",
                                "name": "基础物料01",
                                "price": "10.000",
                                "pmt_price": "0.000",
                                "sale_price": "10.000",
                                "nums": "1",
                                "addon": {
                                    "product_attr": null
                                }
                            }
                        ]
                    }
                ],
                "shop_name": "淘嗨",
                "shop_id": "c9806ea45153df1fead3fc91d7dc4a68"
            }
        ]
    }
}

沪ICP备05002918号

© 2003-2017 ShopEx,Inc.All rights reserved.