- 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
/invoiceRedInfo/redInfoApply
2、判断该蓝票是否正在红冲
3、调用红冲套件
请求参数
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
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
购方电话
示例值:
invoiceClassCode
string
必需
terminalNo
string | null
可选
税控开票 /全电开票
示例值:
originInvoiceCode
string | null
可选
示例值:
originInvoiceNo
string
原发票号码(红冲)
示例值:
originInvoiceDate
string | null
可选
示例值:
redInfoNo
string | null
红字信息表编码
示例值:
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:销售折让
示例值:
invoiceRemarks
string | null
开票备注
示例值:
amountWithoutTax
number
合计金额
taxAmount
number
合计税额
totalAmount
number
含税总金额
invoiceTotalAmount
number
原蓝票合计金额
invoiceTotalTax
number
原蓝票合计税额
invoiceTotalAmountTax
number
原蓝票价税合计
serialNo
string | null
可选
originSerialNo
string | null
原蓝票开票流水号
deduction
number | null
折扣金额
默认值:
new BigDecimal(0)
示例值:
new BigDecimal(0)
detailList
array[object (SaleInvoiceMakeOutDetailRequestDto) {36}]
必需
orderId
integer | null
订单id
orderGroupNo
string | null
订单组号
orderNo
string | null
订单编号
示例值:
businessType
string | null
订单类型
示例值:
goodsLineNo
string
发票明细行号
goodsTaxCode
string
商品税收编码
goodsCode
string | null
商品代码 业务编码
示例值:
sinopharmId
string | null
国控码
示例值:
goodsName
string
商品名称
goodsAbbreviation
string | null
商品简称
示例值:
batchNo
string | null
商品批次
示例值:
goodsSpec
string | null
规格型号
示例值:
goodsUnit
string | null
计量单位
示例值:
goodsQuantity
number | null
数量
goodsPriceWithoutTax
number | null
商品不含税单价
goodsPriceWithTax
number | null
商品含税单价
amountWithoutTax
number | null
不含税金额
taxAmount
number | null
税额
deduction
number | null
可选
默认值:
new BigDecimal(0)
示例值:
new BigDecimal(0)
goodsTaxRate
number
税率
goodsTotalAmount
number | null
含税总金额
zeroTaxFlag
string | null
可选
1001 普通零税率
1002 不征增值税
1003 出口免税或者其他免税增值政策
默认值:
1000
示例值:
1000
taxPre
string | null
可选
1001 无优惠
1002 存在优惠正常
默认值:
1001
示例值:
1001
taxPreCon
string | null
可选
优惠政策标识为1002时必填,值为:
1001 免税,
1002 100%先征后退,
1003 50%先征后退,
1004 不征税,
1005 先征后退,
1006 即征即退100%,
1007 即征即退30%,
1008 即征即退50%,
1009 即征即退70%,
2001 按3%易征收,
2002 按5%简易征收,
2003 按5%简易征收减按1.5%计征,
2004 稀土产品,
2005 简易征收,
2006 超税负12%即征即退,
2007 超税负3%即征即退,
2007 超税负8%即征即退
示例值:
taxVersion
string | null
税编版本
示例值:
taxDeduction
number | null
扣除额
默认值:
new BigDecimal(0)
示例值:
new BigDecimal(0)
goodsLineNature
string | null
发票行性质
默认值:
1001
示例值:
1001
sendAddress
string | null
送货地址
示例值:
purchaseName
string | null
客户名称
示例值:
quantitateFlag
string | null
带量商品
saleDeptName
string | null
销售部门
salesman
string | null
销售员
billingFlag
string | null
可选
relativeOrderNo
string | null
可选
availableDate
string | null
可选
ownedCustomer
string | null
所属客户
callbackUrl
string | null
回调地址
示例值:
serviceDesc
object (SpecialService)
附加明细、服务要素
logisticsDetailList
array[object (LogisticsDetailDto) {6}] | null
货物运输服务明细
buildService
object (BuildServiceDto)
建筑服务
reSaleService
object (ReSaleServiceDto)
不动产销售服务
rehHireService
object (RehHireServiceDto)
不动产经营租赁服务
示例
{
"sellerTaxNo": "string",
"sellerName": "string",
"sellerBankName": "string",
"sellerBankAccount": "string",
"sellerAddress": "string",
"sellerPhone": "",
"purchaserType": "1002",
"purchaserTaxNo": "",
"purchaserName": "",
"purchaserBankName": "",
"purchaserBankAccount": "",
"purchaserAddress": "",
"purchaserPhone": "",
"invoiceClassCode": "string",
"terminalNo": "",
"originInvoiceCode": "",
"originInvoiceNo": "",
"originInvoiceDate": "",
"redInfoNo": "",
"reasonCode": "",
"invoiceRemarks": "",
"amountWithoutTax": 0,
"taxAmount": 0,
"totalAmount": 0,
"invoiceTotalAmount": 0,
"invoiceTotalTax": 0,
"invoiceTotalAmountTax": 0,
"serialNo": "string",
"originSerialNo": "string",
"deduction": "new BigDecimal(0)",
"detailList": [
{
"orderId": 0,
"orderGroupNo": "string",
"orderNo": "",
"businessType": "",
"goodsLineNo": "string",
"goodsTaxCode": "string",
"goodsCode": "",
"sinopharmId": "",
"goodsName": "string",
"goodsAbbreviation": "",
"batchNo": "",
"goodsSpec": "",
"goodsUnit": "",
"goodsQuantity": 0,
"goodsPriceWithoutTax": 0,
"goodsPriceWithTax": 0,
"amountWithoutTax": 0,
"taxAmount": 0,
"deduction": "new BigDecimal(0)",
"goodsTaxRate": 0,
"goodsTotalAmount": 0,
"zeroTaxFlag": "1000",
"taxPre": "1001",
"taxPreCon": "",
"taxVersion": "",
"taxDeduction": "new BigDecimal(0)",
"goodsLineNature": "1001",
"sendAddress": "",
"purchaseName": "",
"quantitateFlag": "string",
"saleDeptName": "string",
"salesman": "string",
"billingFlag": "string",
"relativeOrderNo": "string",
"availableDate": "string",
"ownedCustomer": "string"
}
],
"callbackUrl": "",
"serviceDesc": {
"logisticsDetailList": [
{
"seqNo": "string",
"vehicleType": "string",
"vehicleCNo": "string",
"start": "string",
"destination": "string",
"cargoName": "string"
}
],
"buildService": {
"projectNo": "string",
"spot": "string",
"fullAddress": "string",
"projectName": "string",
"stepCityFlag": "string"
},
"reSaleService": {
"contractRecordNo": "string",
"reAddress": "string",
"fulladdress": "string",
"stepCityFlag": "string",
"projectNo": "string",
"totalAmountTax": "string",
"amountWithTax": "string",
"propertyRightNo": "string",
"unit": "string"
},
"rehHireService": {
"reAddress": "string",
"fulladdress": "string",
"startEndTime": "string",
"stepCityFlag": "string",
"propertyRightNo": "string",
"unit": "string"
}
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/invoiceRedInfo/redInfoApply' \
--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": "",
"invoiceClassCode": "string",
"terminalNo": "",
"originInvoiceCode": "",
"originInvoiceNo": "",
"originInvoiceDate": "",
"redInfoNo": "",
"reasonCode": "",
"invoiceRemarks": "",
"amountWithoutTax": 0,
"taxAmount": 0,
"totalAmount": 0,
"invoiceTotalAmount": 0,
"invoiceTotalTax": 0,
"invoiceTotalAmountTax": 0,
"serialNo": "string",
"originSerialNo": "string",
"deduction": "new BigDecimal(0)",
"detailList": [
{
"orderId": 0,
"orderGroupNo": "string",
"orderNo": "",
"businessType": "",
"goodsLineNo": "string",
"goodsTaxCode": "string",
"goodsCode": "",
"sinopharmId": "",
"goodsName": "string",
"goodsAbbreviation": "",
"batchNo": "",
"goodsSpec": "",
"goodsUnit": "",
"goodsQuantity": 0,
"goodsPriceWithoutTax": 0,
"goodsPriceWithTax": 0,
"amountWithoutTax": 0,
"taxAmount": 0,
"deduction": "new BigDecimal(0)",
"goodsTaxRate": 0,
"goodsTotalAmount": 0,
"zeroTaxFlag": "1000",
"taxPre": "1001",
"taxPreCon": "",
"taxVersion": "",
"taxDeduction": "new BigDecimal(0)",
"goodsLineNature": "1001",
"sendAddress": "",
"purchaseName": "",
"quantitateFlag": "string",
"saleDeptName": "string",
"salesman": "string",
"billingFlag": "string",
"relativeOrderNo": "string",
"availableDate": "string",
"ownedCustomer": "string"
}
],
"callbackUrl": "",
"serviceDesc": {
"logisticsDetailList": [
{
"seqNo": "string",
"vehicleType": "string",
"vehicleCNo": "string",
"start": "string",
"destination": "string",
"cargoName": "string"
}
],
"buildService": {
"projectNo": "string",
"spot": "string",
"fullAddress": "string",
"projectName": "string",
"stepCityFlag": "string"
},
"reSaleService": {
"contractRecordNo": "string",
"reAddress": "string",
"fulladdress": "string",
"stepCityFlag": "string",
"projectNo": "string",
"totalAmountTax": "string",
"amountWithTax": "string",
"propertyRightNo": "string",
"unit": "string"
},
"rehHireService": {
"reAddress": "string",
"fulladdress": "string",
"startEndTime": "string",
"stepCityFlag": "string",
"propertyRightNo": "string",
"unit": "string"
}
}
}'
返回响应
🟢200成功
application/json
Body
code
string | null
可选
message
string | null
可选
data
object ()
可选
time
string | null
可选
示例
{
"code": "",
"message": "",
"data": {},
"time": ""
}