Register Contact for SK Domains - register sk contact

Registers a contact for SK domains.

<?php
$result = $client->sendCommand("register sk contact",array(
    "name" => "John Smith",
    "company" => "Example Trading Ltd.",
    "e-mail" => "john@examplemail.com",
    "id" => "SK-JOHN-SMITH",
    "phone" => "+36.301112222",
    "fax-no" => "+36.12111223",
    "street" => "Main Street 9",
    "city" => "Budapest",
    "zip" => "1051",
    "state" => "Central Hungary",
    "country" => "hu",
    "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; /^SK-[-A-Z0-9_.]{1,13}$/
  • 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-value: must be set. Additional identification value. Two variants: individual or legal entity.
    • Individual: 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; plain text password; 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), 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.

The contact type (legal entity or individual) is determined by whether ident-value contains a valid date in YYYY-MM-DD format. If it does, it is considered an individual; otherwise, it is considered a legal entity.