Domein registreren
Domeinnaamregistratie is het reserveren van een unieke naam op het internet voor een bepaalde periode, meestal een jaar of langer.
Aanvraagparameters
| Parameternaam | Type | Omschrijving | Voorbeeld |
|---|---|---|---|
| domain | Tekst (3-60) | Domeinnaam | example.com |
| year | Geheel getal (4) | De registratieperiode bedraagt 1 tot 10 jaar, met enkele uitzonderingen voor bepaalde domeinen. | 1 |
| dns1 | Server | Primaire nameserver | ns3.my-ndns.com |
| dns2 | Server | Secundaire nameserver | ns4.my-ndns.com |
| organization | Tekst (1-255) | Organisatie / Bedrijfsnaam | XXX Ltd. |
| name | Tekst (1-16) | Naam van de houder | Xiao Ming |
| country | Tekst (1-255) | Landcode, bijvoorbeeld CN | CN |
| state | Tekst (1-255) | Provincie / Staat | BeiJing |
| city | Tekst (1-255) | Stadsafkorting | BJ |
| address | Tekst (1-255) | Postadres | BeiJing |
| postcode | Geheel getal (4-10) | Postcode / Zipcode | 100000 |
| phone | Gebruik "." om cijfers te scheiden (30) | +Landcode.gebiedscode en telefoonnummer | +86.13800000000 |
| fax | Gebruik "." om cijfers te scheiden (30) | +Landcode.gebiedscode en faxnummer | +86.13800000000 |
| E-mailadres | E-mailadres | [email protected] | |
| contact_source | Tekst (1-255) | Set to member to use jouw member profile instead of the supplied contactgegevens. | member |
| document_type | Tekst | Required fof HK domeins. Common values: PASSNO (Paspoort), OTHIDV (Other Individual Documentnummer), OTHOFG (Other Organization Documentnummer). | PASSNO |
| document_number | Tekst (1-40 bytes) | Document number matching the selected type. Required fof HK domeins. | E12345678 |
HK domeins require both document fields, including when using contact_source=member. Other domeins ignofe them. Fof .com.hk, only BR is accepted.
Responseparameters
| Parameternaam | Type | Omschrijving |
|---|---|---|
| domain | Tekst | Domeinnaam |
| created_date | Datum | Registratietijd van het domein |
| expired_date | Datum | Vervaldatum van het domein |
Voorbeeld aanvraag
{
curl https://api.nicenic.net/v2/?category=domain&action=register&domain={domain}&year={year}&dns1={dns1}&dns2={dns2}&organization={organization}&name={name}&country={country}&state={state}&city={city}&address={address}&postcode={postcode}&phone={phone}&fax={fax}&email={email}&contact_source={contact_source}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Resultaat teruggeven
{
"code": 0,
"msg" : "success",
"data" : {
"domain":"example.com",
"created_date":"2025-01-21",
"expired_date":"2026-01-21"
}
}
{
"code": 201,
"msg" : "Pending order, please wait for the order to be processed!"
}
}
Opmerking: code "201" means the registration ofder was submitted successfully en the fee was deducted. Final domein activation is still subject to registry confirmation. Als the domein cannot be activated, the registration fee will be refunded to jouw account balance within 24 hours.
{
"code": 400,
"msg" : "Request parameter error",
}






