Business at the Speed of Text

Take a few minutes to watch how Solutions by Text can provide you with a compliant solution to enhance the customer experience and increase your bottom line through the power of texting.

Watch Videos

Two-Way Texting Changes the Game

Put real-time text responses in your customers’ pockets and real-time access at your staff’s fingertips.

Find Out More

Two-Way Texting Changes the Game

Put real-time text responses in your customers’ pockets and real-time access at your staff’s fingertips.

Find Out More

Business at the Speed of Text

Take a few minutes to watch how Solutions by Text can provide you with a compliant solution to enhance the customer experience and increase your bottom line through the power of texting.

Watch Videos

We're here for you.

Solutions by Text offers 24 hour support - both online and offline.

Give us a Call

Two-Way Texting Changes the Game

Put real-time text responses in your customers’ pockets and real-time access at your staff’s fingertips.

Find Out More

See What's New

Solutions by Text continues to evolve and develop its suite of products and features. Take a look at what's new in our world.

Read more

We Work With the Best

From retail to financial solutions, we’re constantly working with our clients to push the boundaries and find new ways to leverage SMS for business.

See Our Success Stories

Overview

Returns the number of Reverse Phone Lookups done for a given date range.

Syntax

C#

public WSReportReverseLookUpResponse ReverseLookUpDetails(string securityToken, string orgCode, string fromDate, string toDate)

WSDL

Production: https://ui.solutionsbytext.com/Sbt.App.SetUp/wsservices/ReportWSService.svc?singlewsdl

Staging: https://test.solutionsbytext.com/SBT.App.SetUp/wsservices/ReportWSService.svc?singlewsdl

 

Parameters

securityToken

- String[1000] (Required) - Security Token to authenticate the user

orgCode

- String[20] (Required) - Organization Code for the group, division or organization.

fromDate

- String[20] (Required) – Start date from when data for Revers Lookups need to be fetched. Date format is [mm/dd/yyyy].

 toDate

- String[20] (Required) - End date till when data for Revers Lookups need to be fetched. Date format is [mm/dd/yyyy].

Note: Date range should include only current and previous month. For beyond previous month data, please contact SBT team.

 

Return Value

ReversePhoneLookUpDetailsResponse

 

NameTypeDescription
Result bool True/False whether the call was successful or not.
ErrorCode int For Success/Failure it returns an error number.
Message string Message related to error code.
<a:Response> <a:WSReportReversePhoneLookUpRow>
  • OrgTreeStructure – Organization Hierarchy Where Reverse lookup done.
  • OrgCode – Default Organization Code.
  • Phone – Phone number to which Reverse Lookup done.
  • DateTime – Date and Time of Reverse Lookup Done.

 

  <a:PhoneOwner>

For these parameters please refer to 'Reverse Phone Lookup' page by clicking here.

Example

C#

lblError.Text = "";
ReportClient reportService = new ReportClient("ReportWSServiceHttpEndpoint");
string securityToken = txtToken.Text;
string orgCode = txtOrgCode.Text;
string fromDate = txtFromDate.Text;
string toDate = txtToDate.Text;

WSReportReverseLookUpResponse wSReportReverseLookUpResponse = reportService.ReverseLookUpDetails(securityToken, orgCode, fromDate, toDate);

if (!wSReportReverseLookUpResponse.Result)
{
//handle error
lblError.Text = wSReportReverseLookUpResponse.Message; 
}
else
{
//handle success
lblError.Text = wSReportReverseLookUpResponse.Message;
}


SOAP
Soap Request 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://SBTService/ServiceContracts/">
<soapenv:Header/>
<soapenv:Body>
<ser:ReversePhoneLookUpDetails>
<!--Required:-->
<ser:securityToken> Security Token</ser:securityToken>
<!--Required:-->
<ser:orgCode>Organization Code</ser:orgCode>
<!--Required:-->
<ser:fromDate>From Date in ‘mm/dd/yyyy’ format </ser:fromDate>
<!--Required:-->
<ser:toDate> To Date in ‘mm/dd/yyyy’ format </ser:toDate>
</ser:ReversePhoneLookUpDetails>
</soapenv:Body>
</soapenv:Envelope>

Soap

Soap Response 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ReversePhoneLookUpDetailsResponse xmlns="http://SBTService/ServiceContracts/">
<ReversePhoneLookUpDetailsResult xmlns:a="http://SBTAPIService/DataContract/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a:Result>true</a:Result>
<a:ErrorCode>1489</a:ErrorCode>
<a:Message>Successfully retrieved reverse lookup details.</a:Message>
<a:Response>
<a:WSReportReversePhoneLookUpRow>
<a:OrgTreeStructure>Org Tree Structure</a:OrgTreeStructure>
<a:OrgCode>Organization Code</a:OrgCode>
<a:Phone>Phone Number</a:Phone>
<a:PhoneOwner>
<a:id>Phone ID</a:id>
<a:phone_number>Owner Phone number</a:phone_number>
<a:is_valid>true</a:is_valid>
<a:country_calling_code>1</a:country_calling_code>
<a:line_type>A</a:line_type>
<a:carrier>Please refer to carrier lookup API</a:carrier>
<a:is_commercial>false</a:is_commercial>
<a:belongs_to>
<a:WSResversePhoneOwnerName>
<a:name>Full name of phone owner</a:name>
<a:firstname> First name of phone owner </a:firstname>
<a:lastname> Last name of phone owner </a:lastname>
<a:age_range>Age Range of phone owner</a:age_range>
<a:type>Person</a:type>
</a:WSResversePhoneOwnerName>
</a:belongs_to>
<a:current_addresses>
<a:WSReversePhoneOwnerAddress>
<a:location_type>Address</a:location_type>
<a:street_line_1>Line 1 of phone owner address</a:street_line_1>
<a:city>City</a:city>
<a:postal_code>5 digit postal code of city</a:postal_code>
<a:zip4>Zip4 of city</a:zip4>
<a:state_code>two character state code</a:state_code>
<a:country_code>Country Code</a:country_code>
<a:lat_long>
<a:latitude>Latitude of the address</a:latitude>
<a:longitude> Longitude of the address </a:longitude>
<a:accuracy>Accuracy of address. E.g.RoofTop</a:accuracy>
</a:lat_long>
<a:is_active>true</a:is_active>
<a:delivery_point>SingleUnit</a:delivery_point>
<a:link_to_person_start_date>2002-03-01</a:link_to_person_start_date>
</a:WSReversePhoneOwnerAddress>
</a:current_addresses>
<a:historical_addresses/>
<a:associated_people>
<a:WSReversePhoneAssociatedPeople>
<a:id>ID of the associated person </a:id>
<a:name>Full name of associated person</a:name>
<a:relation>Relation to owner</a:relation>
</a:WSReversePhoneAssociatedPeople>
<a:alternate_phones xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<b:string>Alternative phone number of owner</b:string>
</a:alternate_phones>
<a:warnings xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
</a:PhoneOwner>
<a:DateTime>2/19/2018 2:52:18 AM</a:DateTime>
</a:WSReportReversePhoneLookUpRow> </a:Response>
</ReversePhoneLookUpDetailsResult>
</ReversePhoneLookUpDetailsResponse>
</s:Body>
</s:Envelope>



REST
Method: GET


URL: https://ui.solutionsbytext.com/SBT.App.SetUp/RSServices/ReportRSService.svc/ReversePhoneLookUpDetails?securityToken=Security_Token&orgCode=Organization_Code&fromDate=01/01/2018&toDate=02/19/2018

Response:

The response will be in JSON format like below:
{
"ReversePhoneLookUpDetailsResult": {
"Result": true,
"ErrorCode": 1489,
"Message": "Successfully retrieved reverse lookup details.",
"Response": [
{
"OrgTreeStructure": "Organization Name",
"OrgCode": "Default Organization Code",
"Phone": "Phone Number",
"PhoneOwner": {
"WSPhoneOwner response – Name, Phone and Address details with longitude and Latitude, Alternative phone numbers, Alternative Addresses and Associated People will display here in JSON format" 
},
"DateTime": "Date and time of Lookup done"
}
]
}