电子发票
1.store.einvoice.createreq 电子发票开票(开蓝和冲红)
请求参数
| 参数名 | 说明 |
| business_type | 默认:0。对于商家对个人开具,为0;对于商家对企业开具,为1; |
| platform | 电商平台代码 |
| tid | 电商平台对应的订单号 |
| serial_no | 开票流水号 |
| payee_address | 开票方地址 |
| payee_name | 开票方名称 |
| payee_operator | 开票人 |
| invoice_amount | 开票金额 |
| invoice_time | 开票日期 |
| invoice_type | 发票(开票)类型,蓝票blue,红票red,默认blue |
| payee_register_no | 收款方税务登记证号 |
| payer_name | 付款方名称, 对应发票台头 |
| sum_price | 合计金额 |
| sum_tax | 合计税额 |
| invoice_items | 电子发票明细 |
| normal_invoice_code | 原发票代码开红票传入 |
| normal_invoice_no | 原发票号码开红票传入 |
| provider_appkey | 开票服务商的APPKEY(可选) |
| proxy_appkey | 商家自己申请的放在开票代理客户端的appkey(可选) |
| erp_tid | erp中唯一单据(可选) |
| payee_bankaccount | 开票方银行及帐号(可选) |
| payer_register_no | 付款方税务登记证号。对企业开具电子发票时必填 |
| invoice_memo | 发票备注(可选) |
| payer_address | 消费者地址(可选) |
| payer_bankaccount | 付款方开票开户银行及账号(可选) |
| payer_email | 消费者电子邮箱(可选) |
| payer_phone | 消费者联系电话(可选) |
| payee_checker | 复核人(可选) |
| payee_receiver | 收款人(可选) |
| payee_phone | 收款方电话(可选) |
2.store.einvoice.create.result.get 电子发票开票后获取开票结果
请求参数
| 参数名 | 说明 |
| platform | 电商平台代码 |
| serial_no | 开票流水号 |
| tid | 电商平台对应的订单号 |
| payee_register_no | 收款方税务登记证号 |
3.store.einvoice.url.get 获取电子发票url地址
请求参数
| 参数名 | 说明 |
| node_id | 店铺节点号 |
| platform | 平台 |
| invoice_no | 发票号码 |
| tid | 订单号 |
| expire | 地址有效期 |
4.store.einvoice.invoice.get 查询已回传淘宝的电子发票
请求参数
5.store.einvoice.invoice.prepare 电子发票天猫状态更新
请求参数
| 参数名 | 说明 |
| tid | 订单号 |
| invoice_action_type | 开票操作类型 1 交易成功 2 退货、退款成功 3 电子换纸质 4 换发票内容 |
| invoice_type | 发票类型,1:蓝票,2:红票 |
| serial_no | 开票流水号 |
| invoice_title | 发票抬头 |
6.store.einvoice.detail.upload 电子发票回流天猫
请求参数
| 参数名 | 说明 |
| tid | 主订单id |
| invoice_code | 发票代码 |
| invoice_no | 发票号码 |
| invoice_file_data | 发票文件内容 目前只支持jpg,png,bmp,pdf格式 |
| invoice_type | 发票类型 1 蓝票 2 红票 |
| invoice_items | 电子发票明细 |
| serial_no | 开票流水号 |
| payee_register_no | 收款方税务登记号 |
| invoice_amount | 开票金额 |
| invoice_time | 开票日期 |
| payee_name | 开票方名称 |
| invoice_title | 发票抬头 |
| image_type | 图片类型 |
| qr_code | 二维码(可选) |
| anti_fake_code | 防伪码(可选) |
7.store.einvoice.apply.get 电子发票开票申请数据获取接口
请求参数
8.store.tmc.group.add 电子发票订阅消息添加分组
9.store.tmc.group.delete 电子发票订阅消息删除分组