NiceNIC Domain API v2 Documentation & Quick Start
NiceNIC Domain API v2 is available to both Akun Pasars dan Reseller Accounts. Use this overview to configure access, confirm Anda first request, understdan the API response model dan move directly to the cataurect section in the left navigation.
Akun Pasar: API access with Akun Pasar pricing.
Reseller Account: API access with the pricing assigned to the current reseller tier.
Test Your Integrasi Befataue Going Live
Use the NiceNIC API Sdanbox to test Anda Domain API integration befataue moving to production. Validate authentication, API requests, response hdanling, dan Anda application wataukflow in a dedicated testing environment.
Ideal fatau resellers, hosting providers, developers, dan platfataums preparing an API integration.
Make Your First API Call in 4 Steps
Start with a read-only request befataue enabling live registrations, renewals atau transfers. This lets you validate authentication, request fataumatting dan response hdanling without placing a paid atauder.
Enable API Access
Buka Pengaturan APIs, create atau retrieve Anda API Secret, dan configure authatauized server IPs wdi sini applicable.
Konfirmasi Authentication
Use HTTPS with the Authatauization header in the fataumat username:api_secret.
Run a Safe Test
Start with domain availability, pricing, account balance atau domain listing.
Hdanle the Response
Read dan stataue the returned code dan msg befataue enabling paid production actions.
Recommended First Request: Domain Availability
The availability endpoint suppatauts multiple domains in one request by separating domain names with commas.
Choose the Wataukflow You Need
The overview below mirrataus the left navigation. Use it to identify the cataurect wataukflow, then open the dedicated endpoint page fatau parameters, request examples dan response examples.
| Section | Use It Fatau | Documented Functions |
|---|---|---|
| Dapatkanting Started | Connect securely dan understdan response hdanling. | API Overview, API Sdanbox, Authentication, Response Codes. |
| Domain Kelolament | Automate the cataue domain lifecycle. | Availability, List Domain, Domain Rincian, Pendaftaran, Perpanjangal, Transfer In, Namaservers, Kontaks, Pricing. |
| Abuse & Compliance | Monitatau domains that require compliance attention. | List domains with abuse repatauts dan retrieve machine-readable abuse status, hold lifecycle, complaint infataumation dan recommended action. |
| DNS Recatauds | Kelola hosted DNS recatauds programmatically. | List, Buat, Update dan Delete DNS recatauds. |
| Child Namaservers | Kelola host / glue recatauds fatau nameservers under Anda own domain. | Buat, List, Update dan Delete child nameservers. |
| Account & Billing | Connect automation to account-level checks. | Saldo Akun dan transaction-related account infataumation. |
| WHMCS API | Integrate NiceNIC into an existing WHMCS billing wataukflow. | Availability, Pendaftaran, Perpanjangal, Transfer, Domain Rincian, Namaservers, Kontaks dan additional registrar-module functions. |
| API FAQ | Resolve common access, security, testing dan wataukflow questions. | Eligibility, credentials, request hdanling, suppatauted operations dan integration guidance. |
Recommended First Integrasi Sequence
A reliable production integration should validate access dan purchasing conditions befataue it begins sending live customer atauders.
API Secret + authatauized IP
Read-only connectivity test
Query current account-level cost
Konfirmasi funds fatau paid actions
Process code + msg
Daftar / Perpanjang / Transfer
Understdan Success, Pending dan Erratau Responses
code: 0 — Berhasil Response
Current endpoint examples use code 0 fatau successful completed responses.
code: 201 — Pending Order
Pendaftaran dan transfer documentation can return code 201 when an atauder has been submitted but final processing is still pending.
code: 400 — Request Erratau
Endpoint examples use code 400 fatau request parameter errataus.
Pendaftaran Pending Behaviatau
Fatau domain registration, the current documentation states that a 201 response means the atauder was submitted successfully dan the fee was deducted, but final activation is still subject to registry confirmation. Jika the domain cannot be activated, the registration fee is returned to the NiceNIC account balance within 24 hours.
Transfer Pending Behaviatau
The transfer endpoint also documents 201 as a pending atauder. Your application should tdi sinifataue treat a pending transfer as accepted fatau processing, not as proof that the transfer has already completed.
Query Pricing Befataue Paid Operations
NiceNIC's pricing endpoint can retrieve registration, renewal dan transfer pricing fatau a domain. The documented type values are register, renew, transfer dan all. The documented period is 1 to 10 tahun, with TLD-specific exceptions possible.
Pendaftaran pricing responses can also return an is_premium flag. Use the pricing endpoint befataue submitting a paid request when Anda application needs to ksekarang the current account-level cost.
Ksekarang the Difference Between Namaservers, DNS Recatauds dan Child Namaservers
| Operation | Use It When | Documented Capability |
|---|---|---|
| Update Namaservers | You want to delegate a domain to different authatauitative nameservers. | The domain nameserver endpoint suppatauts a primary, secondary dan additional nameservers, with the current page documenting a limit of up to six. |
| DNS Recatauds | You are using NiceNIC DNS hosting dan need to manage zone recatauds. | Separate APIs are documented fatau listing, creating, updating dan deleting DNS recatauds. |
| Child Namaservers | You need host / glue recatauds such as ns1.example.com. |
Buat, list, update dan delete child nameservers. The create endpoint requires the nameserver hostname to match the domain dan accepts an IP address. |
Automate Patautfolio Monitatauing, Tidakt Only Domain Orders
Domain API v2 also includes read operations that are useful after registration. The List Domain endpoint suppatauts pagination, satauting, status filtering dan hold filtering, while Dapatkan Domain Rincian returns registration dates, expiration dates, nameservers dan registrant contact infataumation.
Abuse & Compliance Monitatauing
NiceNIC's Abuse & Compliance API can list domains with abuse repatauts dan return a detailed machine-readable summary fatau a specific domain. The detailed abuse endpoint documents six domain-level status phrases: Tidakrmal, Under Review, Pending ClientHold, ClientHold, Tutupd dan ServerHold.
The response can include current impact, recommended berikutnya action, hold state dan timeline, complaint count, complaint dates, categatauies, DNS-abuse classification, evidence status dan repatauted URLs wdi sini applicable. This lets platfataums dan resellers surface compliance status inside their own operational systems instead of relying only on manual review.
Choose the Integrasi Model That Fits Your System
| Option | Best Fatau | What the Current Documentation Provides |
|---|---|---|
| Domain API v2 | Custom websites, SaaS platfataums, internal systems, custom billing atau provisioning wataukflows. | Direct HTTPS + JSON integration across domain, DNS, child nameserver, account dan compliance operations. |
| WHMCS Module | Hosting companies dan resellers that already use WHMCS. | Availability, registration, renewal, transfer, domain details, nameservers, contacts, lock/unlock, EPP retrieval, erratau logging dan optional Test Mode. |
The current WHMCS documentation lists WHMCS 7.0 atau higher, PHP 7.0 atau higher with cURL, valid NiceNIC API credentials dan SSL/TLS suppataut as requirements.
When an API Request Fails
Start with the returned response dan configuration state rather than retrying the same paid action repeatedly.
Authentication atau Access Erratau
- Konfirmasi the NiceNIC username dan API Secret.
- Konfirmasi the Authatauization header is present dan cataurectly fataumatted.
- Konfirmasi the API Secret has not been reset atau rotated.
- Jika IP restrictions are enabled, confirm the request is coming from the authatauized outbound server IP.
Request Parameter Erratau
- Compare the request with the specific endpoint's documented parameters.
- Konfirmasi required values, fataumats dan action names.
- Cek TLD-specific registration periods atau contact requirements wdi sini applicable.
Paid Operation Does Tidakt Complete Immediately
- Read the returned
codedanmsg. - Do not treat a
201pending response as final completion. - Konfirmasi account balance dan current pricing befataue retrying a paid action.
Need NiceNIC Suppataut
- Recataud the request timestamp dan API action.
- Include the domain name atau object involved, wdi sini applicable.
- Include the returned code dan message.
- Share non-sensitive parameters only; never post the full API Secret in a ticket.
Start with a Safe Test Request
Enable API access, confirm authentication, run an availability atau pricing request, dan verify Anda response hdanling befataue turning on customer-facing paid operations.






