CFE-OCR Services
Web Service description
Classification and OCR of CFE files.
The service classifies and generates the OCR for a CFE file; this data is used to obtain the geolocation, delivering a JSON response to the obtained data.
~/api/OCRCfe
Parameters.
Tag |
Type |
Required |
Description |
cfeFile |
file |
yes |
CFE image type .jpg, .jpeg, .png or .pdf |
Tag |
Type |
Required |
Description |
apikey |
string |
yes |
Customer key. |
{
"cfeFile": "file"
}
Response:
Name |
Type |
Description |
name |
string |
Name of the service owner |
service |
string |
Number of service |
address |
string |
Physical address of the property |
totalPay |
array |
Total cost to be paid on the receipt |
paymentLimit |
array |
Payment deadline |
cutoffDate |
array |
Service cut-off date |
period |
array |
Period used for billing |
lat |
float |
The number of latitude |
lng |
float |
The number of longitude |
url |
float |
The url of geolocation |
warnings |
array |
Array of objects with corresponding warnings |
JSON.
{
"name": "",
"service": "",
"address": "",
"totalPay": "",
"paymentLimit":"",
"cutoffDate": "",
"period": "",
"lat": 0.0,
"lng": 0.0,
"url": "",
"warnings": [
{
"code": "string",
"message": "string"
}
]
}
Service Messages.
Code |
Message |
Description |
CFE001 |
file is required |
file is required |
CFE002 |
Maximum allowed file size is 5mb |
Maximum allowed file size is 5mb |
CFE003 |
Something was wrong, We are working on the failure |
Something was wrong, We are working on the failure |
CFE004 |
Incorrect document |
Incorrect document |
CFE005 |
File upload error |
File upload error |
CFE006 |
Json decode error |
Json decode error |
CFE007 |
Invalid json response |
Invalid json response |
CFE008 |
Error processing PDF |
Error processing PDF |
CFE009 |
Error decoding image |
Error decoding image |
CFE012 |
Missing date of issue |
Missing date of issue |
CFE013 |
Error in geolocation configuration |
Error in geolocation configuration |
CFE014 |
No information was found for this address. |
No information was found for this address. |
CFE015 |
Connection failed |
Connection failed |
CFE016 |
error in decoding geolocation |
error in decoding geolocation |
CFE017 |
The service only accepts file extension pdf, jpg, jpeg, png |
The service only accepts file extension pdf, jpg, jpeg, png |