接口文档· 更新于 2026-11-26
请求开具发票
POST
/openapi/invoice/nuoNuo/requestBillingNew.do发票外部服务转发接口;上游原始路径:/nuoNuo/requestBillingNew.do;来源 Controller:NuoNuoController;上游鉴权:无上游拦截器鉴权;OpenAPI 发票转发层要求 appkey/timestamp/sign/source
请求地址
生产环境
https://open.gch168.com/openapi/invoice/nuoNuo/requestBillingNew.do- 请求方式
- POST
- 内容类型
- application/json
- 传输安全
- TLS 1.2 及以上
支持的鉴权方式
查看接入认证说明 →以下任一鉴权方式通过即可调用,签名细节与凭证获取请查看接入说明。
Header 签名(普通开放接口)API_KEY
通过 ApiKey、客户号或企业号识别租户,并对时间戳、随机串进行 MD5 签名校验,适用于绝大多数普通开放接口。
Sign = MD5(secretKey + timestamp + nonceStr),签名比较忽略大小写
请求头
公共请求头 →| 请求头 | 必填 | 类型 | 示例值 | 说明 |
|---|---|---|---|---|
| appkey | 必填 | String | invoice-app-key | 调用方应用密钥,发票转发层用于签名归属和计量 |
| timestamp | 必填 | String | 1710000000000 | 请求时间戳,5 分钟内有效,发票转发层用于签名归属和计量 |
| sign | 必填 | String | A1234567890123456789012345678901 |
请求参数
| 参数名 | 位置 | 类型 | 必填 | 示例值 | 说明 |
|---|---|---|---|---|---|
userTax | BODY | String | 选填 | 91330000123456789X | taxNum |
isSandbox | BODY | String | 选填 | isSandboxValue | isSandbox |
appKey | BODY | String | 选填 | appKeyValue | appKey |
ngid | BODY | String | 选填 | ngidValue | 新中大id |
buyerName | BODY | String | 必填 | buyerNameValue | 购方名称 |
buyerTaxNum | BODY | String | 选填 | 91330000123456789X | 购方税号 |
buyerTel | BODY | String | 选填 | buyerTelValue | 购方电话 |
buyerAddress | BODY | String | 选填 | buyerAddressValue | 购方地址 |
buyerAccount | BODY | String | 选填 | buyerAccountValue | 购方银行账号及开户行地址 |
salerTaxNum | BODY | String | 必填 | 91330000123456789X | 销方税号 |
salerTel | BODY | String | 必填 | salerTelValue | 销方电话 |
salerAddress | BODY | String | 必填 | salerAddressValue | 销方地址 |
salerAccount | BODY | String | 选填 | salerAccountValue | 销方银行账号和开户行地址 |
orderNo | BODY | String | 必填 | orderNoValue | 订单号 |
invoiceDate | BODY | String | 必填 | 2026-05-27 12:00:00 | 订单时间 |
invoiceCode | BODY | String | 选填 | invoiceCodeValue | 对应蓝票发票代码 |
invoiceNum | BODY | String | 选填 | invoiceNumValue | 对应蓝票发票号码 |
redReason | BODY | String | 选填 | redReasonValue | 冲红原因 |
redCode | BODY | String | 选填 | redCodeValue | 红字信息表编号 |
departmentId | BODY | String | 选填 | departmentIdValue | 部门门店id |
clerkId | BODY | String | 选填 | clerkIdValue | 开票员id |
remark | BODY | String | 选填 | remarkValue | 备注信息 |
checkPsn | BODY | String | 选填 | checkPsnValue | 复核人 |
getPsn | BODY | String | 选填 | getPsnValue | 收款人 |
invoPsn | BODY | String | 必填 | invoPsnValue | 开票员 |
listFlag | BODY | String | 选填 | listFlagValue | 清单标志:非清单:0;清单:1,默认:0 |
listName | BODY | String | 选填 | listNameValue | 清单项目名称 |
pushMode | BODY | String | 选填 | pushModeValue | 推送方式:-1,不推送;0,邮箱;1,手机;2,邮箱、手机 |
buyerPhone | BODY | String | 选填 | buyerPhoneValue | 购方手机 |
email | BODY | String | 选填 | emailValue | 推送邮箱 |
invoiceType | BODY | String | 必填 | invoiceTypeValue | 开票类型 注意:这个字段不对应诺诺接口 |
redBlue | BODY | String | 必填 | redBlueValue | 红蓝票类型 注意:这个字段对应诺诺接口的invoiceType |
invoiceLine | BODY | String | 选填 | invoiceLineValue | 发票种类 |
paperInvoiceType | BODY | String | 选填 | paperInvoiceTypeValue | 全电纸票类型 |
specificFactor | BODY | String | 选填 | specificFactorValue | 特定要素 |
productOilFlag | BODY | String | 选填 | productOilFlagValue | 成品油标志:非成品油:0;成品油:1 |
proxyInvoiceFlag | BODY | String | 选填 | proxyInvoiceFlagValue | 代开标志:0非代开;1代开 |
callBackUrl | BODY | String | 选填 | callBackUrlValue | 开票完成回传发票信息地址 |
extensionNumber | BODY | String | 选填 | extensionNumberValue | 分机号 |
terminalNumber | BODY | String | 选填 | terminalNumberValue | 终端号 |
jqbh | BODY | String | 选填 | jqbhValue | 机器编号 |
buyerManagerName | BODY | String | 选填 | buyerManagerNameValue | 购买方经办人姓名 |
managerCardType | BODY | String | 选填 | managerCardTypeValue | 经办人证件类型 |
managerCardNo | BODY | String | 选填 | managerCardNoValue | 经办人证件号码 |
invoiceDetail | BODY | Array | 必填 | [] | 发票详情 |
goodsName | BODY | String | 必填 | goodsNameValue | 商品名称 |
goodsCode | BODY | String | 选填 | goodsCodeValue | 商品编码 |
selfCode | BODY | String | 选填 | selfCodeValue | 自行编码 |
withTaxFlag | BODY | String | 必填 | 91330000123456789X | 单价含税标志:0:不含税,1:含税 |
price | BODY | String | 选填 | priceValue | 单价 |
num | BODY | String | 选填 | numValue | 数量 |
unit | BODY | String | 选填 | unitValue | 单位 |
spec | BODY | String | 选填 | specValue | 规格型号 |
tax | BODY | String | 选填 | 91330000123456789X | 税额 |
taxRate | BODY | String | 必填 | 91330000123456789X | 税率 |
taxExcludedAmount | BODY | String | 选填 | 91330000123456789X | 不含税金额 |
taxIncludedAmount | BODY | String | 选填 | 91330000123456789X | 含税金额 |
invoiceLineProperty | BODY | String | 选填 | invoiceLinePropertyValue | 发票行性质:0,正常行;1,折扣行;2,被折扣行 |
favouredPolicyFlag | BODY | String | 选填 | favouredPolicyFlagValue | 优惠政策标识:0,不使用;1,使用 |
favouredPolicyName | BODY | String | 选填 | favouredPolicyNameValue | 增值税特殊管理 |
deduction | BODY | String | 选填 | deductionValue | 扣除额 |
zeroRateFlag | BODY | String | 选填 | zeroRateFlagValue | 零税率标识 |
invoiceBuildingInfo | BODY | Object | 选填 | {} | invoiceBuildingInfo |
buildingAddress | BODY | String | 选填 | buildingAddressValue | buildingAddress |
detailedAddress | BODY | String | 选填 | detailedAddressValue | 详细地址(建筑服务发生地+详细地址) |
landVatItemNo | BODY | String | 选填 | landVatItemNoValue | 土地增值税项目编号 |
itemName | BODY | String | 选填 | itemNameValue | 建筑项目名称 |
crossCityFlag | BODY | String | 选填 | crossCityFlagValue | 跨地(市)标志(0-否 1-是) |
realPropertyRentInfo | BODY | Object | 选填 | {} | realPropertyRentInfo |
realPropertyAddress | BODY | String | 必填 | realPropertyAddressValue | 不动产地址(传对应省市区中文名称--需与行政区划名称一致) |
detailAddress | BODY | String | 必填 | detailAddressValue | 详细地址(不动产地址+详细地址 总长度最大120字符,且必须包含 街、路、村、乡、镇、道 关键词) |
rentStartDate | BODY | String | 必填 | 2026-05-27 12:00:00 | 租赁开始日期(不能晚于租赁结束日期) |
rentEndDate | BODY | String | 必填 | 2026-05-27 12:00:00 | 租赁结束日期(不能早于租赁开始日期) |
crossCityFlag | BODY | String | 必填 | crossCityFlagValue | 跨地(市)标志(0-否 1-是) |
realPropertyCertificate | BODY | String | 选填 | realPropertyCertificateValue | 产权证书/不动产权证号 |
unit | BODY | String | 必填 | unitValue | 面积单位(只能选其中一种:1 平方千米 2 平方米、3 公顷、4 亩、5 hm 、6 km 、7 m ) |
additionalElementName | BODY | String | 选填 | additionalElementNameValue | 附加模版名称(全电电票特有字段,附加模版有值时需要添加附加要素信息列表对象,需要先在电子税局平台维护好模版) |
additionalElementList | BODY | Array | 选填 | [] | 附加要素信息列表(全电电票特有字段,附加要素信息可以有多个,有值时需要 附加模版名称也有值 |
elementName | BODY | String | 选填 | elementNameValue | 信息名称(全电电票特有字段;需要与电子税局中的模版中的附加要素信息名称一 致) |
elementType | BODY | String | 选填 | elementTypeValue | 信息类型(全电电票特有字段) |
elementValue | BODY | String | 选填 | elementValueValue | 信息值(全电电票特有字段) |
响应参数
业务成功时返回 code = 200,其余状态码见下方接口状态码与全局状态码。
| 字段名 | 类型 | 示例值 | 说明 |
|---|---|---|---|
errCode | Integer | 200 | 业务响应码 |
errMsg | String | success | 响应消息 |
data | String | ok | 响应数据;上游 NuoNuoController 返回 JsonResult 字符串,serviceImpl 未暴露稳定响应 POJO 时按第三方原始 JSON 字符串记录 |
状态码
全局状态码 →| 状态码 | 说明 |
|---|---|
| 200 | 调用成功 |
请求与响应示例
请求示例
请求示例
POST /openapi/invoice/nuoNuo/requestBillingNew.do
appkey: invoice-app-key
timestamp: 1710000000000
sign: A1234567890123456789012345678901
source: pb
{"userTax":"91330000123456789X","isSandbox":"isSandboxValue","appKey":"appKeyValue","ngid":"ngidValue","buyerName":"buyerNameValue","buyerTaxNum":"91330000123456789X","buyerTel":"buyerTelValue","buyerAddress":"buyerAddressValue","buyerAccount":"buyerAccountValue","salerTaxNum":"91330000123456789X"}
响应示例
响应示例
{
"errCode": 200,
"errMsg": "success",
"data": "ok"
}