二、查询商户合作信息
## 1.查询企业合作主体,发票类目等信息
>d 通过该接口可获取公司的可开发票列表,以及所拥有主体列表,无需频繁请求。请求到之后保存自己库即可。当签署主体信息有变更。或者发票内容有调整重新请求接口即可。
#### 接口地址:/open/api/v1/selfRegistered/queryCompanyInfo
#### 请求方式:POST
#### 请求参数说明:无需传任何参数
#### 接口响应参数说明:
|参数名称|参数含义| 数据类型|是否必有|参数备注|
|-|-|-|-|-|
|source|所属业务线|Integer|是|2:轻税业务 3:账管家业务 4:云纳税|
|mainstayId|合作主体|Integer|是||
|name|合作主体名称|String|是||
|companyName|商户名称|String|是|为了兼容新老用户,所以最外层新增了companyName,返回内容中有两个companyName 取任意一个即可|
|industryCode|所属行业code|String|是||
|industryName|所属行业名称|String|是||
|invoiceCode|发票编码|String|是||
|invoiceContent|发票内容|String|是||
|taxRate|合同税费|String|否|如果是众包模式则该字段必有值,serviceTaxRate字段值为null|
|serviceTaxRate|服务费税率|JSON|否|示例{"key":value} key代表个税算法(0:累进制,1:核定制 2:双定制) value代表服务费税率,当合作模式为直营的话,该字段必有值,taxRate字段值为空字符串|
>d 示例数据结构如下
```json
[{
"akMainstayOpResponses": [{
"invoiceOpResponseList": [{
"industryCode": "ZXBYFW",
"industryName": "装卸搬运服务",
"invoiceCode": "WLFZFWXSZXF",
"invoiceContent": "物流辅助服务**运输装卸费"
}],
"mainstayId": 主体ID,
"name": "主体2",
"companyName":"xxxx有限公司",
"serviceTaxRate":null, //此处因为是众包模式,所以服务费税率没有
"taxRate":0.01 //此处因为是众包,所以合同税费有值
}, {
"invoiceOpResponseList": [{
"industryCode": "ZXBYFW",
"industryName": "装卸搬运服务",
"invoiceCode": "WLFZFWXSZXF",
"invoiceContent": "物流辅助服务**运输装卸费"
}],
"mainstayId": 主体Id,
"name": "主体3",
"companyName":"xxxx有限公司",
"serviceTaxRate":{
"0":0.12, 累进制服务费税率为 0.012
"2":0.013 双定制服务费税率为0.013
},
"taxRate":null //此处因为是直营,所以合同税费为null
}, {
"invoiceOpResponseList": [{ //发票列表
"industryCode": "ZXBYFW",
"industryName": "装卸搬运服务",
"invoiceCode": "WLFZFWXSZXF",
"invoiceContent": "物流辅助服务**运输装卸费"
}, {
"industryCode": "ZXBYFW",
"industryName": "装卸搬运服务",
"invoiceCode": "WLFZFWZXBYFW",
"invoiceContent": "物流辅助服务*装卸搬运服务"
}],
"mainstayId": 主体ID,
"name": "主体1",
"serviceTaxRate":null, //此处因为是众包模式,所以服务费税率没有
"taxRate":0.01 //此处因为是众包,所以合同税费有值
}],
"source": 3 //所属业务线 账管家
}, {
"akMainstayOpResponses": [{
"invoiceOpResponseList": [{
"industryCode": "YXTG_01",
"industryName": "营销推广",
"invoiceCode": "XDFWCHFWF",
"invoiceContent": "现代服务*策划服务费"
}, {
"industryCode": "YXTG_01",
"industryName": "营销推广",
"invoiceCode": "XDFWTGFWF",
"invoiceContent": "现代服务*推广服务费"
}, {
"industryCode": "YXTG_01",
"industryName": "营销推广",
"invoiceCode": "XDFWYXFWF",
"invoiceContent": "现代服务*营销服务费"
}, {
"industryCode": "KJHY_01",
"industryName": "科技行业",
"invoiceCode": "XXJSFWJSFWF",
"invoiceContent": "信息技术服务*技术服务费"
}],
"mainstayId": 主体ID,
"companyName":"xxxx有限公司",
"name": "主体1",
"serviceTaxRate":null, //此处因为是众包模式,所以服务费税率没有
"taxRate":0.01 //此处因为是众包,所以合同税费有值
}, {
"invoiceOpResponseList": [{
"industryCode": "WLGW_02",
"industryName": "管理&顾问",
"invoiceCode": "JZZXFWZXFWF",
"invoiceContent": "鉴证咨询服务*咨询服务费"
}, {
"industryCode": "YXTG_02",
"industryName": "营销推广",
"invoiceCode": "XDFWCHFWF",
"invoiceContent": "现代服务*策划服务费"
}],
"mainstayId":主体Id,
"companyName":"xxxx有限公司",
"name": "主体2"
}, {
"invoiceOpResponseList": [{
"industryCode": "WHZB_03",
"industryName": "网红&直播",
"invoiceCode": "XDFWHLWXXFW",
"invoiceContent": "现代服务*互联网信息服务"
}],
"mainstayId": 主体Id,
"name": "主体3",
"companyName":"xxxx有限公司",
"serviceTaxRate":{
"0":0.12, 累进制服务费税率为 0.012
"2":0.013 双定制服务费税率为0.013
},
"taxRate":null //此处因为是直营,所以合同税费为null
}],
"source": 2, //所属业务线 轻税
"companyName":"xxxx有限公司" //跟里面的companyName是一致的,为了兼容新老用户,所以最外层新增了companyName
}]
```