LRN

he LRN Data API allows you to look up Local Routing Number (LRN/LNP) information in an extended format.

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

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/lrn/{tn}

curl -v -X GET \ -H "X-Auth-Token: {AUTH_TOKEN}" \ 
http://{SERVER}:{PORT}/v2/accounts/{ACCOUNT_ID}/lookup/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 tnstring()0 -> Wireline , 1 -> Wireless , 2 -> VOIP
spidThe four-digit identifier of SPString()
spid_carrier_nameName of the Service Providerstring()
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()

Here is an example of the data pulls on a standard LRN lookup

data": {
        "tn": "4103963835",
        "lrn": "",
        "ported_status": "N",
        "ocn": "9212",
        "line_type": "0",
        "spid": "9211",
        "spid_carrier_name": "VERIZON MARYLAND, INC.",
        "spid_carrier_type": "",
        "altspid": "",
        "altspid_carrier_name": "",
        "altspid_carrier_type": "",
        "city": "BALTIMORE",
        "state": "Maryland"
    }
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