- 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/sync
请求参数
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
购方电话
示例值:
drawer
string
开票人
applicant
string | null
开票申请人
示例值:
checker
string | null
复核人
示例值:
payee
string | null
收款人
示例值:
invoiceType
string
必需
1002 红票
默认值:
1001
示例值:
1001
invoiceConfig
object (SaleInvoiceMakeOutRuleDto)
可选
默认
combination
string | null
可选
默认值:
1001
示例值:
1001
invoiceRemarksContent
array[string] | null
可选
mekeoutMode
string | null
可选
默认值:
1
示例值:
1
customRemark
string | null
自定义备注
invoiceClassCode
string
必需
invoiceMedium
string
必需
默认值:
1002
示例值:
1002
terminalNo
string | null
可选
税控开票 /全电开票
示例值:
originInvoiceCode
string | null
可选
示例值:
originInvoiceNo
string | null
原发票号码(红冲)
示例值:
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:销售折让
示例值:
taxationMethod
string
必需
1001 普通征税
1002 差额征税
默认值:
1001
示例值:
1001
invoiceRemarks
string | null
开票备注
示例值:
amountWithoutTax
number | null
不含税金额
taxAmount
number | null
税额
totalAmount
number | null
含税总金额
serialNo
string
开票流水号
phones
string | null
接收手机号
示例值:
emails
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
所属客户
extData
string | null
扩展数据
示例值:
tenantId
string | null
租户id
示例值:
systemSource
string | null
系统来源
示例值:
callbackUrl
string | null
回调地址
示例值:
taskNo
string | null
任务批次号
sort
string | null
可选
showSellerBankInfo
string | null
可选
默认值:
Y
示例值:
Y
showPurchaseBankInfo
string | null
可选
默认值:
Y
示例值:
Y
autoPrintFlag
string | null
可选
默认值:
1002
示例值:
1002
deptCode
string | null
部门code
示例值:
deptName
string | null
部门名称
示例值:
purchaseCode
string | null
客户代码
示例值:
specialBizType
string | null
可选
1000 正常发票(默认)
1001 成品油
1002 稀土
1003 建筑服务
1004 货物运输服务
1005 不动产销售服务
1006 不动产经营租赁服务
1007 代收车船税
1008 通行费
1009 旅客运输服务
1010 医疗服务(住院)
1011 医疗服务(门诊)
1012 自产农产品销售
1013 拖拉机和联合收割机
1014 机动车
1015 二手车
1016 农产品收购
1017 光伏收购
1018 卷烟
1019 出口
1020 农产品
默认值:
1000
示例值:
1000
serviceDesc
object (SpecialService)
附加明细、服务要素
logisticsDetailList
array[object (LogisticsDetailDto) {6}] | null
货物运输服务明细
buildService
object (BuildServiceDto)
建筑服务
reSaleService
object (ReSaleServiceDto)
不动产销售服务
rehHireService
object (RehHireServiceDto)
不动产经营租赁服务
示例
{
"sellerAddress": "上海市黄浦区龙华东路385号1层、11-15层",
"sellerBankAccount": "310066797018810047924带量",
"sellerBankName": "交通银行上海武昌路支行",
"sellerName": "国药控股股份有限公司",
"sellerPhone": "23052666",
"sellerTaxNo": "91310000746184344P",
"purchaserAddress": "丽园路712号甲",
"purchaserBankAccount": "1001250000000000000",
"purchaserBankName": "",
"purchaserName": "济宁市民祥医药零售连锁有限公司",
"purchaserPhone": "021-53021683",
"purchaserTaxNo": "91370811590328937X",
"purchaserType": "1002",
"drawer": "钟启兰",
"applicant": "",
"checker": "",
"payee": "乐企测试",
"invoiceType": "1002",
"invoiceConfig": {
"combination": "1001",
"makeoutMode": "1"
},
"invoiceClassCode": "1002",
"invoiceMedium": "1002",
"terminalNo": "",
"originInvoiceCode": "",
"originInvoiceNo": "24317000000004655136",
"originInvoiceDate": "",
"redInfoNo": "",
"reasonCode": "1001",
"taxationMethod": "1001",
"invoiceRemarks": "乐企红票测试自定义备注!!!",
"amountWithoutTax": -271.24,
"taxAmount": -35.26,
"totalAmount": -306.5,
"serialNo": "07268811331941",
"phones": "",
"emails": "",
"deduction": 0,
"detailList": [
{
"orderGroupNo": "",
"orderNo": "",
"businessType": "",
"goodsLineNo": "1",
"goodsTaxCode": "1070302050000000000",
"goodsCode": "",
"sinopharmId": "",
"goodsName": "11367499 阿奇霉素片.",
"goodsAbbreviation": "",
"batchNo": "",
"goodsSpec": "0.25g*6T",
"goodsUnit": "盒",
"goodsQuantity": -50,
"goodsPriceWithoutTax": 5.4248000000000,
"goodsTotalAmount":-306.5,
"amountWithoutTax": -271.24,
"taxAmount": -35.26,
"deduction": 0,
"goodsTaxRate": 0.13,
"zeroTaxFlag": "1000",
"taxPre": "1001",
"taxPreCon": "",
"goodsId": "",
"customerId": "",
"taxVersion": "",
"taxDeduction": 0,
"goodsLineNature": "1001",
"taxFlag": false,
"sendAddress": "",
"purchaseName": ""
}
],
"extData": "",
"callbackUrl": "",
"sort": "",
"showSellerBankInfo": "",
"showPurchaseBankInfo": "",
"showRemarkTitle": "Y",
"autoPrintFlag": "",
"deptCode": "",
"deptName": "",
"purchaseCode": "",
"specialBizType": "1000"
}
示例代码
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/sync' \
--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 '{
"sellerAddress": "上海市黄浦区龙华东路385号1层、11-15层",
"sellerBankAccount": "310066797018810047924带量",
"sellerBankName": "交通银行上海武昌路支行",
"sellerName": "国药控股股份有限公司",
"sellerPhone": "23052666",
"sellerTaxNo": "91310000746184344P",
"purchaserAddress": "丽园路712号甲",
"purchaserBankAccount": "1001250000000000000",
"purchaserBankName": "",
"purchaserName": "济宁市民祥医药零售连锁有限公司",
"purchaserPhone": "021-53021683",
"purchaserTaxNo": "91370811590328937X",
"purchaserType": "1002",
"drawer": "钟启兰",
"applicant": "",
"checker": "",
"payee": "乐企测试",
"invoiceType": "1002",
"invoiceConfig": {
"combination": "1001",
"makeoutMode": "1"
},
"invoiceClassCode": "1002",
"invoiceMedium": "1002",
"terminalNo": "",
"originInvoiceCode": "",
"originInvoiceNo": "24317000000004655136",
"originInvoiceDate": "",
"redInfoNo": "",
"reasonCode": "1001",
"taxationMethod": "1001",
"invoiceRemarks": "乐企红票测试自定义备注!!!",
"amountWithoutTax": -271.24,
"taxAmount": -35.26,
"totalAmount": -306.5,
"serialNo": "07268811331941",
"phones": "",
"emails": "",
"deduction": 0,
"detailList": [
{
"orderGroupNo": "",
"orderNo": "",
"businessType": "",
"goodsLineNo": "1",
"goodsTaxCode": "1070302050000000000",
"goodsCode": "",
"sinopharmId": "",
"goodsName": "11367499 阿奇霉素片.",
"goodsAbbreviation": "",
"batchNo": "",
"goodsSpec": "0.25g*6T",
"goodsUnit": "盒",
"goodsQuantity": -50,
"goodsPriceWithoutTax": 5.4248000000000,
"goodsTotalAmount":-306.5,
"amountWithoutTax": -271.24,
"taxAmount": -35.26,
"deduction": 0,
"goodsTaxRate": 0.13,
"zeroTaxFlag": "1000",
"taxPre": "1001",
"taxPreCon": "",
"goodsId": "",
"customerId": "",
"taxVersion": "",
"taxDeduction": 0,
"goodsLineNature": "1001",
"taxFlag": false,
"sendAddress": "",
"purchaseName": ""
}
],
"extData": "",
"callbackUrl": "",
"sort": "",
"showSellerBankInfo": "",
"showPurchaseBankInfo": "",
"showRemarkTitle": "Y",
"autoPrintFlag": "",
"deptCode": "",
"deptName": "",
"purchaseCode": "",
"specialBizType": "1000"
}'
返回响应
🟢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": ""
}