How to retrieve TATA communications wholesale voice rates via API


TCXC members get to access all carriers rates for voice, SMS and DIDs using a RESTful API provided by the platform for members .


In this example we demonstrate how you can retrieve and access TATA communications voice rates using an HTTP API request that is simple to use and implement into your applications.


Use Cases:


  • Keep systems up to date with rates from carriers programmatically
  • Run real-time rate lookups before making a routing decision from third party routing systems
  • Sync rates daily from multiple carriers to build machine learning (ML) applications and charts that are useful in the future.


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