Order-Domain-Shortcut
From Hostway API Documentation
(Difference between revisions)
Mike.robski (Talk | contribs) |
Mike.robski (Talk | contribs) m (1 revision: Release 103) |
Latest revision as of 11:21, 6 February 2015
Contents |
Order a new domain
This is an example of ordering a domain with the Domain Order Shortcut. It is the same as the Order Domain process, using an existing account in the URL.
Create a new domain registration order
Use PUT /accounts/{accountId}/domains/{domainName} to create a new domain registration order for an existing account.
Request
PUT /accounts/acct839326/domains/ng-test-Fitnesse-shortcut-20141022-1033.com Content-Type: application/json { "domainName":"ng-test-Fitnesse-shortcut-20141022-1033.com", "operation":"register", "term":1, "authInfo":"mysecret", "nameservers":[ "ns1.test.com", "ns2.test.com" ], "contactInfo":{ "registrant":{ "type":"registrant", "firstName":"John", "lastName":"Doe", "company":"ACME Inc.", "street1":"123 First Str.", "city":"Chicago", "zipOrPostal":"34567", "stateOrProvince":"IL", "countryCode":"US", "email1":"john.doe@test.com", "phone1":"+1.9494567890" }, "administrative":{ "type":"administrative", "firstName":"Jane", "lastName":"Smith", "street1":"123 First Str.", "city":"Chicago", "zipOrPostal":"34567", "stateOrProvince":"IL", "countryCode":"US", "email1":"jane.smith@test.com", "phone1":"+1.9494567891", "fax1":"+1.9494567891" }, "billing":{ "type":"billing", "firstName":"James", "lastName":"Johnson", "street1":"123 First Str.", "city":"Chicago", "zipOrPostal":"34567", "stateOrProvince":"IL", "countryCode":"US", "email1":"james.johnson@test.com", "phone1":"+1.9494567891" }, "technical":{ "type":"technical", "firstName":"Paul", "lastName":"Stevenson", "street1":"123 First Str.", "city":"Chicago", "zipOrPostal":"34567", "stateOrProvince":"IL", "countryCode":"US", "email1":"paul.stevenson@test.com", "phone1":"+1.9494567891" } } }
Response
202 Accepted Content-Type : application/json { "orderId":"00000149387d9e73153111a9007f000000010001", "links":[ { "href":"http://coreapi01.ote.chicago.hostway:8100/orders/00000149387d9e73153111a9007f000000010001", "rel":"self" } ] }