To obtain all the avaliable products by prefix of country.

Parameter Description
prefix Integer. Country Prefix. How get prefixes?

    curl --request POST \
         --url https://unicomusaonline.com/api/v1/products \
         --header 'x-iotopup-user: USER' \
         --header 'x-iotopup-password: PASSWORD' \
         --header 'x-iotopup-key: KEY' 
         --data 'prefix=209'
            

    var client = new RestClient("https://unicomusaonline.com/api/v1/products");
    var request = new RestRequest(Method.POST);
    
    request.AddHeader("x-iotopup-user", "APP-USER");
    request.AddHeader("x-iotopup-password", "APP-PASSWORD");
    request.AddHeader("x-iotopup-key", "APP-KEY");
    
    request.AddParameter("prefix", "509");

    IRestResponse response = client.Execute(request);
            

    $params = array(
            
        'prefix' => 509
    );

    $curl = curl_init(); 
        
    curl_setopt_array($curl, array(
        CURLOPT_URL => "https://unicomusaonline.com/api/v1/products",
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_ENCODING => "",
        CURLOPT_MAXREDIRS => 10,
        CURLOPT_TIMEOUT => 30,
        CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
        CURLOPT_POSTFIELDS => $params,
        CURLOPT_CUSTOMREQUEST => "POST",
        CURLOPT_HTTPHEADER => array(
                "x-iotopup-user: USER",
                "x-iotopup-password: PASSWORD",
                "x-iotopup-key: KEY"
            ),
        ));

        $response = curl_exec($curl);
        $err = curl_error($curl);

        curl_close($curl);

        if ($err) {
            
            echo $err;
            
        } else {
            echo $response;
        }
            

        {
        "response_code": 200,
        "error_message": null,
        "response": [
                {
                  "id": "2",
                  "name": "Natcom Haiti",
                  "logo_path": "https://www.unicomusaonline.com/core/images/operators/nm-20150823080418.jpg",
                  "min": 4,
                  "max": "100.00",
                  "discount": "15.00",
                  "currency_code": "HTG",
                  "fx": 45.1
                },
                {
                  "id": "1",
                  "name": "Digicel Haiti",
                  "logo_path": "https://www.unicomusaonline.com/core/images/operators/dc-20150823080335.jpg",
                  "min": "5.00",
                  "max": "70.00",
                  "discount": "12.00",
                  "currency_code": "HTG",
                  "fx": "62.25"
                }
            ]
        }
            
Field Description
id Integer. Product ID.
name String. Product Name.
logo_path String. The URL of the product logo.
min Double. The minimum denomination allowed.
max Double. The maximum denomination allowed.
discount Double. Your discount.
currency_code String. The destination currency code.
fx double. The fx used by operator.