Extended LRN

The Extended LRN Data API allows you to look up Local Routing Number (LRN/LNP) information in an extended format with the addition of providing Line Provider and Line Type Details.

The LRN Data API can be used in:

  • Routing (perform a dip to retrieve the LRN and based on whether the number has been ported route the call to its ultimate destination)
  • Billing (validating that the calls in the past were billed and or routed correctly by checking LRNs for the telephone number against the LRNs in the CDRs)
  • Billing (inter/intra regions or carriers are sometimes billed differently than normal calls based on your agreements)
  • Modeling legitimate calls in order to detect fraud

Please note there could be an additional cost for running this type of lookup. Please check with your account manager for pricing details.

Parameters

KeyDescriptionTypeRequired
account_idThe account id used to generate your
auth-token
string()yes
tn10-digit phone numberstring()yes

GET /v2/accounts/{account_id}/lookup/extended-lrn/{tn}

curl -v -X GET \ -H "X-Auth-Token: {AUTH_TOKEN}" \ 
http://{SERVER}:{PORT}/v2/accounts/{ACCOUNT_ID}/lookup/extended-lrn/{TN} 

Response Schema

KeyDescriptionTypeDefault Data
tnprovided tn Parameterstring()
lrnLocal Routing Numberstring()
port_statusIf the numbers has been portedstring()Y = Yes
N = No
ocnOperating Carrier Numberstring()
line_typeProvides the type of service
line associated with the tn
string()0 -> Wireline
1 -> Wireless
2 -> VOIP
spidThe four-digit
identifier of SP
String()
spid_carrier_nameName of the
Service Provider
string()
spid_carrier_typeType of Service Providerstring()
altspidThe four-digit
identifier of a
second service provider
associated 
string()
altspid_carrier_namestring()
altspid_carrier_typestring()
cityCity TN is located instring()
StateState TN is located instring()
line_typeLine Type Detailsstring()landline
mobile

In addition to the keys listed above you will also find the line_provider details

  • id – Line Provider’s Carrier ID if provided (not Required)
  • name – The Line Provider’s Name
  • mms_email – If a mobile number, we will also provide the mms email address
  • sms_email – If a mobile number, we will also provide the sms email address

Below is an example of data provided for a SMS/Mobile enabled Number:

"data": {
        "tn": "5708323341",
        "lrn": "",
        "ported_status": "N",
        "ocn": "6392",
        "line_type": "1",
        "spid": "6006",
        "spid_carrier_name": "CELLCO PARTNERSHIP DBA VERIZON WIRELESS - PA",
        "spid_carrier_type": "",
        "altspid": "",
        "altspid_carrier_name": "",
        "altspid_carrier_type": "",
        "city": "MILFORD",
        "state": "Pennsylvania",
        "line_provider": {
            "id": "6006",
            "mms_email": "5708323341@vzwpix.com",
            "name": "Verizon Wireless",
            "sms_email": "5708323341@vtext.com"
        },
        "linetype": "mobile"
Updated on September 23, 2019

Was this article helpful?

Related Articles

Not the solution you were looking for?
Click the link below to submit a support ticket
Submit Ticket

Leave a Comment