ResellerListSinglePlan

Retrieve information for 1 reseller plan.

Input

Parameter Value Example value
id Plan ID
Parameter is required
6


Output

Parameter Value Example value
success command executed successfully 0 = error
1 = command executed successfully
command_response_message Error
Only sent when value parameter success = 0
incorrect password
id Unique ID (numeiric).
Only sent when value parameter success = 1
45221
plan Plan name.
Only sent when value parameter success = 1
Silver
domains Maximal amount of domains that can be hosted.
Only sent when value parameter success = 1
50
If output = 'x' this means 'unlimited'
bandwidth Amount bandwitdh (in MBs) available
Only sent when value parameter success = 1
75000
If output = 'x' this means 'unlimited'
diskspace Amount diskspace (in MBs) available.
Only sent when value parameter success = 1
5000
bandwidth_bonus Bandwidth monthly bonus (in MBs) available.
Only sent when value parameter success = 1
600
diskspace_bonus Diskspace bonus (in MBs) available
Only sent when value parameter success = 1
600
payment_months Minimum amount in months.
Only sent when value parameter success = 1
12
monthly_price Monthly price reseller package. Excluding tax.
Only sent when value parameter success = 1
2.25
country Server country
Possible values: NL, BE and UK
Parameter is required
UK
server_setup Server setup<
Only sent when value parameter success = 1
DirectAdmin, Installatron


Example

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "ResellerListSinglePlan", "id" => "6" ); $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 { ?> <table> <tr> <td><? echo $versio['id']; ?></td> <td><? echo $versio['plan']; ?></td> <td><? echo $versio['domains']; ?></td> <td><? echo $versio['bandwidth']; ?></td> <td><? echo $versio['diskspace']; ?></td> <td><? echo $versio['bandwidth_bonus']; ?></td> <td><? echo $versio['diskspace_bonus']; ?></td> <td><? echo $versio['plan']; ?></td> <td><? echo $versio['bandwidth']; ?></td> <td><? echo $versio['diskspace']; ?></td> <td><? echo $versio['payment_months']; ?></td> <td><? echo $versio['monthly_price']; ?></td> <td><? echo $versio['server_setup']; ?></td> </tr> </table> <? } ?>