List Ratecenters
List ratecenters in a given state
POST
https://txtria.com/api/getratecenter
Query Parameter
Key | Description | Required | Example |
---|---|---|---|
state | Number state | Yes | CA |
$url = 'https://txtria.com/api/getratecenter';
$data = array(
'state' => 'BC',
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Example Response
{
"success": "1",
"data": [
{
"state": "BC",
"ratecenter": "ABBOTSFORD",
"areacodes": [
"778"
],
"available": 49
},
{
"state": "BC",
"ratecenter": "KELOWNA",
"areacodes": [
"778"
],
"available": 22
}
]
}