- print
- invoice
- FileController
- <p>
- 销方发票列表查询POST
- 查询预制发票列表POST
- 销方发票列表导出POST
- 查询预制发票列表(湖南)POST
- 根据excel中的发票号码分页查询发票信息POST
- 导出预制发票列表POST
- 发票操作POST
- 预制发票明细查询GET
- 编辑预制发票明细行POST
- 获取开票人POST
- 批量打印POST
- 确认开票POST
- 批量打印销货清单POST
- 确认开票批量POST
- 发送邮件前校验POST
- 模糊查询POST
- 发送邮件前校验(新款)POST
- 发送邮件POST
- 折让分摊POST
- 测试链接哪个数据库GET
- 根据批次号查询预制发票POST
- 发送邮件(新款)POST
- 打印通知POST
- 预制发票取消POST
- 销方发票详情查询GET
- 预制发票解锁POST
- 通过销项发票查询进项发票信息POST
- 批量确认取消POST
- 预制发票明细查询GET
- 批量确认重试POST
- 手工下载pdf文件POST
- 手工从百旺同步发票数据POST
- 查询销项发票用途POST
- 绑定手工开具的发票POST
- 历史发票导入-新POST
- 二维码确认开票POST
- 历史发票导入-测试POST
- 发票部分红冲POST
- 允许关联的发票POST
- InvoiceDocController
- SaleInvoiceController
- InvoiceCountController
- InvoiceNotifyController
- InvoiceDetailsController
- InvoiceRedInfoController
- ExportPreInvoiceController
- KVConfigController
- 非业务接口,运维使用
- 发票回调接收第三方供应商发票操作结果
- cms-order
- 手工开具
- 组票开票
- 分组模板
- 手工开票
- 销项发票推送
- CompanyChannelConfigController
- PreInvoiceMaintainController
- QrInvoiceController
- AutoInvoiceRuleController
- 第三方接口配置Controller
- 订单相关操作controller
- 对账相关操作controller
- InvoiceErrorStrategyController
- PrintAppController
- 发票提供给业务系统相关操作controller
- 乐企开票相关接口
- OrderOperationLogController
- 系统配置相关操作controller
- 文件上传重置retryCountPOST
- 推送cms等业务系统POST
- 打印任务查询POST
- 打印POST
- 乐企发票生成POST
- 调文件中心接口POST
- 打印任务POST
组票开票
POST
/invoice/makeOut/group
注:暂定前端生成开票流水号
请求参数
Header 参数
Biz-Type
string
可选
默认值:
{{Biz-Type}}
Gksk-Access-Token
string
可选
默认值:
{{Gksk-Access-Token}}
Gksk-Tenant-Code
string
可选
默认值:
{{Gksk-Tenant-Code}}
Ou
string
可选
默认值:
60
Taxno
string
可选
默认值:
{{Taxno}}
token
string
可选
默认值:
{{token}}
tenantId
string
可选
默认值:
{{tenantId}}
systemSource
string
可选
默认值:
{{systemSource}}
Body 参数application/json
array of:
sellerTaxNo
string
销方纳税人识别号
sellerName
string
销方单位名称
sellerBankName
string | null
销方银行名称
sellerBankAccount
string | null
销方银行账号
sellerAddress
string | null
销方地址
sellerPhone
string | null
销方电话
示例值:
purchaserType
string
必需
默认值:
1002
示例值:
1002
purchaserTaxNo
string | null
购方纳税人识别号
示例值:
purchaserName
string | null
购方单位名称
示例值:
purchaserBankName
string | null
购方银行名称
示例值:
purchaserBankAccount
string | null
购方银行账号
示例值:
purchaserAddress
string | null
购方地址
示例值:
purchaserPhone
string | null
购方电话
示例值:
drawer
string
开票人
applicant
string | null
开票申请人
示例值:
checker
string | null
复核人
示例值:
payee
string | null
收款人
示例值:
invoiceType
string
必需
1002 红票
默认值:
1001
示例值:
1001
invoiceClassCode
string
必需
invoiceMedium
string
必需
默认值:
1002
示例值:
1002
invoiceRemarks
string | null
开票备注
示例值:
amountWithoutTax
number | null
不含税金额
taxAmount
number | null
税额
totalAmount
number | null
含税总金额
template
string | null
开票模板
goodsTaxRate
number | null
税率
id
integer | null
前端标识id
specialFlag
string | null
毒麻品
quantitateFlag
string | null
带量商品
orderDetailList
array[object (OrderDetailRequest) {67}] | null
可选
lineNo
integer | null
可选
orderNo
string | null
订单编码
sortNo
string | null
开票顺序
orderGroupNo
string | null
订单组号
sellerTaxNo
string | null
销方纳税人识别号
sellerName
string | null
销方单位名称
sellerBankName
string | null
销方银行名称
sellerBankAccount
string | null
销方银行账号
sellerAddress
string | null
销方地址
sellerPhone
string | null
销方电话
sellerTitleCode
string | null
销方开票代码
purchaseTaxNo
string | null
购方纳税人识别号
purchaseName
string | null
购方单位名称
purchaseBankName
string | null
购方银行名称
purchaseBankAccount
string | null
购方银行账号
purchaseAddress
string | null
购方地址
purchasePhone
string | null
购方电话
custCode
string | null
可选
custAddressCode
string | null
客户收货地址
custAddress
string | null
可选
goodsTaxCode
string | null
商品税收编码
goodsCode
string | null
可选
sinopharmId
string | null
国控码
goodsName
string | null
商品名称
示例值:
goodsSpec
string | null
规格型号
示例值:
goodsUnit
string | null
计量单位
示例值:
goodsQuantity
number | null
商品数量
goodsPriceWithoutTax
number | null
商品不含税单价
amountWithoutTax
number | null
商品不含税总价
taxAmount
number | null
可选
goodsTaxRate
number | null
税率
goodsTotalAmount
number | null
含税金额
goodsAbbreviation
string | null
商品简称
batchNo
string | null
商品批次
示例值:
zeroTaxFlag
string | null
零税率标识
示例值:
taxPreCon
string | null
优惠策略
示例值:
specialFlag
string | null
毒麻品
示例值:
quantitateFlag
string | null
带量商品
示例值:
payee
string | null
收款人
示例值:
remakes
string | null
订单备注
示例值:
availableDate
string | null
释放日期
invoiceClassCode
string | null
分类编码
示例值:
invoiceMedium
string | null
发票介质
示例值:
orderType
string | null
可选
示例值:
sendAddressId
string | null
送货地址id
示例值:
sendAddress
string | null
送货地址
示例值:
saleArea
string | null
销售区域
示例值:
salesman
string | null
销售员
示例值:
orderId
string | null
订单id
示例值:
orderStatus
string | null
订单状态
invPostFlag
string | null
可选
示例值:
custTitleId
string | null
可选
示例值:
ownedCustomer
string | null
所属客户
示例值:
businessType
string | null
开票特殊字段
示例值:
goodsLineNo
integer | null
可选
goodsPriceWithTax
number | null
可选
deduction
number | null
可选
taxPre
string | null
可选
示例值:
taxVersion
string | null
可选
taxDeduction
number | null
可选
goodsLineNature
string | null
可选
示例值:
purchaserType
string | null
可选
示例值:
invoiceType
string | null
可选
示例值:
taxationMethod
string | null
可选
saleDeptId
string | null
销售部门id
示例值:
seqNo
string | null
可选
示例值:
customRemark
string | null
自定义开票备注
示例值:
saleInvoiceMakeOutRuleDto
object (SaleInvoiceMakeOutRuleDto)
可选
combination
string | null
可选
默认值:
1001
示例值:
1001
invoiceRemarksContent
array[string] | null
可选
mekeoutMode
string | null
可选
默认值:
1
示例值:
1
customRemark
string | null
自定义备注
serialNo
string
开票流水号
reasonCode
string | null
可选
红票 红冲原因
invoiceMode(税控) + invoiceclasscode(专普) + invoiceType(红冲)
税控专票电发票:红冲原因代码(普票必填,1001-销货退回 1002-开票有误 1003-服务中止 10044-销售折让
invoiceMode(全电) + invoiceType(开具)
全电开具:小规模开具3%发票理由"
1:开具发票为2022年3月31日前发生纳税义务的业务
2:前期已开具相应征收率发票,发生销售折让、中止或者退回等情形需要开具红字发票,或者开票有误需要重新开具
3:因为实际经营业务需要,放弃享受免征增值税政策
invoiceMode(全电) + invoiceType(红冲)
全电红冲:冲红原因代码",//01:开票有误02:销货退回03:服务中止04:销售折让
示例值:
originInvoiceNo
string | null
原发票号码(红冲)
示例值:
示例
[
{
"sellerTaxNo": "string",
"sellerName": "string",
"sellerBankName": "string",
"sellerBankAccount": "string",
"sellerAddress": "string",
"sellerPhone": "",
"purchaserType": "1002",
"purchaserTaxNo": "",
"purchaserName": "",
"purchaserBankName": "",
"purchaserBankAccount": "",
"purchaserAddress": "",
"purchaserPhone": "",
"drawer": "string",
"applicant": "",
"checker": "",
"payee": "",
"invoiceType": "1001",
"invoiceClassCode": "string",
"invoiceMedium": "1002",
"invoiceRemarks": "",
"amountWithoutTax": 0,
"taxAmount": 0,
"totalAmount": 0,
"template": "string",
"goodsTaxRate": 0,
"id": 0,
"specialFlag": "string",
"quantitateFlag": "string",
"orderDetailList": [
{
"lineNo": 0,
"orderNo": "string",
"sortNo": "string",
"orderGroupNo": "string",
"sellerTaxNo": "string",
"sellerName": "string",
"sellerBankName": "string",
"sellerBankAccount": "string",
"sellerAddress": "string",
"sellerPhone": "string",
"sellerTitleCode": "string",
"purchaseTaxNo": "string",
"purchaseName": "string",
"purchaseBankName": "string",
"purchaseBankAccount": "string",
"purchaseAddress": "string",
"purchasePhone": "string",
"custCode": "string",
"custAddressCode": "string",
"custAddress": "string",
"goodsTaxCode": "string",
"goodsCode": "string",
"sinopharmId": "string",
"goodsName": "",
"goodsSpec": "",
"goodsUnit": "",
"goodsQuantity": 0,
"goodsPriceWithoutTax": 0,
"amountWithoutTax": 0,
"taxAmount": 0,
"goodsTaxRate": 0,
"goodsTotalAmount": 0,
"goodsAbbreviation": "string",
"batchNo": "",
"zeroTaxFlag": "",
"taxPreCon": "",
"specialFlag": "",
"quantitateFlag": "",
"payee": "",
"remakes": "",
"availableDate": "string",
"invoiceClassCode": "",
"invoiceMedium": "",
"orderType": "",
"sendAddressId": "",
"sendAddress": "",
"saleArea": "",
"salesman": "",
"orderId": "",
"orderStatus": "string",
"invPostFlag": "",
"custTitleId": "",
"ownedCustomer": "",
"businessType": "",
"goodsLineNo": 0,
"goodsPriceWithTax": 0,
"deduction": 0,
"taxPre": "",
"taxVersion": "string",
"taxDeduction": 0,
"goodsLineNature": "",
"purchaserType": "",
"invoiceType": "",
"taxationMethod": "string",
"saleDeptId": "",
"seqNo": "",
"customRemark": ""
}
],
"saleInvoiceMakeOutRuleDto": {
"combination": "1001",
"invoiceRemarksContent": [
"string"
],
"mekeoutMode": "1",
"customRemark": "string"
},
"serialNo": "string",
"reasonCode": "",
"originInvoiceNo": ""
}
]
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/invoice/makeOut/group' \
--header 'Biz-Type: {{Biz-Type}}' \
--header 'Gksk-Access-Token: {{Gksk-Access-Token}}' \
--header 'Gksk-Tenant-Code: {{Gksk-Tenant-Code}}' \
--header 'Ou: 60' \
--header 'Taxno: {{Taxno}}' \
--header 'token: {{token}}' \
--header 'tenantId: {{tenantId}}' \
--header 'systemSource: {{systemSource}}' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"sellerTaxNo": "string",
"sellerName": "string",
"sellerBankName": "string",
"sellerBankAccount": "string",
"sellerAddress": "string",
"sellerPhone": "",
"purchaserType": "1002",
"purchaserTaxNo": "",
"purchaserName": "",
"purchaserBankName": "",
"purchaserBankAccount": "",
"purchaserAddress": "",
"purchaserPhone": "",
"drawer": "string",
"applicant": "",
"checker": "",
"payee": "",
"invoiceType": "1001",
"invoiceClassCode": "string",
"invoiceMedium": "1002",
"invoiceRemarks": "",
"amountWithoutTax": 0,
"taxAmount": 0,
"totalAmount": 0,
"template": "string",
"goodsTaxRate": 0,
"id": 0,
"specialFlag": "string",
"quantitateFlag": "string",
"orderDetailList": [
{
"lineNo": 0,
"orderNo": "string",
"sortNo": "string",
"orderGroupNo": "string",
"sellerTaxNo": "string",
"sellerName": "string",
"sellerBankName": "string",
"sellerBankAccount": "string",
"sellerAddress": "string",
"sellerPhone": "string",
"sellerTitleCode": "string",
"purchaseTaxNo": "string",
"purchaseName": "string",
"purchaseBankName": "string",
"purchaseBankAccount": "string",
"purchaseAddress": "string",
"purchasePhone": "string",
"custCode": "string",
"custAddressCode": "string",
"custAddress": "string",
"goodsTaxCode": "string",
"goodsCode": "string",
"sinopharmId": "string",
"goodsName": "",
"goodsSpec": "",
"goodsUnit": "",
"goodsQuantity": 0,
"goodsPriceWithoutTax": 0,
"amountWithoutTax": 0,
"taxAmount": 0,
"goodsTaxRate": 0,
"goodsTotalAmount": 0,
"goodsAbbreviation": "string",
"batchNo": "",
"zeroTaxFlag": "",
"taxPreCon": "",
"specialFlag": "",
"quantitateFlag": "",
"payee": "",
"remakes": "",
"availableDate": "string",
"invoiceClassCode": "",
"invoiceMedium": "",
"orderType": "",
"sendAddressId": "",
"sendAddress": "",
"saleArea": "",
"salesman": "",
"orderId": "",
"orderStatus": "string",
"invPostFlag": "",
"custTitleId": "",
"ownedCustomer": "",
"businessType": "",
"goodsLineNo": 0,
"goodsPriceWithTax": 0,
"deduction": 0,
"taxPre": "",
"taxVersion": "string",
"taxDeduction": 0,
"goodsLineNature": "",
"purchaserType": "",
"invoiceType": "",
"taxationMethod": "string",
"saleDeptId": "",
"seqNo": "",
"customRemark": ""
}
],
"saleInvoiceMakeOutRuleDto": {
"combination": "1001",
"invoiceRemarksContent": [
"string"
],
"mekeoutMode": "1",
"customRemark": "string"
},
"serialNo": "string",
"reasonCode": "",
"originInvoiceNo": ""
}
]'
返回响应
🟢200成功
application/json
Body
com.sinopharm.invoice.dto.response.Response
code
string | null
可选
message
string | null
可选
data
object ()
可选
time
string | null
可选
示例
{
"code": "",
"message": "",
"data": {},
"time": ""
}