ResellerListPlans

List available reseller plans.

Input

None

Output

Parameter Value Example value
success command executed successfully 0 = fout
1 = command executed successfully
command_response_message Error
Only sent when value parameter success = 0
incorrect password
total_count Total available packages.
Only sent when value parameter success = 1
20
id_X Unique ID (numeric).
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
45221
plan_X Plan name.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
Silver
domains_X Maximal amount of domains that can be hosted.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
50
If output = 'x' this means 'unlimited'
bandwidth_X Amount bandwitdh (in MBs) available
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
75000
If output = 'x' this means 'unlimited'
diskspace_X Amount diskspace (in MBs) available.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
5000
bandwidth_bonus_X Bandwidth monthly bonus (in MBs) available.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
600
diskspace_bonus_X Diskspace bonus (in MBs) available.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
600
payment_months_X Minimum amount in months.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
12
monthly_price_X Monthly price reseller package. Excluding tax.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
12
country_X Server country
The X runs from 1 to the value of total_count
Possible values: NL, BE and UK
Only sent when value parameter success = 1
UK
server_setup_X Server setup
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
DirectAdmin, Installatron


Example

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "ResellerListPlans" ); $api = new Versio_api(); $versio = $api->api_send( $command ); IF($versio['success']==0) { echo("Error occured. Error code: ".$versio['command_response_code'].". Error message: ".$versio['command_response_message'].""); } else { IF($versio['total_count']>0) { ?> <table> <? $teller = 1; while($versio['total_count']>=$teller) { ?> <tr> <td><? echo $versio['id_'.$teller]; ?></td> <td><? echo $versio['plan_'.$teller]; ?></td> <td><? echo $versio['domains_'.$teller]; ?></td> <td><? echo $versio['bandwidth_'.$teller]; ?></td> <td><? echo $versio['diskspace_'.$teller]; ?></td> <td><? echo $versio['bandwidth_bonus_'.$teller]; ?></td> <td><? echo $versio['diskspace_bonus_'.$teller]; ?></td> <td><? echo $versio['plan_'.$teller]; ?></td> <td><? echo $versio['bandwidth_'.$teller]; ?></td> <td><? echo $versio['diskspace_'.$teller]; ?></td> <td><? echo $versio['payment_months_'.$teller]; ?></td> <td><? echo $versio['monthly_price_'.$teller]; ?></td> <td><? echo $versio['country_'.$teller]; ?></td> <td><? echo $versio['server_setup_'.$teller]; ?></td> </tr> <? $teller++; } ?> </table> <? } else { echo("No plans found."); } } ?>