Creates a new order.
https://backoffice.hostcontrol.com/api/v1/order
Parameter | Required? | Description | Example value |
---|---|---|---|
customer | required | Customer id of the ordering customer | 42 |
type | required | Type of order | new, renew, change |
order | required | Order parts | see example POST data |
POST https://backoffice.hostcontrol.com/api/v1/order
POST Data
{
"customer": 15,
"type": "new",
"order": [
{
"type": "domain-register-order",
"name": "brand-name-domain.nl",
"interval": 12
}
]
}
Result
{
"result": {
"customer": {
"is_enabled": true,
"updated": "2013-10-14T12:44:05.487411+00:00",
"is_dns_management_enabled": true,
"created": "2013-10-14T12:44:05.487372+00:00",
"primary_contact": {
"city": "Zwolle",
"fax": "",
"voice": "+31.384530752",
"updated": "2013-10-18T13:53:08.159771+00:00",
"name": "Demo Customer",
"created": "2013-10-18T13:53:08.159733+00:00",
"gender": "male",
"organisation": "",
"extra": {},
"zipcode": "8024 AA",
"email": "customer@resello.com",
"state": "Overijssel",
"address": "Ceintuurbaan 28",
"domains": [],
"vat_number": null,
"country": {
"code": "NL",
"name": "Netherlands"
},
"type": "primary",
"id": 15
},
"is_receiving_support_notifications": true,
"is_ns_management_enabled": true,
"is_verified": true,
"id": 15
},
"created": "2013-10-30T09:25:09.186407+00:00",
"state": "new",
"parts": [
{
"domain": {
"name": "cool-name-domain.nl"
},
"description": "cool-name-domain.nl, 12 months",
"last_error": null,
"price": null,
"interval": 12,
"state": "pending",
"is_privacy_protect_enabled": false,
"type": "domain-register-order",
"id": 20,
"tld": {
"name": "nl"
}
}
],
"invoice": null,
"type": "new",
"id": 37
},
"success": true
}