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 VBT type set for Group, Division, Organization or Company level.


Syntax

C#

[OperationContractAttribute()]
SBT.API.DataContracts.Admin.WSVerificationTypeResponse ReadVerificationType(
    string securityToken,
    string orgCode)

 

WSDL

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

Staging: https://test.solutionsbytext.com/Sbt.App.SetUp/wsservices/GeneralWSService.svc?singlewsdl

 

 

Parameters

securityToken

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

orgCode

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


Return Value

WSVerificationTypeResponse
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 rrror code.
VerificationType string This will return verification type for the organization (E.g. PIN, Reserved Word or None).

 

Example

C# 

lblError.Text = "";
GroupClient generalService = new GroupClient("ReportWSServiceHttpEndpoint2");
    string securityToken = txtToken.Text;
    string orgCode = txtOrgCode.Text;

WSVerificationTypeResponse wSVerificationTypeResponse = generalService.ReadVerificationType(securityToken, orgCode);

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

SOAP

Soap Request 
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://SBTService/ServiceContracts/">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:ReadVerificationType>
         <!--Required:-->
         <ser:securityToken>Security Token</ser:securityToken>
         <!--Required:-->
         <ser:orgCode>Org Code</ser:orgCode>
      </ser:ReadVerificationType>
   </soapenv:Body>
</soapenv:Envelope>

            
Soap Response
             
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
     <s:Body>
       <ReadVerificationTypeResponse xmlns="http://SBTService/ServiceContracts/">
         <ReadVerificationTypeResult z:Id="i1" xmlns:a="http://SBTAPIService/DataContract/"  
	 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" 
	 xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
            <a:Result>true</a:Result>
            <a:ErrorCode>1455</a:ErrorCode>
            <a:Message>Successfully read verification type</a:Message>
            <a:VerficationType>Pin/Reservedword/None</a:VerficationType>
         </ReadVerificationTypeResult>
      </ReadVerificationTypeResponse>

     </s:Body>
  </s:Envelope>

PHP

<?php
    $client = new SoapClient("https://ui.solutionsbytext.com/Sbt.App.SetUp/WSServices/GeneralWSService.svc?wsdl");
    $param = array(
  'securityToken' => 'securityToken',
	'orgCode' => 'orgCode'
);

$response = $client->__soapCall('ReadVerificationType', array($param));
echo '<pre/>';
print_r($response);
if($response->GetReadVerificationTypeResult->Result){
	echo 'Message: '.$response->GetReadVerificationTypeResult->Message;
}
else {
	echo 'Message: '.$response->GetReadVerificationTypeResult->Message;
}

?>

REST

Method: GET

URL: https://ui.solutionsbytext.com/SBT.App.SetUp/RSServices/GeneralRSService.svc/ReadVerificationType?securityToken=safdsfs&orgCode=dfsf

Response:

The response will be in JSON format like below:

{" ReadVerificationTypeResult": {
   "Result": true,
   "ErrorCode": 1455,
   "Message": " Successfully read verification type",
   "VerificationType": " Pin"
}}

 

 

Send Feedback