All API resources
Tools
Helpers for testing and integration: list seller IDs and score a phone number by whether it has carried traffic on the exchange.
List seller routes
POST/sellers/list
Lists the routes on the exchange that you can see: every public route plus the private routes a seller has opened to you, with the seller's login and i_vendor, the route's i_connection and i_tariff, and its type label. Use i_connection to buy a route and i_tariff to download its rate deck. Free.
Send
pager and off in the form body; they are ignored in the query string. pager is an end position: off=30 with pager=30 returns no routes.Parameters
offintegerform fieldOptionalPosition of the first route to return, counting from 0.
pagerintegerform fieldOptionalPosition at which to stop, exclusive. This is an end position, not a page size: to read routes 30 to 59, send off=30 and pager=60. Send a large value such as 10000 to get every route.
POST/sellers/list
curl --digest -u "$TCXC_USERNAME:$TCXC_API_KEY" -X POST \
"https://apiv2.telecomsxchange.com/sellers/list" \
-d off=0 \
-d pager=10000import os
import requests
from requests.auth import HTTPDigestAuth
resp = requests.post(
"https://apiv2.telecomsxchange.com/sellers/list",
auth=HTTPDigestAuth(os.environ["TCXC_USERNAME"], os.environ["TCXC_API_KEY"]),
data={"off": 0, "pager": 10000},
)
print(resp.json())$ch = curl_init("https://apiv2.telecomsxchange.com/sellers/list");
curl_setopt_array($ch, [
CURLOPT_HTTPAUTH => CURLAUTH_DIGEST,
CURLOPT_USERPWD => getenv('TCXC_USERNAME') . ':' . getenv('TCXC_API_KEY'),
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => http_build_query(['off' => 0, 'pager' => 10000]),
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);Response
{
"status": "success",
"routes": [
{
"seller_name": "NorthStarTel",
"i_vendor": "112",
"route_name": "UAE Premium",
"i_connection": "128",
"i_tariff": "129",
"private": "0",
"i_private_connection": null,
"type": "NA"
},
{
"seller_name": "NorthStarTel",
"i_vendor": "112",
"route_name": "Egypt CLI",
"i_connection": "133",
"i_tariff": "134",
"private": "1",
"i_private_connection": "57",
"type": "NA"
}
]
}