NIS 3.0 API documentation

numberidentity

Number Identity resource.

Resource attributes:

  • number (string): Phone number in E.164 format e.g., +12125551212 . The max length of this attribute is 20

  • validity (boolean): Validity of phone number . This attribute indicates if the number is part of a valid line range of phone numbers . Allowed values - true,false

  • carrier_id (string): Identifier of carrier serving the phone number’. The list of all carrier ids is available in the Phone Number Verification Annexure. The max length of this attribute is 15. 

  • carrier_name (string): Name of carrier serving the phone number. The max length of this attribute is 256. 

  • number_type : (string): Type of phone number supported : 

    •  M (mobile) 
    •  L (Landline), 
    • VM (VOIP Mobile) 
    • VL (VOIP Landline) 

Note : Empty value if number is not valid or if the number_type is not known. The max length supported is 2. 

  • country_iso_code (string): The 3 letter ISO code of the country

  • country (string): Name of the country the phone number belongs to. The max length of this attribute is 256.

  • carrier_mcc(string): Mobile Country Code of carrier most recently serving the phone number. The max length supported is 3.  Empty value if the number is not valid.

  • carrier_mnc string): Mobile Network Code of carrier most recently serving the phone number. The max length of this attribute is 3. Empty value if the number is not valid. 

  • porting_status (boolean): Indicates that the Phone Number has been Ported during its life time.   Allowed values - true,false

  • account_type (string): Type of Account for the ported phone number. Allowed values are Prepaid, Postpaid or empty. The max length of this attribute is 15. This attribute applies only when the phone number is valid mobile and ported. In all other cases empty values is returned. 

  • last_known_event 

    • (string): Most recent activity on the phone number. Allowed values are 
    • None – No activity reported on this number. 
    • Ported - Number has been ported to the carrier identified by carrier_id on porting_date 
    • Deactivated – Number was deactivated from the carrier identified by previous_carrier_id on deactivation_date.  

Note : The number may be deactivated either for porting OR for true disconnect. Since porting information is available near real-time, the last known event “deactivated” is most likely a true disconnect where a number is returned to the recycling pool. 

  • porting_date (date): Indicates the date on which the phone number was ported. Sample value '23-03-2014 T10-12-23Z'. The max length supported is 20. This attribute applies only when “last_known_event” is ported. 

  • previous_carrier_id (string): Identifier for the carrier previously serving the phone number. The max length of this attribute is 15. This attribute applies only when “last_known_event” is either ported or deactivated 

  • previous_carrier_name (string): Name of the carrier previously serving the phone number. The max length allowed is 256. This attribute applies only when “last_known_event” is either ported or deactivated.

  • deactivation_date (date): Date when phone number was deactivated. Sample value '23-03-2014 T10-12-23Z'. The max length of this attribute is 20. This attribute applies only when “last_known_event” is deactivated. 

  • ext_trx_id (string): This is the unique identifier sent by customer in request header to track the request/response chain for the API call. The value of this attribute will be extracted from the header of the GET request.This header is Optional. 

  • ext_reseller_cust_id (string): This attribute represents the customer of our customer using the Phone Verification service. The max length of this attribute is 64. The value of this attribute will be extracted from the header of the GET request. This header is Optional. 

  • tracking_id (string): PNV generated unique identifier to track the request response chain. The max length of this attribute is 38. This can be used for troubleshooting or tracking the requests from the customer. 

get

Returns available information on the phone number.

 

Phone Number Monitoring Service:

PNV Service collects information on telephone numbers from multiple sources which may be of business interest to customers for realization of their business functions. Following sections enumerates the events 

Event NameBusiness ContextPotential Use
deactivation_event The Deactivation event is created whenever a number is deactivated, whether permanently or for the purpose of porting. The same number can be visible either in porting_event or truedisconnect_event: If the deactivation event of a phone number is followed by a porting event or not. Customers interested in scrubbing their marketing databases may wish to subscribe to the deactivation event for indication of activity on the phone number.
porting_event The Porting change event is created when a number is ported from one carrier family to another and the porting is considered a competitive port. This number is also expected to show up in the deactivation_event if the same number is subscribed to the monitoring service. Customers who route messages directly to service providers may update their subscriber databases upon receipt of such events.
truedisconnect_event This event provides a reliable method for tracking deactivation of numbers as it is triggered after reasonable provision for porting. A true disconnect constitutes a deactivation event that is NOT related to a porting event. A true disconnect represents the phone numbers that are being recycled by carriers and are open to be assigned to another individual. Customers looking to ensure that their communication only reaches opted-in consumers in their database, should remove phone numbers that occurred a truedisconnect from their calling list.

Business Events

deactivation_event:

AttributeData TypeMandatoryDescription
number String yes Phone number in E.164 format
previous_carrier_id String no Identifier of the carrier previously serving the phone number. (see NIS Annexure)
previous_carrier_name String no Name of the carrier serving the phone number
(see NIS Annexure)
deactivation_date date yes Name of the carrier serving the phone number
(see NIS Annexure)
tracking_id String no Unique Id generated by NIS for tracking the event 

porting_event:

AttributeData TypeMandatoryDescription
number String yes Phone number in E.164 format
carrier_id String no  Identifier of the carrier serving the phone number (see NIS Annexure)
carrier_name String no  Name of the carrier serving the phone number
(see NIS Annexure)
previous_carrier_id String no Identifier of the carrier previously serving the phone number. (see NIS Annexure)
previous_carrier_name String no Name of the carrier serving the phone number
(see NIS Annexure)
porting_date dateTime yes Date of porting of number in format: "YYYY-MM-DDTHH:MM:SSZ".  ex. 2016-01-02T12:23:56Z
tracking_id String no Unique Id generated by NIS for tracking the event 

truedisconnect_event:

AttributeData TypeMandatoryDescription
number String yes Phone number in E.164 format
previous_carrier_id String no Identifier of the carrier previously serving the phone number. (see NIS Annexure)
previous_carrier_name String no Name of the carrier serving the phone number
(see NIS Annexure)
deactivation_date date yes Name of the carrier serving the phone number
(see NIS Annexure)
tracking_id String no Unique Id generated by NIS for tracking the event 

Appendix A : Phone Verification Service – Lookup Attributes

NameDescriptionTypeSizeExampleDefault Value
feature Requested Feature set     "fs1" "fs1"
number Phone Number in E.164 Format String 20 “+12125551212"  
validity Indicates if the number is part of valid line range.  boolean   TRUE  
carrier_id Identifier of the carrier serving the phone number String  15 "16291"  
carrier_name Name of the carrier serving the phone number String 256 "T-MOBILE USA INC"  
number_type Type of Phone Number Supported String 2 "M"  
country_iso_code The 3 letter ISO code of the country String 3 "USA"  
country The name of the country the phone number belongs to String 256 "United States  
carrier_mcc Mobile Network code of the carrier most recently serving the phone number. String 3 "310" Empty value if the number is not valid 
carrier_mnc Mobile Network Code of carrier most recently serving the phone number. String 3 "160" Empty value if the number is not valid 
account_type Type of Account for Valid Ported Mobile Phone number String 15 "Prepaid" Empty value if number is not ported valid usa/cn mobile number. International number account type is empty.
porting_status Phone Number has been Ported atleast once during its life time boolean true
last_known_event Most recent activity on the Phone Number. String   "Ported"  
porting_date Indicates the date on which the phone number was ported. date 20 2014-11-15T00:00Z Applies ONLY if last_known_event is PORTED.
previous_carrier_id Identifier of the carrier previously serving the phone number. String 15 "16291" Applies ONLY if last_known_event is Ported or Deactivated. International ( india) comes as EMPTY values.
previous_carrier_name Name of the carrier previously serving the phone number. String 256 "T-MOBILE USA INC." Applies ONLY if last_known_event is Ported or Deactivated. International ( india) comes as EMPTY values
deactivation_date Date when phone number was deactivated. date 20 "2010-02-07T00:00Z" Applies ONLY if last_known_event is Deactivated.

Appendix B : Phone Verification Service – International Coverage

NameDescriptionCoverage
feature Requested Feature set  
number Phone Number in E.164 Format US/CA/IN/International
validity Indicates if the number is part of valid line range. US/CA/IN/International
carrier_id Identifier of the carrier serving the phone number US/CA/IN/International
carrier_name Name of the carrier serving the phone number US/CA/IN/International
number_type Type of Phone Number Supported US/CA/IN/International
country_iso_code The 3 letter ISO code of the country US/CA/IN/International
country The name of the country the phone number belongs to US/CA/IN/International
carrier_mcc Mobile Network code of the carrier most recently serving the phone number. US/CA/IN/International
carrier_mnc Mobile Network Code of carrier most recently serving the phone number. US/CA/IN/International
account_type Type of Account for Valid Ported Mobile Phone number US/CA
porting_status The Phone Number has been Ported during its life time. US/CA
last_known_event Most recent activity on the Phone Number. US/CA
porting_date Indicates the date on which the phone number was ported. US/CA
previous_carrier_id Identifier of the carrier previously serving the phone number. US/CA
previous_carrier_name Name of the carrier previously serving the phone number. US/CA
deactivation_date Date when phone number was deactivated. US/CA

Appendix C : Phone Verification Service – Headers

NameDescriptionData TypeSizeExampleDefault Value
ext_trx_id Unique identifier that customer can send to track the request/response chain. This is Optional field. String   “XCT124JXAAWB89” Value present ONLY if provided ( optional)
ext_reseller_cust_id This is the identifier of the customer using the PNV Service. This is Optional field. String  64 "V7229" Value present ONLY if provided ( optional)
tracking_id To track the customer transactions String 38  
" 200290035921500446652035"
 

Phone Number Lookup Response : Examples

Case 1 :
Deactivation Date : November 14th, 2014
Porting Date : November 15th, 2014

{ 
"numberidentity":  
{ 
"number": "+167893XXXXX", 
"validity": "true", 
"carrier_id": "3022", 
"carrier_name": "METRO PCS INC.", 
"number_type": "M", 
"country_iso_code": "USA", 
"country": "United States", 
"carrier_mcc": "311", 
"carrier_mnc": "660", 
"account_type": "Postpaid", 
"last_known_event": "Ported", 
"porting_date": "2014-11-15T00:00Z", 
"previous_carrier_id": "3022", 
"previous_carrier_name": "SPRINT." 
} 
, 
"ext_trx_id": "sample_ext_trx_id",
"ext_reseller_cust_id": "123456", 
"tracking_id": "200290035921500446652035" 
} 

Case 2 :
Deactivation Date : November 14th, 2014
Porting Date : November 13th, 2014

{ 
"numberidentity":  
{ 
"number": "+167893XXXXX", 
"validity": "true", 
"carrier_id": "3022", 
"carrier_name": "METRO PCS INC.", 
"number_type": "M", 
"country_iso_code": "USA", 
"country": "United States", 
"carrier_mcc": "311", 
"carrier_mnc": "660", 
"account_type": "Postpaid", 
"last_known_event": "Ported", 
"porting_date": "2014-11-13T00:00Z", 
"previous_carrier_id": "3022", 
"previous_carrier_name": "SPRINT." 
} 
, 
"tracking_id": "200290035921500446656695" 
} 

Case 3 :
Deactivation Date : November 14th, 2014
Porting Date : November 14th, 2014

{ 
"numberidentity":  
{ 
"number": "+167893XXXXX", 
"validity": "true", 
"carrier_id": "3022", 
"carrier_name": "METRO PCS INC.", 
"number_type": "M", 
"country_iso_code": "USA", 
"country": "United States", 
"carrier_mcc": "311", 
"carrier_mnc": "660", 
"account_type": "Postpaid", 
"last_known_event": "Ported", 
"porting_date": "2014-11-14T00:00Z", 
"previous_carrier_id": "3022", 
"previous_carrier_name": "SPRINT." 
} 
, 
"tracking_id": "200290035921500446652977" 
} 

Copyright © 2017 Syniverse Technologies