Help Center
Login Sign up
  1. Home
  2. API reference
  3. API documentation (JSON/XML)
  4. Tasks
  5. Domain tasks

Domain buy order

API reference (XML/JSON) · Updated 2023-09-18

Function

With this task, a domain can be purchased via an external sales platform. 

The keywords of the "Domain" element are described on the Domain object HelpCenter page. The keywords of the domain contact elements (ownerc, adminc, techc, zonec) for  DomainCreatePlus are described on the Contact object HelpCenter page.

Description

Route: POST /domain/_buy

{
  "name": "example.com",
  "nameServers": [
    {
      "name": "ns1.example.com"
    },
    {
      "name": "ns2.example.com"
    }
  ],
  "ownerc": {
    "id": 15533046
  },
  "adminc": {
    "id": 15533046
  },
  "techc": {
    "id": 15533046
  },
  "zonec": {
    "id": 15533046
  },
  "extensions": {
    "domainBuyExtensions": {
       "amount": "9.0",
       "currency": "EUR"
    }
  }
}
{
  "status": {
    "code": "N0101006",
    "text": "N0101006",
    "type": "NOTIFY"
  },
  "object": {
    "type": "Domain",
    "value": "example.com"
  }
}