How can I pre-register via the API?

A pre-registration works exactly similar to a domain registration request, via the createDomainRequest command. A list of available extensions can be found in this knowledge base article. Note that an IDN extension needs to be entered in encoded form. An example of a valid command:

$request = new OP_Request;
  ->setAuth(array('username' => 'username', 'password' => 'password'))
    'ownerHandle' => 'AB012345-NL',
    'adminHandle' => 'AB012345-NL',
    'techHandle' => 'AB012345-NL',
    'billingHandle' => 'AB012345-NL',
    'domain' => array(
      'name' => 'pre-register',
      'extension' => 'nyc'
    'period' => '1',
    'nsGroup' => 'dns-openprovider',
$reply = $api->setDebug(1)->process($request);
echo "Code: " . $reply->getFaultCode() . "\n";
echo "Error: " . $reply->getFaultString() . "\n";
echo "Value: " . print_r($reply->getValue(), true) . "\n";
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Article is closed for comments.