3)直连开票(电票)
功能说明
直连开具电票。
接口调用请求说明
URL | http://api.smarttax.net/openapi/v2.0/access/invoice_e/create |
HTTP方法 | POST |
参数说明
字段名 | 数据类型 | 备注 | 是否必填 |
---|---|---|---|
accessToken | string | 授权Token。
由“获取AccessToken”接口获取。请注意有效期。 |
必填 |
requestToken | string | 由请求端随机生成,内容为16位随机字母数字,大小写敏感。 | 必填 |
taxDeviceType | int | 税盘设备类型:
1:金税盘(航天) 2:税控盘(百旺) |
必填 |
taxCode | string | 纳税识别号 | 必填 |
taxMac | string | 税盘机器识别码 | 必填 |
sellerName | string | 销方名称 | 必填 |
sellerTaxCode | string | 销方税号 | 必填 |
sellerAddress | string | 销方地址 | |
sellerTel | string | 销方电话 | |
sellerBankName | string | 销方银行名称 | |
sellerBankAccount | string | 销方银行账号 | |
buyerName | string | 购方名称 | 必填 |
buyerTaxCode | string | 购方税号 | 非个人必填 |
buyerAddress | string | 购方地址 | |
buyerTel | string | 购方电话 | |
buyerBankName | string | 购方银行名称 | |
buyerBankAccount | string | 购方银行账号 | |
remark | string | 备注 | |
payee | string | 收款人 | 必填 |
reviewer | string | 复核人 | 必填 |
creator | string | 开票人 | 必填 |
mainTitle | string | 主商品名称 | |
mainCode | string | 主商品税目 | |
details | list | 明细 | 必填 |
参数details说明
字段名 | 数据类型 | 备注 | 是否必填 |
---|---|---|---|
rowType | string | 发票行性质
0:无折扣 1:折扣行 2:被折扣行 |
必填 |
itemTitle | string | 商品名称 | 必填 |
spec | string | 规格型号 | |
unit | string | 单位 | |
quantity | BigDecimal | 商品数量 | 必填 |
price | BigDecimal | 单价(不含税) | 必填 |
money | BigDecimal | 金额(不含税) | 必填 |
taxRate | BigDecimal | 税率 | 必填 |
taxMoney | BigDecimal | 税额 | 必填 |
revenueCode | string | 税收分类编码 | 必填 |
zeroTax | string | 优惠税率标识
空:含税 0:出口零税率 1:免税 2:不征税 |
返回说明
字段名 | 数据类型 | 备注 | 是否必填 |
---|---|---|---|
requestToken | string | 请求Token | 必填 |
invNo | string | 发票代码 | 必填 |
invNum | string | 发票号码 | 必填 |
gmtCreate | string | 开票日期 | 必填 |
money | BigDecimal | 金额(不含税) | 必填 |
taxCtrlNo | string | 密码区 | 必填 |
checkNo | string | 必填 | |
校验码 | string | 必填 | |
url | string | PDF格式文件的下载URL | 必填 |
retCode | string | 返回码
0:转译成数字0,是成功。(可能为000000形式) 其他:失败 |
|
retMsg | string | 具体失败原因 |
返回码说明
返回码 | 说明 |
---|---|
200 | 成功 |