이 API 함수를 사용하면 E911 주문 필드(TN, 이름, 위치 등)를 검증할 수 있습니다. 필수 필드, 필드 길이 등을 검증합니다.
URI:
https://api.multitel.net/v3/tn911validate
매개변수:
- tn : 10 digit phone number (Example: 8886868581) - name : Subscriber full name - streetNum : Street number (Example: "100" for "100 Main St" address) - streetInfo : Street name (Example: "Main St" for "100 Main St" address) - location: Specific location (Example: Suite 650) - 20 characters maximum length (optional) - city : City part of the address (Example: Royal Oak) - state : State part of the address ,as "2" alpha isocode (Example "MI" for "Michigan", "NY" for "New York") - postalCode : Zip/Postal Code part of the address (Example: 48068)
메서드:
POST
성공 출력 샘플:
{
"status": {
"code": 200,
"msg": ""
},
"response": {
"tn": "8886868581",
"name": "MultiTEL"
"streetNum": "100",
"streetInfo": "Main Street",
"location": "Suite 650",
"city": "Royal Oak",
"state": "MI",
"postalCode": "48068",
"validationMsg": "Valid Address",
"validationResult": 0,
"correctedStreetNum": "100",
"correctedStreetInfo": "Main St",
"correctedLocation": "Ste 650",
"correctedCity": "Royal Oak",
"correctedState": "MI",
"correctedPostalCode": 48068
}
}샘플 오류 출력:
{
"status": {
"code":"414",
"msg":"Error: 'tn' parameter not provided"
},
"response":""
}기타 오류 코드:
401 - no auth (wrong authentication parameters) 403 - forbidden (your account is not allowed to run this API function) 414 - wrong parameters provided (parameters missing or failing validation) 404 - address not found / could not validate 202 - address corrected