0151 355 4555



Checks if the telephone number is registered with the TPS, and so cannot be called for unsolicited direct marketing. If the number can be called for marketing purposes, the Callable field of the TPSOutput structure returned by the service will be set to true. Otherwise, it will be set to false. In either case, the TelephoneNumber field of the structure will be set to the same value as was supplied as the number parameter.

View all Telephone Preference Service (part of the TPS validation service) methods

Code Samples

<!-- Import the Integr8 Ajax API -->
<!-- NOTE: Get your own API key to use in the following script tag from: -->
<!-- http://www.data-8.co.uk/integr8/Admin/Ajax.aspx -->
<script src="https://webservices.data-8.co.uk/Javascript/Loader.ashx?key=your-api-key" type="text/javascript">

<script type="text/javascript">

function loadIntegr8() {
  // Load the TPS Integr8 service

function IsCallable(number) {
  /// <param name="number">string</param>
  var tps = new data8.tps();

function showIsCallableResult(result) {
  // Check that the call succeeded, and show the error message if there was a problem.
  if (!result.Status.Success) {
    alert('Error: ' + result.Status.ErrorMessage);
  else {
    // TODO: Process method results here.
    // Results can be extracted from the following fields:
    // result.Callable
    //   Indicates if the telphone number is callable (i.e. not on the TPS)
    // result.TelephoneNumber
    //   Contains the original telephone number if it is callable.