SitebuilderChangeType

Upgrade a Sitebuilder from 'free' to 'premium' or cancel a Sitebuilder. It is not possible to downgrade from 'premium' to 'free'. (Warning: Funds may be required for this command)

Input

Parameter Value Example value
sitebuilder_id ID of the Sitebuilder. Retrieve with SitebuilderList.
Parameter is required if 'domain_id' is not provided.
4312
domain_id ID of the domain name. Retrieve with SitebuilderList.
Parameter is required if 'sitebuilder_id' is not provided.
1234
type Type of the Sitebuilder. Value has to be 'premium' or 'remove'. If you upgrade from 'free' to 'premium', then the price per month will be charged for the remaining months of the domain name (Example: 1,2 months left = 1 month charged, 1,5 months = 2 months charged). If you choose to 'remove' a 'premium' Sitebuilder within 14 days after purchase, the amount charged for the Sitebuilder will be credited automatically.
Parameter is required
premium


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


Example

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "SitebuilderChangeType", "sitebuilder_id" => "4312", "type" => "premium" ); $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['success']==1) { echo("Sitebuilder type succesfully changed."); } ?>