/srs/get_pricing_tiers


GET https://api.sitehost.nz/1.0/srs/get_pricing_tiers.json

Returns pricing tiers for a client.

Query Parameters

ParameterTypeRequiredDescription
client_idintegerYesThe ID for the client.Example: 1

Code Samples

JavaScript PHP Rails Python
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", "https://api.sitehost.nz/1.0/srs/get_pricing_tiers.json?apikey=your_key_here&client_id=1", false);

xmlHttp.send();

var response = xmlHttp.responseText;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.sitehost.nz/1.0/srs/get_pricing_tiers.json?apikey=your_key_here&client_id=1");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
require 'net/http'
require 'uri'

uri = URI.parse("https://api.sitehost.nz/1.0/srs/get_pricing_tiers.json?apikey=your_key_here&client_id=1")
http = Net::HTTP.new(uri.host, uri.port)
request = Net::HTTP::Get.new(uri.request_uri)

response = http.request(request)
import requests

uri = 'https://api.sitehost.nz/1.0/srs/get_pricing_tiers.json?apikey=your_key_here&client_id=1'

response = requests.get(uri)

Response

200:

application/json
{
  "return": [
    {
      "type": 1,
      "type_name": "NZRS",
      "count": "19",
      "price": "29.00"
    },
    {
      "type": 1,
      "type_name": "NZRS",
      "count": "49",
      "price": "24.00"
    },
    {
      "type": 1,
      "type_name": "NZRS",
      "count": "99",
      "price": "21.00"
    },
    {
      "type": 1,
      "type_name": "NZRS",
      "count": "249",
      "price": "20.50"
    },
    {
      "type": 1,
      "type_name": "NZRS",
      "count": "499",
      "price": "19.50"
    },
    {
      "type": 1,
      "type_name": "NZRS",
      "count": "999",
      "price": "18.50"
    },
    {
      "type": 1,
      "type_name": "NZRS",
      "count": "1000",
      "price": "16.50"
    },
    {
      "type": 2,
      "type_name": "DotSRS",
      "count": "19",
      "price": "29.00"
    },
    {
      "type": 2,
      "type_name": "DotSRS",
      "count": "49",
      "price": "24.00"
    },
    {
      "type": 2,
      "type_name": "DotSRS",
      "count": "99",
      "price": "20.00"
    },
    {
      "type": 2,
      "type_name": "DotSRS",
      "count": "499",
      "price": "18.00"
    },
    {
      "type": 2,
      "type_name": "DotSRS",
      "count": "999",
      "price": "18.00"
    },
    {
      "type": 2,
      "type_name": "DotSRS",
      "count": "1000",
      "price": "15.00"
    }
  ],
  "msg": "Successful.",
  "status": true,
  "time": 24.59
}