Registers a new domain.
https://backoffice.hostcontrol.com/api/v1/domain
Parameter | Required? | Description | Example value |
---|---|---|---|
customer | required | Id of the customer. | 35 |
domain | required | The actual domain name. | example.com |
interval | optional | Set the interval (in months) of the domain name. Currently only 12 months is supported. | 12 |
POST https://backoffice.hostcontrol.com/api/v1/domain
POST Data
{
"customer": 35,
"domain": "testdomainnn.com",
"interval": 12
}
Result
{
"result": {
"status": "delivered",
"updated": "2013-10-22T14:28:36.896498+00:00",
"managed": false,
"deleted": null,
"expires": "2014-10-22T14:28:36.895585+00:00",
"is_customer_manageable": true,
"customer": {
"is_enabled": true,
"updated": "2013-10-22T11:46:14.077236+00:00",
"is_dns_management_enabled": true,
"created": "2013-10-22T11:46:14.077191+00:00",
"primary_contact": {
"city": "Groningen",
"fax": "",
"voice": "+31.612345678",
"updated": "2013-10-22T11:46:14.084454+00:00",
"name": "John Doe",
"created": "2013-10-22T11:46:14.084419+00:00",
"gender": null,
"organisation": "",
"extra": {},
"zipcode": "1234AA",
"email": "john@doe.com",
"state": "Groningen",
"address": "Street 123",
"domains": [
"exampledomainnnn.com",
"exampledomainnnnnn.com",
"iasdjoaisjdasoijd.com",
"testdomainnn.com"
],
"vat_number": null,
"country": {
"code": "NL",
"name": "Netherlands"
},
"type": "primary",
"id": 55
},
"is_receiving_support_notifications": true,
"is_ns_management_enabled": true,
"is_verified": true,
"id": 35
},
"name": "testdomainnn.com",
"redirects": [],
"created": "2013-10-22T14:28:36.896467+00:00",
"is_privacy_protect_enabled": false,
"interval": 12,
"hosting": null,
"renew": true,
"tld": {
"name": "com"
}
},
"success": true
}