API接口文档

已开票 - 详情

创建于 2021-10-15 / 最近更新于 2021-10-15 / 1095
字体: [默认] [大] [更大]

简要描述

已开票列表

接口版本

版本号 制定人 制定日期 修订日期
1.0.0 Devil 2020-09-29

请求URL

plugins/index&pluginsname=invoice&pluginscontrol=user&pluginsaction=detail

请求方式

POST

公共参数

参数名 是否必须 类型 默认值 描述
application string web 请求应用、参考公共中详解
application_client_type string pc 请求客户端、参考公共中详解
token string token

请求参数

{
    "id": 1
}
参数名 是否必须 类型 默认值 描述
id int 发票id

返回示例

正确时返回

{
    "msg": "success",
    "code": 0,
    "data": {
        "data": {
            "id": "3",
            "user_id": "1",
            "business_type": "0",
            "status": "2",
            "total_price": "5357.45",
            "apply_type": "1",
            "invoice_type": "0",
            "invoice_content": "hello",
            "invoice_title": "上海纵之格科技有限公司",
            "invoice_code": "56456",
            "invoice_bank": "",
            "invoice_account": "",
            "invoice_tel": "",
            "invoice_address": "",
            "name": "",
            "tel": "",
            "email": "",
            "address": "",
            "electronic_invoice": [
                {
                    "title": "20200625954796565.pdf",
                    "url": "https://d1.shopxo.vip/static/upload/file/plugins_invoice/electronic/0/3/2021/10/15/1634288815548853.pdf"
                },
                {
                    "title": "20200625954801040.pdf",
                    "url": "https://d1.shopxo.vip/static/upload/file/plugins_invoice/electronic/0/3/2021/10/15/1634288815987996.pdf"
                }
            ],
            "express_name": "",
            "express_number": "",
            "refuse_reason": "",
            "user_note": "备注信息哦",
            "add_time": "2021-10-15 15:39:34",
            "upd_time": "2021-10-15 17:06:57",
            "business_type_name": "订单",
            "status_name": "已开票",
            "apply_type_name": "企业",
            "invoice_type_name": "增值税普通电子发票"
        }
    }
}

错误时返回

{
    "msg": "error",
    "code": -1,
    "data": []
}

返回参数说明 -> data

参数名 是否必须 类型 描述
invoice_type string 发票类型
apply_type string 申请类型
invoice_content string 发票内容
invoice_title string 发票抬头
ids string 订单id
invoice_account string 企业信用代码编号
invoice_address string 企业注册地址
invoice_bank string 企业开户行名称
invoice_code string 企业注册地址
invoice_tel string 企业联系电话
name string 联系人
tel string 联系电话
address string 细地址
type string 类型(订单order)
user_note string 备注信息
express_name string 快递名称
express_number string 快递单号
electronic_invoice array 已开具的电子发票

备注

更多返回错误代码请看首页的错误代码描述

1 人点赞过