Client create

Before you can order anything you must have a client ID to order for. The function is used to create clients that will belong to your partner ID.

XML Template

<?xml version="1.0" encoding="UTF-8"?>
<request
   xmlns:client="http://www.proisp.no/client"
   xmlns:billing="http://www.proisp.no/billing">

 <client:create>
   <client:firstname>#FIRSTNAME#</client:firstname>
   <client:lastname>#LASTNAME#</client:lastname>
   <client:address>#ADDRESS#</client:address>
   <client:address2>#ADDRESS2#</client:address2>
   <client:zipcode>#ZIP/POSTAL CODE#</client:zipcode>
   <client:city>#CITY#</client:city>
   <client:state>#STATE#</client:state>
   <client:country>#COUNTRY#</client:country>
   <client:currency>#CURRENCY#</client:currency>
   <client:language>#LANGUAGE#</client:language>
   <client:email>#EMAIL ADDRESS#</client:email>
   <client:phone>#PHONE#</client:phone>
   <client:mobile>#MOBILE#</client:mobile>
   <client:fax>#FAX#</client:fax>
   <client:invoice>#INVOICE OPTION#</client:invoice>
   <client:password>#PASSWORD#</client:password>
   <client:organization>#ORGANIZATION#</client:organization>
   <client:organization_id>#ORGANIZATION ID#</client:organization_id>
   <client:ns>
     <client:hostObj>#NAMESERVER#</client:hostObj>
   </client:ns>
 </client:create>

 <billing:create>
   <billing:firstname>#FIRSTNAME#</billing:firstname>
   <billing:lastname>#LASTNAME#</billing:lastname>
   <billing:address>#ADDRESS#</billing:address>
   <billing:address2>#ADDRESS2#</billing:address2>
   <billing:zipcode>#ZIP/POSTAL CODE#</billing:zipcode>
   <billing:city>#CITY#</billing:city>
   <billing:state>#STATE#</billing:state>
   <billing:country>#COUNTRY#</billing:country>
   <billing:email>#EMAIL ADDRESS#</billing:email>
   <billing:phone>#PHONE#</billing:phone>
   <billing:mobile>#MOBILE#</billing:mobile>
   <billing:fax>#FAX#</billing:fax>
 </billing:create>

</request>



<client:create> (Occurences: 1)
LegendTo replaceExplanation
R#FIRSTNAME#Firstname
R#LASTNAME#Lastname
R#ADDRESS#Address (first line)
O#ADDRESS2#Address (second line)
R#ZIP/POSTAL CODE#Zip/Postal code
R#CITY#City
O#STATE#State
R#COUNTRY#Country code in ISO 3166-1 alpha-2 Standard:
http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
R#CURRENCY#Currency which the client will be billed in. Can never be changed. String of 3 capital letters. Valid values are:
- NOK
- EUR
R#LANGUAGE#Language for communication with client (emails and interfaces). String of 2 lower case letters. Valid values are:
- en (English)
- no (Norwegian)
R#EMAIL ADDRESS#Email address
R#PHONE#Phone number including country calling code. Country calling codes may be found here:
http://en.wikipedia.org/wiki/List_of_country_calling_codes

Number format: CC.XXXXXXXX
CC - Country calling code
XXXXXXXX - Phone number
O#MOBILE#Mobile phone number including country calling code. Country calling codes may be found here:
http://en.wikipedia.org/wiki/List_of_country_calling_codes

Number format: CC.XXXXXXXX
CC - Country calling code
XXXXXXXX - Phone number
O#FAX#Fax number including country calling code. Country calling codes may be found here:
http://en.wikipedia.org/wiki/List_of_country_calling_codes

Number format: CC.XXXXXXXX
CC - Country calling code
XXXXXXXX - Phone number
R#INVOICE OPTION#Determines how the client will receive invoice from PRO ISP (if you have selected that invoices shall be delivered to client). Valid values:
- 0 (by email)
- 1 (by letter and email – extra costs)
R#PASSWORD#Password
O#ORGANIZATION#Organization name.
O#ORGANIZATION ID#Organization ID/VAT number

<client:ns> (Occurences: 1) (Optional)
You may specify default nameservers to be set for domain names you register/transfer for this client.
<client:hostObj> (Occurences: 2-10)
LegendTo replaceExplanation
O#NAMESERVER#Fully qualified domain name of the nameserver

<billing:create> (Occurences: 1) (Optional)
You may specify a billing contant for a client if all billing related information should be directed to this person/entity.
LegendTo replaceExplanation
R#FIRSTNAME#Firstname
R#LASTNAME#Lastname
R#ADDRESS#Address (first line)
O#ADDRESS2#Address (second line)
R#ZIP/POSTAL CODE#Zip/Postal code
R#CITY#City
O#STATE#State
R#COUNTRY#Country code in ISO 3166-1 alpha-2 Standard:
http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
R#EMAIL ADDRESS#Email address
R#PHONE#Phone number including country calling code. Country calling codes may be found here:
http://en.wikipedia.org/wiki/List_of_country_calling_codes

Number format: CC.XXXXXXXX
CC - Country calling code
XXXXXXXX - Phone number
O#MOBILE#Mobile phone number including country calling code. Country calling codes may be found here:
http://en.wikipedia.org/wiki/List_of_country_calling_codes

Number format: CC.XXXXXXXX
CC - Country calling code
XXXXXXXX - Phone number
O#FAX#Fax number including country calling code. Country calling codes may be found here:
http://en.wikipedia.org/wiki/List_of_country_calling_codes

Number format: CC.XXXXXXXX
CC - Country calling code
XXXXXXXX - Phone number

The following request is an example of how to create a client with two default nameservers and a billing contact.

Request example

<?xml version="1.0" encoding="UTF-8"?>
<request
   xmlns:client="http://www.proisp.no/client"
   xmlns:billing="http://www.proisp.no/billing">

 <client:create>
   <client:firstname>Ola</client:firstname>
   <client:lastname>Nordmann</client:lastname>
   <client:address>Skiveien 1</client:address>
   <client:zipcode>4332</client:zipcode>
   <client:city>Figgjo</client:city>
   <client:state>Rogaland</client:state>
   <client:country>no</client:country>
   <client:currency>NOK</client:currency>
   <client:language>no</client:language>
   <client:email>ola@nordmann.no</client:email>
   <client:phone>47.47474747</client:phone>
   <client:mobile>47.48484848</client:mobile>
   <client:fax>47.48484847</client:fax>
   <client:invoice>0</client:invoice>
   <client:password>mitt_passord</client:password>
   <client:ns>
     <client:hostObj>ns1.proisp.no</client:hostObj>
     <client:hostObj>ns2.proisp.no</client:hostObj>
   </client:ns>
 </client:create>

 <billing:create>
   <billing:firstname>Kari</billing:firstname>
   <billing:lastname>Nordmann</billing:lastname>
   <billing:address>Bilveien 3</billing:address>
   <billing:zipcode>4033</billing:zipcode>
   <billing:city>Stavanger</billing:city>
   <billing:state>Rogaland</billing:state>
   <billing:country>no</billing:country>
   <billing:email>kari@nordmann.no</billing:email>
   <billing:phone>47.46464646</billing:phone>
   <billing:mobile>47.46464647</billing:mobile>
   <billing:fax>47.46464648</billing:fax>
 </billing:create>

</request>


Returned XML code if request was successful

<?xml version="1.0" encoding="UTF-8"?>
<response xmlns="http://www.proisp.no/">
 <result code="1000">
   <msg>Command completed successfully.</msg>
 </result>
 <resData>
   <client:create>
     <client:id>#CLIENT ID#</client:id>
   </client:create>
 </resData>
</response>


<resData> (Occurences: 1)
<client:id> (Occurences: 1)
LegendTo replaceExplanation
R#CLIENT ID#Client ID of the newly created client.


Legend
OThe element is optional and does not have to be present in the request and/or answer.
RThe element is mandatory and must be present in the request and/or answer.