As a TCXC member, you have access to all carrier rates for voice, SMS, and DIDs through a RESTful API provided by the platform. In this example, we will demonstrate how to retrieve and access TATA Communications' voice rates using an HTTP API request that is easy to use and implement into your applications.

There are several use cases for using this API, including keeping systems up to date with carrier rates programmatically, running real-time rate lookups before making routing decisions from third-party routing systems, and syncing rates daily from multiple carriers to build machine learning (ML) applications and charts that will be useful in the future.

To retrieve TATA Communications' voice rates, follow these simple steps:

  1. Obtain an API key from TCXC: Before you can use the API, you will need to obtain an API key from TCXC. This key is unique to your account and will be used to authenticate your requests.

  2. Send an HTTP GET request: To retrieve TATA Communications' voice rates, you will need to send an HTTP GET request to the TCXC API. The request should include your API key and the carrier code for TATA Communications.

  3. Parse the response: The API will respond with a JSON object containing TATA Communications' voice rates. You can parse this response and use the rates in your applications as needed.

By using the TCXC API to retrieve carrier rates, you can streamline your processes and ensure that your systems are always up to date with the latest rates. Whether you are making routing decisions or building machine learning applications, having access to carrier rates via API can be a powerful tool in managing your telecommunications business.


POST:  https://apiv2.telecomsxchange.com/marketview/search


curl --location --request POST 'https://apiv2.telecomsxchange.com/marketview/search' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--form 'prefix=' \
--form 'searchform=1' \
--form 'type=CLI' \
--form 'seller=TATA'\
--form 'pager=100' \
--form 'off=0'


Example API Response


P.S: Rates and Statistics in this example are dummy and not official.

{
  "status": "success",
  "rates": [
    {
      "prefix": "21369",
      "vendor_name": "TATA",
      "connection_name": "Prime",
      "i_tariff": "884",
      "daily_asr": 100,
      "weekly_asr": 25,
      "daily_acd": 129,
      "weekly_acd": 135,
      "daily_minutes": 2,
      "weekly_minutes": 29,
      "stats_time": "2019-10-30 03:23:10",
      "i_connection": "882",
      "effective_from": "10/10/19 4:20PM",
      "price_1": "0.455000",
      "price_n": "0.455000",
      "interval_1": "1",
      "interval_n": "1",
      "i_vendor": "287",
      "capacity_limit": "1500",
      "i_rate": "115796765",
      "forbidden": "0",
      "discontinued": "0",
      "route_type": "CLI",
      "seller_registration_date": "2016-03-23 08:55:40",
      "country_code": "dz",
      "country_name": "Algeria",
      "description": "Mobile - Mobilis",
      "commision_percent": "0",
      "mccmnc": "60301",
      "seller_avg_rating": 5,
      "seller_reviews": 11,
      "rateid": 115796765
    },

Download TATA Prime full rate deck in CSV Fromat


This API allows you to download the current sell rates for a specific seller in CSV format. This API is ideal to retrieve and sync full rate decks into your billing systems.

POST: https://apiv2.telecomsxchange.com/sellers/rates/866"

Prerequisites

You will need to know the i_tariff value for the seller / connection rates you want to retreive, it may be found through {Market View} API and/or {List Seller IDs API}

e.g ID 866 is for i_tariff value for Seller:PureTelephone Route: CLI, you can try that as an example.

Example Response

P.S: Rates in this example are dummy and not official.


Country,Description,Prefix,Effective from,Rate Id,Forbidden,Discontinued,Price 1,Price N,Interval 1,Interval N,Last Day ASR,Last Week ASR,Last Day ACD,Last Week ACD,Last Day Minutes,Last Week Minutes,Statistics Time
UNITED STATES OF AMERICA,Fixed - Paid 800,1800,2018-04-10 20:13:28,59701437,0,0,0,0,1,1,100,100,133,133,4.4167,4.4167,2019-09-30 04:33:34
UNITED STATES OF AMERICA,Fixed - Paid 800,1833,2018-04-10 20:13:28,59701438,0,0,0,0,1,1,0,0,0,0,0,0,0000-00-00 00:00:00
UNITED STATES OF AMERICA,Fixed - Paid 800,1844,2018-04-10 20:13:28,59701439,0,0,0,0,1,1,0,0,0,0,0,0,0000-00-00 00:00:00
UNITED STATES OF AMERICA,Fixed - Paid 800,1855,2018-04-10 20:13:28,59701440,0,0,0,0,1,1,100,100,79,79,6.5833,6.5833,2018-06-11 05:51:08
UNITED STATES OF AMERICA,Fixed - Paid 800,1866,2018-04-10 20:13:28,59701441,0,0,0,0,1,1,0,0,0,0,0,0,0000-00-00 00:00:00
UNITED STATES OF AMERICA,Fixed - Paid 800,1877,2018-04-10 20:13:28,59701442,0,0,0,0,1,1,100,100,11,11,0.1833,0.1833,2018-10-22 03:29:10
UNITED STATES OF AMERICA,Fixed - Paid 800,1888,2018-04-10 20:13:28,59701443,0,0,0,0,1,1,0,0,0,0,0,0,0000-00-00 00:00:00