Register Contact for EU Domains - register eu contact

Registers a contact for EU domains.

<?php
$result = $client->sendCommand("register eu contact",array(
    "name" => "John Smith",
    "company" => "Example Trading Ltd.",
    "e-mail" => "john@examplemail.com",
    "id" => "EU:JOHN-SMITH",
    "phone" => "+36.301112222",
    "fax-no" => "+36.12111223",
    "vat" => "HU1234567",
    "street-1" => "Main Street 22",
    "street-2" => "Near City Hall",
    "street-3" => "",
    "city" => "Budapest",
    "zip" => "1051",
    "state" => "Central Hungary",
    "country" => "hu",
    "lang" => "hu",
    "password-plain" => "",
    "password-md5" => "6e456df8b805a15086f98c7b81c778cc",
    "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; /^EU:[-A-Z0-9_.]{1,64}$/
  • 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-1: must be set; max. 255 characters
  • street-2: does not have to be set; max. 255 characters
  • street-3: does not have to be set; if set, street-2 must also 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
  • lang: must be set; language the contact intends to use when communicating with EURid; only languages spoken within the European Union; 2 characters
  • password-plain: does not have to be set; password in plain text; 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}$/

Exactly one of password-plain, password-md5, and password must be set. When using hashes (crypt or md5), only ASCII passwords should be hashed; otherwise authentication issues may occur.

Some field descriptions contain regular expressions between slashes (Perl-compatible). The field value must match the expression.