发票识别
已上线百度 OCR 发票识别
POST
https://xlsj.net/api/vendor/invoice-recognize单价
¥0.25 / 次
日配额
100 次/日
QPS 限制
不限制
响应缓存
无
百度 OCR 发票识别
https://xlsj.net/api/vendor/invoice-recognize| 参数名 |
|---|
| 位置 |
|---|
| 类型 |
|---|
| 必填 |
|---|
| 说明 |
|---|
| imageUrl | body | string | 必填 | 发票图片 URL,POST body JSON |
curl -X POST -H "Authorization: Bearer wwc_live_xxx" \
-H "Content-Type: application/json" \
-d '{"imageUrl":"https://example.com/invoice.jpg"}' \
"https://xlsj.net/api/vendor/invoice-recognize"
{ "provider": "百度 OCR", "fields": { "code": "125001914501", "sum": "1025.00" } }
| 状态码 | 含义 | 处理建议 |
|---|---|---|
| 400 | 参数错误 | 检查参数名与格式 |
| 401 | Key 无效或缺失 | 确认 wwc_live_ 前缀完整、未过期 |
| 402 | 余额不足 | 前往个人中心充值 |
| 403 | 无该接口权限 | 检查 Key 绑定的套餐 |
| 404 | 数据不存在 | 调整查询条件 |
| 429 | 超过日配额 / QPS 限制 / 匿名限额 | 降低调用频率、次日重试或升级套餐 |
| 500 | 服务异常 | 稍后重试,持续失败请反馈 |
需要浏览全部接口?返回 API 总览。