简要描述:

  • 输入完税证明文件,输出识别结果;
  • 支持识别个税、购置税完税证明、电子缴款凭证、税收电子缴款书;

请求URL:

接口地址:https://gauss.shargoodata.com/gauss/api/common_tax_ocr.json
请求方式:POST
数据类型:form-data

请求头:

参数名 是否必须 类型 说明
token 是 string token

请求参数:

参数名 是否必须 类型 说明
serviceName 是 string common_tax_ocr
platformNo 是 string 商户号
reqData 是 string 请求json字符串
    outside_no 是 string 外部订单编号
    timestamp 是 string yyyy-MM-dd-HH-mm-ss格式时间
image 是 file 文件

返回示例:

正确时返回:

{
    "success":true,
    "outside_no":"55305762-34c2-4ade-936a-0453a17f0f38",
    "data":{
        "res":[
            {
                "result":{
                    "date":"2021年01月15日",
                    "no":"",
                    "notes":"",
                    "lowercasetotalamount":"1023.26",
                    "originalvouchernumber":"621011510170",
                    "uppercasetotalamount":"壹仟零佰贰拾叁圆贰角陆分",
                    "dateofentry":"",
                    "taxpayername":"",
                    "catalogue":"经营所得",
                    "periodofduty":"20210101-20210131",
                    "taxtype":"",
                    "totalamountpaid":"1023.26",
                    "filler":"费桂林",
                    "taxpayerid":"2308271975091",
                    "taxauthority":"",
                    "seal":true
                },
                "kind":"0",
                "page":"0"
            }
        ]
    }
}

错误时返回:

{
    "success":false,
    "outside_no":"a77acba0-a681-4f9c-8245-d14aa8119aa0",
    "error_code":"400",
    "message":"文件不符合要求"
}

返回参数说明:

参数名 是否必须 类型 说明
success 是 boolean 是否处理成功,true:成功,false:失败;
outside_no 是 string 外部订单编号
data 否 json 识别数据
error_code 否 string 错误代码
message 否 string 错误描述
code 否 String 文件代码
data参数说明:
参数名 是否必须 类型 说明
res 是 数组 识别结果集
kind 是 String 类别
page 是 String 页码,从0开始
result 是 json OCR结果
kind参数说明:
参数名 说明
0 无验证码的完税证明
1 有验证码的完税证明
2 电子缴款凭证
3 税务收现专用
kind为0参数说明:
参数名 是否必须 类型 说明
no 是 String 编号
date 是 String 填发日期
taxauthority 是 String 税务机关
taxpayerid 是 String 纳税人识别号
taxpayername 是 String 纳税人名称
originalvouchernumber 是 String 原凭证号
taxtype 是 String 税种
catalogue 是 String 品目名称
periodofduty 是 String 税款所属期
dateofentry 是 String 入(退)库日期
totalamountpaid 是 String 实缴(退)金额
uppercasetotalamount 是 String 大写金额合计
lowercasetotalamount 是 String 小写金额合计
filler 是 String 填票人
notes 是 String 备注
seal 是 boolean 是否有红章
kind为1参数说明:
参数名 是否必须 类型 说明
no 是 String 编号
date 是 String 填发日期
taxauthority 是 String 税务机关
taxpayerid 是 String 纳税人识别号
taxpayername 是 String 纳税人名称
originalvouchernumber 是 String 原凭证号
taxtype 是 String 税种
catalogue 是 String 品目名称
periodofduty 是 String 税款所属期
dateofentry 是 String 入(退)库日期
totalamountpaid 是 String 实缴(退)金额
uppercasetotalamount 是 String 大写金额合计
lowercasetotalamount 是 String 小写金额合计
filler 是 String 填票人
notes 是 String 备注
captcha 是 String 验证码
seal 是 boolean 是否有红章
kind为2参数说明:
参数名 是否必须 类型 说明
date 是 String 打印日期
taxauthority 是 String 税务机关
taxpayerid 是 String 纳税人识别号
taxpayername 是 String 纳税人名称
bankaccount 是 String 银行账号
originalvouchernumber 是 String 电子税票号码
taxtype 是 String 税种
catalogue 是 String 预算科目
taxcategories 是 String 税款种类
periodofduty 是 String 税款所属期
totalamountpaid 是 String 实缴金额
lowercasetotalamount 是 String 小写金额合计
notes 是 String 备注
seal 是 boolean 是否有红章
kind为3参数说明:
参数名 是否必须 类型 说明
no 是 String 编号
registrationstatus 是 String 登记注册类型
date 是 String 填发日期
taxauthority 是 String 税务机关
taxpayerid 是 String 纳税人识别号
taxpayername 是 String 纳税人名称
address 是 String 地址
taxinfo 是 数组 税信息汇总
taxtype 是 String 税种
catalogue 是 String 品目名称
taxquantity 是 String 课税数量
taxamount 是 String 计税金额或销售收入
taxrate 是 String 税率或单位税额
periodofduty 是 String 税款所属期
totalamountpaid 是 String 实缴(退)金额
uppercasetotalamount 是 String 大写金额合计
lowercasetotalamount 是 String 小写金额合计
filler 是 String 填票人
notes 是 String 备注
seal 是 boolean 是否有红章
文档更新时间: 2025-04-10 18:21   作者:admin