发票项目
  1. 手工开具
发票项目
  • print
    • sendEmail-底座
      POST
  • invoice
    • sendMessage
      POST
  • FileController
    • 文件上传
      POST
  • <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
    • 发票PDF批量下载
    • 发票文件批量下载
    • 根据key查询pdf信息
    • 运维使用,如你感觉对功能有影响,可以删除
  • SaleInvoiceController
    • 预开票查询
    • 发票查询
    • 同步开具,直接返回开具发票结果(返回发票信息)
    • 异步开票结果,返回开启请求接收结果,具体的发票结果 需要调用查询接口
    • 开票结果查询
    • 发票号码代码查询
    • 手工开票
    • 组票开票
  • InvoiceCountController
    • getInvoiceCount
    • downloadInvoiceCount
  • InvoiceNotifyController
    • 根据流水号发送开票结果通知
    • 分页查询推送日志
    • 根据流水号查询开票结果通知-->用于生产运维查询通知数据
    • 根据流水号删除开票结果通知-->用于生产运维删除脏数据
    • 查询未发送开票接口通知列表-->用于生产运维数据查询
    • 开票接口回调url测试-->自测url是否访问成功
  • InvoiceDetailsController
    • 销项获取指定税率的发票明细
  • InvoiceRedInfoController
    • 分页查询发票红字信息
    • 根据id查询发票红字信息
    • 刷新发票红字信息状态
    • 红字确认单撤销
    • 红字确认单操作-确认或拒绝
    • 红字信息表管理页面数据导出
    • 同步数电红字确认单
    • 根据id查询发票红字信息
    • 进项-红字确认单状态刷新
    • 进项-红字确认单撤销
    • 进项-申请红字确认单
  • ExportPreInvoiceController
    • exportPreInvoice
  • KVConfigController
    • 配置查询
  • 非业务接口,运维使用
    • 获取本地IP地址
    • nacos配置
  • 发票回调接收第三方供应商发票操作结果
    • 接收百旺回调结果
  • cms-order
    • getToken
  • 手工开具
    • 订单号查询-手工开具
      GET
    • 根据订单完成分组
      POST
    • 订单条件查询-自动组单
      POST
    • 订单开具-手工开具 and 组单开具
      POST
    • 订单不允许开票
      POST
    • 订单允许开票
      POST
  • 组票开票
    • 查询订单/订单组信息
    • 允许开票/暂不开票
    • 查询开票中/开票失败/已开票订单
    • 预制发票维度查询
    • 统计选中的订单信息
    • 订单维度查询
    • 导入表格开票
    • 一品一票组单
    • 多品一票组单
    • 智能开票组单
    • 处理(一单一票/多单一票)
    • 获取订单组备注测试
    • 组单后的结果继续分组
    • 获取订单组备注
    • 获取发票组备注
    • 实时获取查询条件数据
    • 订单回退至cms
  • 分组模板
    • 订单分组规则维护
    • 订单分组规则维护
    • 订单分组规则绑定添加查询
    • 订单分组规则列表查询
    • 根据模板汇总
    • 开票模板删除
    • 订单分组规则查询详情
    • 根据客户明细汇总
    • 创建模板并绑定客户
    • 订单分组规则绑定
    • 根据购方名称模糊查询客户列表
    • 分页查询模板
    • 订单分组规则绑定
    • 订单分组规则查询详情
    • 修改模板
    • 订单分组规则绑定
    • 模板详情
  • 手工开票
    • 查询订单信息
  • 销项发票推送
    • 发票推送规则列表
    • 查询发票推送规则根据ID
    • 新增或编辑发票推送规则
    • 导入发票推送规则excel文件
    • 删除发票推送规则
    • 按条件导出发票推送规则
  • CompanyChannelConfigController
    • 新增公司渠道信息
  • PreInvoiceMaintainController
    • 预制发票运维管理分页查询
    • 推送到其他系统
    • 重新推送到百旺开票
    • 文件拉取
    • 预制发票状态和开具结果变更
    • 统计不同税号的开票数据
    • 统计指定日期开票情况
    • 根据日期查询异常发票
  • QrInvoiceController
    • 预制发票明细加密查询
    • 预制发票明细查询
    • 二维码确认开票
    • 发送邮件
    • 发送邮件前校验
  • AutoInvoiceRuleController
    • 分页查询自动开票规则
    • 查询自动开票规则根据ID
    • 新增或编辑自动开票规则
    • 删除自动开票规则
  • 第三方接口配置Controller
    • 修改配置
  • 订单相关操作controller
    • 根据发票号查询订单信息
    • 根据发票号查询订单信息
  • 对账相关操作controller
    • 分页查询对账发票
    • 处理异常发票
    • 异常发票核对导出
  • InvoiceErrorStrategyController
    • 查询销项开票问题清单列表
    • 开票问题策略维护
    • 开票问题策略删除
  • PrintAppController
    • 根据批次号查询预制发票
    • 打印通知
  • 发票提供给业务系统相关操作controller
    • 发票文件查询
  • 乐企开票相关接口
    • 发票信息查询
  • OrderOperationLogController
    • 订单操作日志查询
  • 系统配置相关操作controller
    • 清除配置缓存
    • 清除配置缓存
  • 文件上传重置retryCount
    POST
  • 推送cms等业务系统
    POST
  • 打印任务查询
    POST
  • 打印
    POST
  • 乐企发票生成
    POST
  • 调文件中心接口
    POST
  • 打印任务
    POST
  1. 手工开具

根据订单完成分组

POST
/order/assemble

请求参数

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:
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 
可选
订单类型 "1001", "正常销售订单"
示例值:
sendAddressId
string  | null 
送货地址id
可选
示例值:
sendAddress
string  | null 
送货地址
可选
示例值:
saleArea
string  | null 
销售区域
可选
示例值:
salesman
string  | null 
销售员
可选
示例值:
orderId
string  | null 
订单id
可选
示例值:
orderStatus
string  | null 
订单状态
可选
invPostFlag
string  | null 
可选
是否暂不开票: 00-否,10-是
示例值:
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 
自定义开票备注
可选
示例值:
示例
[
    {
        "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": ""
    }
]

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/order/assemble' \
--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 '[
    {
        "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": ""
    }
]'

返回响应

🟢200成功
application/json
Body
com.sinopharm.invoice.dto.response.Response<java.util.List<com.sinopharm.invoice.sale.biz.dto.response.OrderGroup>>
code
string  | null 
可选
message
string  | null 
可选
data
array[object (OrderGroup) {34}]  | null 
可选
sellerTaxNo
string 
销方纳税人识别号
必需
sellerName
string 
销方单位名称
必需
sellerBankName
string  | null 
销方银行名称
可选
sellerBankAccount
string  | null 
销方银行账号
可选
sellerAddress
string  | null 
销方地址
可选
sellerPhone
string  | null 
销方电话
可选
示例值:
purchaserType
string 
必需
购方类型 1001个人 1002企业 ,个人只能开具普票
默认值:
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 
必需
1001 蓝票
1002 红票
默认值:
1001
示例值:
1001
invoiceClassCode
string 
必需
1001专票 1002普票
invoiceMedium
string 
必需
1001 纸票 1002 电票
默认值:
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 
可选
saleInvoiceMakeOutRuleDto
object (SaleInvoiceMakeOutRuleDto) 
可选
发票备注生产 同商品是否合并
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 
原发票号码(红冲)
可选
示例值:
time
string  | null 
可选
示例
{
  "code": "",
  "message": "",
  "data": [
    {
      "sellerTaxNo": "",
      "sellerName": "",
      "sellerBankName": "",
      "sellerBankAccount": "",
      "sellerAddress": "",
      "sellerPhone": "",
      "purchaserType": "",
      "purchaserTaxNo": "",
      "purchaserName": "",
      "purchaserBankName": "",
      "purchaserBankAccount": "",
      "purchaserAddress": "",
      "purchaserPhone": "",
      "drawer": "",
      "applicant": "",
      "checker": "",
      "payee": "",
      "invoiceType": "",
      "invoiceClassCode": "",
      "invoiceMedium": "",
      "invoiceRemarks": "",
      "amountWithoutTax": 0.0,
      "taxAmount": 0.0,
      "totalAmount": 0.0,
      "template": "",
      "goodsTaxRate": 0.0,
      "id": 0,
      "specialFlag": "",
      "quantitateFlag": "",
      "orderDetailList": [
        {
          "lineNo": 0,
          "orderNo": "",
          "sortNo": "",
          "orderGroupNo": "",
          "sellerTaxNo": "",
          "sellerName": "",
          "sellerBankName": "",
          "sellerBankAccount": "",
          "sellerAddress": "",
          "sellerPhone": "",
          "sellerTitleCode": "",
          "purchaseTaxNo": "",
          "purchaseName": "",
          "purchaseBankName": "",
          "purchaseBankAccount": "",
          "purchaseAddress": "",
          "purchasePhone": "",
          "custCode": "",
          "custTitleCode": "",
          "custAddressCode": "",
          "custAddress": "",
          "goodsTaxCode": "",
          "goodsCode": "",
          "sinopharmId": "",
          "goodsName": "",
          "goodsSpec": "",
          "goodsUnit": "",
          "goodsQuantity": 0.0,
          "goodsPriceWithoutTax": 0.0,
          "amountWithoutTax": 0.0,
          "taxAmount": 0.0,
          "goodsTaxRate": 0.0,
          "goodsTotalAmount": 0.0,
          "goodsAbbreviation": "",
          "batchNo": "",
          "zeroTaxFlag": "",
          "taxPreCon": "",
          "specialFlag": "",
          "quantitateFlag": "",
          "payee": "",
          "remakes": "",
          "availableDate": "",
          "invoiceClassCode": "",
          "invoiceMedium": "",
          "orderType": "",
          "sendAddressId": "",
          "sendAddress": "",
          "saleArea": "",
          "salesman": "",
          "orderId": "",
          "orderStatus": "",
          "invPostFlag": "",
          "businessType": "",
          "goodsLineNo": "",
          "goodsPriceWithTax": 0.0,
          "deduction": 0.0,
          "taxPre": "",
          "taxVersion": "",
          "taxDeduction": 0.0,
          "goodsLineNature": "",
          "purchaserType": "",
          "invoiceType": "",
          "taxationMethod": ""
        }
      ],
      "saleInvoiceMakeOutRuleDto": {
        "combination": "",
        "invoiceRemarksContent": [
          ""
        ],
        "mekeoutMode": ""
      },
      "serialNo": "",
      "reasonCode": "",
      "originInvoiceNo": ""
    }
  ],
  "time": ""
}
上一页
订单号查询-手工开具
下一页
订单条件查询-自动组单
Built with