API接口文档

订单开票 - 初始化

创建于 2021-10-15 / 最近更新于 2021-10-15 / 93

简要描述

订单开票初始化

接口版本

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

请求URL

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

请求方式

POST

公共参数

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

请求参数

{
    "ids": "216",
    "type": "order"
}
参数名 是否必须 类型 默认值 描述
ids string 开票的订单id
type order 类型(order 订单)

返回示例

正确时返回

{
    "msg": "success",
    "code": 0,
    "data": {
        "base": {
            "order_success_start_time": "1",
            "order_add_max_time": "",
            "invoice_content_type": [
                "hello",
                "你好阿"
            ],
            "invoice_desc": [
                "hello",
                "你好阿"
            ],
            "can_invoice_type": [
                "0",
                "1",
                "2"
            ],
            "is_user_quick_select": "1",
            "is_order_submit_invoice": "1"
        },
        "data": {
            "id": "3",
            "user_id": "1",
            "business_type": "0",
            "status": "0",
            "total_price": "5357.45",
            "apply_type": "1",
            "invoice_type": "2",
            "invoice_content": "你好阿",
            "invoice_title": "上海纵之格科技有限公司",
            "invoice_code": "91310120MA1HWHB21C",
            "invoice_bank": "上海纵之格科技有限公司",
            "invoice_account": "121937969510301",
            "invoice_tel": "021-88888888",
            "invoice_address": "上海市奉贤区肖塘路255弄10号1层",
            "name": "龚哥哥",
            "tel": "13222222222",
            "email": "",
            "address": "上海市闵行区陈行路2388号5幢511",
            "electronic_invoice": null,
            "express_name": "",
            "express_number": "",
            "refuse_reason": "",
            "user_note": "备注信息哦",
            "add_time": "2021-10-15 15:39:34",
            "upd_time": ""
        },
        "save_base_data": {
            "total_price": "5357.45",
            "business_ids": "",
            "business_type": 0
        },
        "apply_type_list": [
            {
                "id": 0,
                "name": "个人"
            },
            {
                "id": 1,
                "name": "企业"
            }
        ],
        "invoice_content_list": [
            "hello",
            "你好阿"
        ],
        "can_invoice_type_list": [
            {
                "id": 0,
                "name": "增值税普通电子发票"
            },
            {
                "id": 1,
                "name": "增值税普通纸质发票"
            },
            {
                "id": 2,
                "name": "增值税专用纸质发票"
            }
        ]
    }
}

错误时返回

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

返回参数说明 -> data

参数名 是否必须 类型 描述
base array 插件基础配置
data array 已填写的发票信息
save_base_data array 基础信息
apply_type_list array 申请类型
invoice_content_list array 发票内容
can_invoice_type_list array 发票类型

备注

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

0 人点赞过