| 错误代码 | 错误信息 | 解决方案 |
|---|---|---|
| ParameterIsNull | 发票识别参数不能为空 | 传入不为空的发票识别参数 |
| ImageIsNull | 发票图片信息不能全部为空(图片链接、Base64 数据) | 传入不为空的发票识别参数 |
| ImageIsInvalid | 发票图片信息无效 | 传入有效的发票图片 |
| NotSupport | 暂不支持的发票类型 | 传入支持的发票类型文件 |
| Failed | 发票识别失败,请联系管理员 | 联系管理员 |
| ServerError | 服务器异常,请稍后重试 | 稍后重试 |
{
"customReqId": "100019953790cccf01c45ce1b744e14ec46384eb",
"imageUrl": "https://image.**********************33f.png"
}curl --location --request POST 'http://prod-cn.your-api-server.com/v2/invoice/ocr/sb' \
--header 'access_token: {{access_token}}' \
--header 'access_token: {{access_token}}' \
--header 'req_date: {{req_date}}' \
--header 'req_date: {{req_date}}' \
--header 'req_sign: {{req_sign}}' \
--header 'req_sign: {{req_sign}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"customReqId": "100019953790cccf01c45ce1b744e14ec46384eb",
"imageUrl": "https://image.**********************33f.png"
}'{
"reqId": "4fc638d8d817417c868edb2f8704dc4f",
"code": "2000",
"success": true,
"message": null,
"data": {
"customReqId": "10***************************************3d",
"imageUrl": "http://***************/400x400",
"type": null,
"single": true,
"ylpj": null,
"success": true,
"fkBz": "Ut laboris",
"code": null,
"message": null,
"data": {
"fplx": "ut nisi dolor Excepteur",
"jd": 94,
"fpxflx": "aliquip deserunt cupidatat ullamco Lorem",
"fwlx": "laboris irure consequat",
"company_seal": "incididunt",
"imageSize": "http://**********400x400",
"page": 25,
"title": "市温新常型西",
"jzdw": "enim sunt incididunt Ut tempor",
"province": "新疆维吾尔自治区",
"city": "重庆市",
"qrcode": [
"82",
"33",
"32",
"22",
"87"
],
"fpdm": "reprehenderit Ut",
"fphm": "veniam et ullamco",
"kprq": "sit",
"jym": "eiusmod officia in deserunt",
"xfsbh": "esse enim nostrud tempor deserunt",
"xfmc": "amet Ut minim tempor eiusmod",
"xsfdzdh": "ullamco",
"xsfyhzh": "Ut",
"gfsbh": "laboris ea sint",
"gfmc": "voluptate ullamco ex dolore",
"gmfdzdh": "ipsum incididunt pariatur sunt",
"gmfyhzh": "deserunt dolor",
"skm": "do Lorem mollit consequat",
"je": 92,
"se": 23,
"jshj": 16,
"jshjcn": "laborum",
"bz": "cillum commodo nulla enim",
"kpr": "ut velit fugiat",
"skr": "minim aliqua do",
"fhr": "cillum",
"sbbh": "et enim quis",
"hwxx": [
{
"ggxh": "veniam non pariatur Excepteur exercitation",
"slv": 32,
"ysslv": "mollit sint",
"je": 21,
"ysse": "sed",
"se": 60,
"dj": "ex velit",
"sl": "culpa dolore reprehenderit laboris proident",
"jldw": "proident officia aliquip ex",
"mc": "sint consectetur occaecat mollit"
},
{
"jldw": "amet consequat irure non in",
"je": 77,
"slv": 44,
"ggxh": "amet magna commodo",
"dj": "do proident culpa mollit",
"mc": "sint dolore qui reprehenderit",
"sl": "ut dolore",
"ysslv": "veniam cupidatat",
"ysse": "Duis aliquip",
"se": 76
},
{
"se": 87,
"ggxh": "enim minim",
"ysslv": "anim sed sint",
"mc": "nostrud consectetur",
"sl": "magna mollit dolor",
"ysse": "sint nulla qui occaecat pariatur",
"je": 29,
"jldw": "id veniam",
"dj": "Lorem consectetur magna amet ipsum",
"slv": 55
},
{
"mc": "incididunt magna proident Ut velit",
"ysse": "amet ea elit incididunt",
"slv": 83,
"jldw": "velit in",
"je": 75,
"ggxh": "eu nulla voluptate consequat Lorem",
"dj": "incididunt anim Excepteur dolore elit",
"ysslv": "ipsum reprehenderit ullamco",
"sl": "culpa",
"se": 52
}
]
},
"datas": null
}
}