Register Contact for HU Domains - register hu contact
Registers a contact for HU domains.
<?php $result = $client->sendCommand("register hu contact",array( "name" => "John Smith", "company" => "Example Trading Ltd.", "e-mail" => "john@examplemail.com", "id" => "JOHN-SMITH", "phone" => "+36.301112222", "fax-no" => "+36.12111223", "street" => "Main Street 9", "city" => "Budapest", "zip" => "1051", "state" => "Central Hungary", "country" => "hu", "ident-type" => "L", "ident-value" => "HU6603", "password-plain" => "!secret!password", "password-md5" => "", "password-crypt" => "" )); ?>
Field Description
- name: must be set; max. 50 characters
- company: does not have to be set; set only for companies and organizations; max. 100 characters
- email: must be set; max. 128 characters; /^[a-z0-9_.-]{1,}@[a-z0-9.-]{1,}$/
- id: must be set;
- phone: must be set; /^+[1-9][0-9]{0,3}.[0-9]{1,14}$/
- fax-no: does not have to be set; /^+[1-9][0-9]{0,3}.[0-9]{1,14}$/
- vat: does not have to be set; contact VAT ID
- street: must be set; max. 255 characters
- city: must be set; max. 255 characters
- zip: must be set; max. 10 characters
- state: state or province; does not have to be set; max. 255 characters
- country: must be set; ISO code of a country located in the European Union; lowercase only; 2 characters
- ident-type: must be set. Extra identification type. Two variants: natural person and legal entity. Values: N/L
- ident-value: must be set. Extra identification value. Two variants: natural person and legal entity.
- Natural person: date of birth in YYYY-MM-DD format; /^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/
- Legal entity: company registration number or equivalent; max. 32 characters
- password-plain: does not have to be set; password in readable form; max. 50 characters; ASCII only
- password-md5: does not have to be set; md5 password hash; /^[0-9a-f]{32}$/
- password-crypt: does not have to be set; password in crypt format; /^[a-zA-Z0-9\/.]{13}$/
Notes
Exactly one of password-plain, password-md5, and password must be set. When using hashes (crypt or md5), ASCII-only passwords must be hashed; otherwise authentication problems may occur.
Some field descriptions contain regular expressions between slashes (Perl-compatible). The field value must then match the expression.
The contact type (legal entity or natural person) is determined by whether the ident-value is a valid date in YYYY-MM-DD format. If it is, the contact is a natural person; otherwise it is a legal entity.