WebhostingRenew

Verleng een webhosting account.

Input

Parameter Value Example value
username Gebruikersnaam van de webhosting pakket die verlengd moet worden.
Parameter is verplicht
keeshz51
term Moet een cijfer tussen de 1 en 5 zijn.
Hoeveelheid maanden waarvoor dan direct betaald wordt is term * payment_months (zie commando WebhostingListPlans).
Als de minimale periode van dit pakket bijvoorbeeld 12 maanden is en de waarde van parameter term = 2 dan wordt dit account direct betaald voor 24 maanden.
1 = 0% discount
2 = 4% discount
3 = 10% discount
4 = 16% discount
5 = 23% discount
Parameter is verplicht
2


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
expiration_date Datum waarop de webhosting account verloopt.
Only sent when value parameter success = 1
01-09-2018
expiration_stamp Unix timestamp van de verloopdatum van de webhosting account.
Only sent when value parameter success = 1
1535760000


Voorbeeld

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "WebhostingRenew", "username" => "keeshz51", "term" => "1" ); $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 { echo("De webhhosting account is verlengd, de nieuwe verloopdatum is ".$versio['expiration_date']); } ?>