ServiceAttributes-core.dnr

From Hostway API Documentation
(Difference between revisions)
Jump to: navigation, search
(Created page with "= Domain Name Registration Service Attributes = Attributes used when configuring the Domain Name Registration service. __TOC__ == Attributes Body == <nowiki> { "domainName...")
 
m (1 revision: Release 100)
 
(8 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
  <nowiki>
 
  <nowiki>
 
{
 
{
  "domainName": "mydomain.com",
+
  "domainName": "mydomain.com",
  "operation": "register",
+
  "operation": "register",
  "registrationPeriod": 1,
+
  "term": 1,
  "authInfo": "mysecret",
+
  "authInfo" : "mysecret",
  "nameservers": [ "ns1.siteprotect.com", "ns2.siteprotect.com" ],
+
  "nameservers" : [ "ns1.myprovider.com", "ns2.myprovider.com" ],
  "contactList": [
+
  "extraParams": [{"name": "us_nexus", "value": "C11"}, {"name": "us_purpose", "value": "P1"}],
    {
+
  "contactInfo" : {
      "type": "admin",
+
       "registrant": {
      "firstName": "John",
+
        "type": "registrant",
      "lastName": "Doe",
+
        "firstName": "John",
      "company": "ACME Inc.",
+
        "lastName": "Doe",
      "address1": "123 First Str.",
+
        "company": "ACME Inc.",
       "city": "Chicago",
+
        "street1": "123 First Str.",
      "postal": "34567",
+
        "city": "Chicago",
      "province": "IL",
+
        "zipOrPostal": "60000",
      "countryCode": "US",
+
        "stateOrProvince": "IL",
      "email": "john.doe@mycompany.com",
+
        "countryCode": "US",
      "phone": "+1.312.456789098"
+
        "email1": "john.doe@test.com",
    },
+
        "phone1": "+1.123.5555555" },
    {
+
       "administrative": {
      "type": "registrant",
+
        "type": "administrative",
      "firstName": "Jane",
+
        ...
      "lastName": "Smith",
+
       },
      "address1": "123 First Str.",
+
       "billing": {
      "city": "Chicago",
+
        "type": "billing",
      "postal": "34567",
+
        ...
      "province": "IL",
+
       },
      "countryCode": "US",
+
       "technical": {
      "email": "jane.smith@mycompany.com",
+
        "type": "technical",
      "phone": "+1.312.456789111",
+
        ...
       "fax": "+1.312.456789112"
+
       }
    },
+
  }
    {
+
      "type": "billing",
+
      "firstName": "James",
+
      "lastName": "Johnson",
+
      "address1": "123 First Str.",
+
       "city": "Chicago",
+
       "postal": "34567",
+
      "province": "IL",
+
      "countryCode": "US",
+
      "email": "james.johnson@mycompany.com",
+
       "phone": "+1.312.456789111"
+
    },
+
    {
+
       "type": "technical",
+
      "firstName": "Paul",
+
      "lastName": "Stevenson",
+
      "address1": "123 First Str.",
+
      "city": "Chicago",
+
      "postal": "34567",
+
      "province": "IL",
+
      "countryCode": "US",
+
      "email": "paul.stevenson@mycompany.com",
+
       "phone": "+1.312.456789111"
+
    }
+
  ]
+
 
}
 
}
 
  </nowiki>
 
  </nowiki>
  
 
==== Parameters ====
 
==== Parameters ====
; domainName
+
; domainName - ''string''
: The domain name for this registration.
+
: The domain name
 
+
; operation - ''string''
; operation
+
: "register" to register a domain
: The requested operation. Supported values:
+
: "transfer" to transfer a domain
:: ''register'' - used to request registration of the domain name.
+
; term - ''integer''
 
+
: the registration term (period) in years
; registrationPeriod
+
; authInfo - ''string''
: The domain name registration period in years.
+
: authentication info, required for transfer operation
 
+
; nameservers - ''list of strings''
; authInfo
+
: domain name servers (DNS) for the domain
: The password for the authentication of domain name operations.
+
{{ExtraParam}}
 
+
; company - ''string'' (optional)
; nameservers
+
: The company or organization name
: List of nameservers for the domain name.
+
; firstName - ''string''
 
+
: The first name of the contact person
; contactList
+
; lastName - ''string''
: List of the contacts for the domain name. Required contacts types: ''admin'', ''registrant'', ''billing'', ''technical''.
+
: The last name of the contact person
 +
; street1 - ''string''
 +
: The street address
 +
; street2 - ''string'' (optional)
 +
: The second line of the street address (if any)
 +
; city - ''string''
 +
: The city
 +
; countryCode - ''string''
 +
: The international 2-letter country code
 +
; stateOrProvince - ''string''
 +
: The state or province. For US states use the 2-letter state code
 +
; zipOrPostal - ''string''
 +
: The postal code
 +
; email1 - ''string''
 +
: The e-mail address of the contact person
 +
; phone1 - ''string''
 +
: The phone number of the contact person in valid [http://en.wikipedia.org/wiki/E.164 E.164] format, e.g. +1.3209270625
  
 
== See also ==
 
== See also ==
 +
* [[ServiceAttributesStructure|Service Attributes Structure]]
 
* [[Orders|Orders API]]
 
* [[Orders|Orders API]]
 +
* [[Account|Account Management API]]
  
 
{{disqus}}
 
{{disqus}}
 
[[Category:Hostway API]]
 
[[Category:Hostway API]]
 +
[[Category:Ordering API]]
 +
[[Category:Account Management API]]

Latest revision as of 23:07, 18 November 2014

[edit] Domain Name Registration Service Attributes

Attributes used when configuring the Domain Name Registration service.

Contents


[edit] Attributes Body

{
   "domainName": "mydomain.com",
   "operation": "register",
   "term": 1,
   "authInfo" : "mysecret",
   "nameservers" : [ "ns1.myprovider.com", "ns2.myprovider.com" ],
   "extraParams": [{"name": "us_nexus", "value": "C11"}, {"name": "us_purpose", "value": "P1"}],
   "contactInfo" : {
      "registrant": {
         "type": "registrant",
         "firstName": "John",
         "lastName": "Doe",
         "company": "ACME Inc.",
         "street1": "123 First Str.",
         "city": "Chicago",
         "zipOrPostal": "60000",
         "stateOrProvince": "IL",
         "countryCode": "US",
         "email1": "john.doe@test.com",
         "phone1": "+1.123.5555555" },
      "administrative": {
         "type": "administrative",
         ...
      },
      "billing": {
         "type": "billing",
         ...
      },
      "technical": {
         "type": "technical",
         ...
      }
   }
}
 

[edit] Parameters

domainName - string
The domain name
operation - string
"register" to register a domain
"transfer" to transfer a domain
term - integer
the registration term (period) in years
authInfo - string
authentication info, required for transfer operation
nameservers - list of strings
domain name servers (DNS) for the domain
extraParams - list of extra params (optional)
List of additional parameters required for some TLDs. Each parameter is an object with "name" and "value" fields. For example, .us registration requires the fields "us_nexus" which can be one of the following [C11, C12, C21, C31, C32] - see What are Domain Name Application Purpose Codes? and "us_purpose" which can be one of [P1, P2, P3, P4, P5] - see What do the Nexus Codes mean? You can find more information on extra parameters in the GET /domains/tlds/{tld}/extparams documentation.
company - string (optional)
The company or organization name
firstName - string
The first name of the contact person
lastName - string
The last name of the contact person
street1 - string
The street address
street2 - string (optional)
The second line of the street address (if any)
city - string
The city
countryCode - string
The international 2-letter country code
stateOrProvince - string
The state or province. For US states use the 2-letter state code
zipOrPostal - string
The postal code
email1 - string
The e-mail address of the contact person
phone1 - string
The phone number of the contact person in valid E.164 format, e.g. +1.3209270625

[edit] See also


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox