This type of validation is primarily used to check if the phone number has correct format and syntax. There is no TELCO data check so you would not be able to know if the phone number is connected to the network. Only basic errors and typos are corrected.
{
"response": {
"result": {
"isValid": false,
"proposal": "invalidWithCorrection",
"data": {
"country": {
"code": "CZ",
"prefix": "+420"
},
"number": null,
"numberFull": "+420775111222@",
"carrier": {},
"format": {
"raw": null,
"national": null,
"e164": null,
"e123": null
}
},
"errors": [
{
"group": "SYNTAX",
"type": "CHARACTERS",
"subtype": "NOT_ALLOWED",
"severity": "critical",
"relatedTo": [
"numberFull"
],
"description": "Disallowed characters were used in the value."
},
{
"group": "SYNTAX",
"type": "INVALID",
"subtype": null,
"severity": "warning",
"relatedTo": [
"numberFull"
],
"description": "Value has invalid syntax."
}
]
},
"resultCorrected": {
"isValid": true,
"data": {
"country": {
"code": "CZ",
"prefix": "+420"
},
"number": "775111222",
"numberFull": "+420775111222",
"carrier": {
"type": "mobile"
},
"format": {
"raw": "775111222",
"national": "775 111 222",
"e164": "+420775111222",
"e123": "+420 775 111 222"
}
},
"errors": [],
"fixes": [
{
"group": "SYNTAX",
"type": "VALUE_PART_CHANGED",
"subtype": "CHARACTERS",
"data": {
"typeFrom": "numberFull",
"type": "numberFull",
"valueFrom": "+420775111222@",
"value": "+420775111222"
}
}
]
},
"suggestions": []
}
}
This is the more advanced option and consists of the TELCO data realtime check. Based on the information we receive we can with certainty tell if the phone number is connected to the network or not. Our validator also informs you about the type of phone number, you're validating and its carrier.
{
"response": {
"result": {
"isValid": true,
"proposal": "valid",
"data": {
"country": {
"code": "CZ",
"prefix": "+420"
},
"number": "277278678",
"numberFull": "+420277278678",
"carrier": {
"name": "FAYN Telecommunications s.r.o.",
"type": "landline"
},
"format": {
"raw": "277278678",
"national": "277 278 678",
"e164": "+420277278678",
"e123": "+420 277 278 678"
}
},
"errors": []
},
"resultCorrected": null,
"suggestions": []
}
}