## Example of the Billing Account Configuration File

Important: In the XML file the subscription period should be indicated in seconds (system requirement). The duration of all subscription periods in seconds is:

- One month - 2592000 sec;
- Three months - 7776000 sec;
- Six months - 15552000 sec;
- One year - 31104000 sec;
- Two years - 62208000 sec;

The XML file can describe a number of different accounts and several subscriptions associated with each account.

Note: The size of the XML file should not exceed 5 MB.

Roughly, the structure of the XML file that contains the customer billing data is the following:

<DATA>

<ACCOUNT>

...account properties and credit card profile

<SUBSCRIPTION>

...subscription properties

</ SUBSCRIPTION>

...

<SUBSCRIPTION>

...

</ SUBSCRIPTION>

</ACCOUNT>

<ACCOUNT>

...

</ACCOUNT>

...

</DATA>

Below is the example of the XML file that contains the customer billing data to be imported into the HSPcomplete.

<DATA>

<ACCOUNT>

<ACCOUNT_ID>955</ACCOUNT_ID>

<NAME>H2Host.net</NAME>

<BALANCE>99.77</BALANCE>

<FNAME>John</FNAME>

<LNAME>Smith</LNAME>

<EMAIL>smith@mail.com</EMAIL>

<!--the tag below defines the account type: 0 – personal, 1 - business -->

<CORPORATE>0</CORPORATE>

<!-- only one address allowed for each account -->

<ADDRESS>

<ADDRESS1>Address</ADDRESS1>

<ADDRESS2>Address2</ADDRESS2>

<CITY>City</CITY>

<STATE>State</STATE>

<ZIP>123456</ZIP>

<COUNTRY>Country</COUNTRY>

<PHONE>1|403|11223344|</PHONE>

</ADDRESS>

<!--only one credit card allowed for each account-->

<CREDIT_CARD>

<NUMBER>4620000000000001</NUMBER>

<EXP_YEAR>2008</EXP_YEAR>

<EXP_MONTH>08</EXP_MONTH>

<NAME>John Smith</NAME>

<ADDRESS>

<ADDRESS1>Cardholder Address1</ADDRESS1>

<ADDRESS2> Cardholder Address2</ADDRESS2>

<CITY>City</CITY>

<STATE>State</STATE>

<ZIP>123456</ZIP>

<COUNTRY>Country</COUNTRY>

<PHONE>1|403|11223344|</PHONE>

</ADDRESS>

</CREDIT_CARD>

<SUBSCRIPTION>

<!--the tag below defines the type of hosting to migrate: WH is web hosting -->

<MIGRATION_CLASS>WH</MIGRATION_CLASS>

<!--the tag below defines the type of the remote server-->

<SERVER_TYPE>WEBppliance2</SERVER_TYPE>

<SERVER_IP>10.0.8.12</SERVER_IP>

<PLAN>Linux Ultra</PLAN>

<!-- the tag below defines the subscription period in seconds -->

<PERIOD>2592000</PERIOD>

<ENDDATE>2004-02-02</ENDDATE>

<SUBSCR_FEE>19.9</SUBSCR_FEE>

<SUBSCR_BALANCE>44</SUBSCR_BALANCE>

<DOMAIN>domain.com</DOMAIN>

</SUBSCRIPTION>

</ACCOUNT>

Please send us your feedback on this help page