<a name="menu">目录</a>

1. [添加/修改](#save)
2. [批量查询](#bulquery)
3. [单个查询](#query)
4. [删除](#delete)

## **<a name="save"> 保存发票内容</a>**
[返回到目录](#menu)
#### 参数格式  `JSON`
#### HTTP请求方式 `POST`

``` javascript

    {
        "action_process": "test",
        "action_type": "invoicecontentSave",
        "action_body": {
            "name": "总统孙",
            "isEnabled": 1
        }
    }

```

#### 返回结果
```javascript
    {
        "status":0,
        "msg":"success",
        "data":{
            "version":0,
            "name":"总统孙",
            "isEnabled":true,
            "id":"11444111776000520",
            "updated_at":"2019-10-10T08:51:00.939Z",
            "created_at":"2019-10-10T08:51:00.939Z"
        },
        "requestid":"dce6dba445304dd8b043ecb913851a31"
    }

```




## **<a name="invoicelist"> 发票列表</a>**
[返回到目录](#menu)
#### 参数格式  `JSON`
#### HTTP请求方式 `POST`

``` 
    javascript

    {
        "action_process": "test",
        "action_type": "invoiceList",
        "action_body": {
            currentPage:1, //非必填
            pageSize:10，//非必填
            name:xxx,//非必填（模糊查询）
            id:xxx　//非必填
        }
    }
    

```

#### 返回结果
```javascript
    {
        "count":2,
        "rows":[
            {
                "id":"11444116222000933",
                "name":"总统孙",
                "isEnabled":1,
                "created_at":"2019-10-10T10:05:06.000Z",
                "updated_at":"2019-10-10T10:05:06.000Z",
                "deleted_at":null
            },
            {
                "id":"11444116214000855",
                "name":"孙总统",
                "isEnabled":1,
                "created_at":"2019-10-10T10:04:58.000Z",
                "updated_at":"2019-10-10T10:04:58.000Z",
                "deleted_at":null
            }
        ],
        "requestid":"8557261ae1894ff2ba3a50b077f314e9"
    }

```


## **<a name="invoicecontent"> 发票明细</a>**
[返回到目录](#menu)
#### 参数格式  `JSON`
#### HTTP请求方式 `POST`

``` 
    javascript

    {
        "action_process": "test",
        "action_type": "invoicecontent",
        "action_body": {
            id:xxx　
        }
    }
    

```

#### 返回结果
```javascript
   {
    "status":0,
    "msg":"success",
    "data":{
        "id":"11444116222000933",
        "name":"总统孙",
        "isEnabled":true,
        "created_at":"2019-10-10T10:05:06.000Z",
        "updated_at":"2019-10-10T10:05:06.000Z",
        "deleted_at":null,
        "version":0
    },
    "requestid":"0a96be51bc2248469d8fb55d7b125dad"
}
```


## **<a name="invoicecontentDelete"> 删除发票</a>**
[返回到目录](#menu)
#### 参数格式  `JSON`
#### HTTP请求方式 `POST`

``` javascript

    {
        "action_process": "test",
        "action_type": "invoicecontentDelete",
        "action_body": {
            "ids":["xx","xxs"]
        }
    }

```

#### 返回结果
```javascript
   {"status":0,"msg":"success","data":1,"requestid":"b225c65307be4a53be99885f4b579241"}


```



