To get transactions.

Parameter Description
date_from Datetime. Start date. (Format: yyyy-mm-dd)
date_to Datetime. End date. (Format: yyyy-mm-dd)

    curl --request GET \
         --url https://unicomusaonline.com/api/v1/transactions?date_from=2016-05-01&date_to=2016-05-31 \
         --header 'x-iotopup-user: USER' \
         --header 'x-iotopup-password: PASSWORD' \
         --header 'x-iotopup-key: KEY' 
            

    var client = new RestClient("https://unicomusaonline.com/api/v1/transactions");
    var request = new RestRequest(Method.GET);
    
    request.AddHeader("x-iotopup-user", "APP-USER");
    request.AddHeader("x-iotopup-password", "APP-PASSWORD");
    request.AddHeader("x-iotopup-key", "APP-KEY");
    
    request.AddParameter("date_from", "2016-05-01");
    request.AddParameter("date_to", "2016-05-31");

    IRestResponse response = client.Execute(request);
            


    $curl = curl_init(); 
        
    curl_setopt_array($curl, array(
        CURLOPT_URL => "https://unicomusaonline.com/api/v1/transactions?date_from=2016-05-01&date_to=2016-05-31",
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_ENCODING => "",
        CURLOPT_MAXREDIRS => 10,
        CURLOPT_TIMEOUT => 30,
        CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
        CURLOPT_CUSTOMREQUEST => "GET",
        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": "",
  "response": [
    {
      "id": "10899",
      "status": "OK",
      "source": "API",
      "created": "2016-05-15 18:28:39",
      "ip": "73.139.84.255",
      "country_recharged": "CUBA",
      "destination_currency_code": "CUC",
      "phone_number": "99999999987",
      "product_name": "CubaCel Cuba",
      "amount": "2.00",
      "delivered_amount": "0.00",
      "commission": "0.04",
      "customer_reference_id": 0
    },
    {
      "id": "10995",
      "status": "OK",
      "source": "API",
      "created": "2016-05-20 20:42:20",
      "ip": "73.139.84.255",
      "country_recharged": "DOMINICAN REPUBLIC",
      "destination_currency_code": "DOP",
      "phone_number": "18292617732",
      "product_name": "Orange Dominican Republic",
      "amount": "5.00",
      "delivered_amount": "205.00",
      "commission": "0.35",
      "customer_reference_id": 777
    }
  ]
}
            
Field Description
id Int. Transaction ID.
status String. Status of transaction.
source String. Source of transaction.
created Datetime. Transaction datetime.
ip String. The IP from where was made the transaction.
country_recharged String. Country recharged.
destination_currency_code String. Destination currency code.
phone_number String. Destination phone.
product_name String. Product name.
amount Double. Recharged amount.
delivered_amount Double. Delivered amount.
commission Double. Commission paid.
customer_reference_id Int. Customer reference sent when the customer made submit the transaction.