Alan Adı Fiyatlama ve Ayarları
Alan adı satışının genel kurallarını belirleyen yedi uç: kurtarma, eklenti ücretleri, otomatik fiyatlama ve premium.
Genel Bakış
Bu uçlar tek bir uzantıya değil, alan adı satışının genel kurallarına bakar: süresi dolan bir alan adı ne kadar süreyle ve ne ücretle kurtarılabilir, DNS yönetimi ya da kayıt gizliliği ne kadar, fiyatlar otomatik mi belirleniyor, premium alan adları satılıyor mu.
Bir uzantının kendi fiyatı ve özellikleri ayrı bir yerdedir; buradaki ayarlar onların üstünde çalışır. Tek istisna kurtarma ücretidir: uzantı adı verilirse yalnız o uzantıya yazılır.
Referans
WHOIS Sorgusu
Bir alan adı için WHOIS sorgusu çalıştırır ve ham çıktıyı döndürür.
domain boş.curl -G 'https://panel.ornek.com/api/v1/admin/products/domain/whois' \
-H "Authorization: Bearer $API_KEY" \
-d domain=example.comconst url = new URL('https://panel.ornek.com/api/v1/admin/products/domain/whois');
url.searchParams.set('domain', 'example.com');
const res = await fetch(url, { headers: { Authorization: `Bearer ${apiKey}` } });
const body = await res.json();$url = 'https://panel.ornek.com/api/v1/admin/products/domain/whois?' . http_build_query(['domain' => 'example.com']);
$ch = curl_init($url);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);// Sorgu uzak sunucuya cikar: yavas olabilir, hiz sinirina takilabilir.
$response = Api::Products()->GetDomainWhois([], ['domain' => 'example.com']);
$free = $response['data']['available'] ?? false;Gecikme ve Kurtarma Ücretleri
Süresi dolan alan adının kurtarılma süresini ve ücretini belirler.
curl -X PUT 'https://panel.ornek.com/api/v1/admin/products/domain/grace-redemption' \
-H "Authorization: Bearer $API_KEY" \
-H 'Content-Type: application/json' \
-d '{"grace":{"duration":30,"fees":{"USD":{"fee":0,"status":false}}},"redemption":{"duration":30,"fees":{"USD":{"fee":80,"status":true}}}}'const res = await fetch('https://panel.ornek.com/api/v1/admin/products/domain/grace-redemption', {
method: 'PUT',
headers: {
Authorization: `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
grace: { duration: 30, fees: { USD: { fee: 0, status: false } } },
redemption: { duration: 30, fees: { USD: { fee: 80, status: true } } },
}),
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/products/domain/grace-redemption');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . $apiKey,
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'redemption' => [
'duration' => 30,
'fees' => ['USD' => ['fee' => 80, 'status' => true]],
],
]),
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);// Uzanti vermek ayari YALNIZ o uzantiya yazar; genel varsayilan degismez.
Api::Products()->SetDomainGraceRedemption([
'extension' => 'com',
'redemption' => [
'duration' => 30,
'fees' => ['USD' => ['fee' => 80, 'status' => true]],
],
]);Alan Adı Eklentisi Ücretleri
DNS yönetimi, yönlendirme, kayıt gizliliği ve transfer kodu için ücret belirler.
dns_manage, forwarding, whois_privacy ya da epp_code.curl -X PUT 'https://panel.ornek.com/api/v1/admin/products/domain/addon-pricing' \
-H "Authorization: Bearer $API_KEY" \
-H 'Content-Type: application/json' \
-d '{"type":"whois_privacy","fees":{"USD":{"fee":5,"status":true}}}'const res = await fetch('https://panel.ornek.com/api/v1/admin/products/domain/addon-pricing', {
method: 'PUT',
headers: {
Authorization: `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
type: 'whois_privacy',
fees: { USD: { fee: 5, status: true } },
}),
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/products/domain/addon-pricing');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . $apiKey,
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'type' => 'whois_privacy',
'fees' => ['USD' => ['fee' => 5, 'status' => true]],
]),
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);// Ucret her uzanti icin ayni; ozelligin hangi uzantida ACIK oldugu TLD kaydinda durur.
Api::Products()->SetDomainAddonPricing([
'type' => 'whois_privacy',
'fees' => ['USD' => ['fee' => 5, 'status' => true]],
]);Otomatik Fiyatlama Durumu
Otomatik fiyatlamanın açık olup olmadığını ve kâr marjını döndürür.
curl 'https://panel.ornek.com/api/v1/admin/products/domain/auto-pricing' \
-H "Authorization: Bearer $API_KEY"const res = await fetch('https://panel.ornek.com/api/v1/admin/products/domain/auto-pricing', {
headers: { Authorization: `Bearer ${apiKey}` },
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/products/domain/auto-pricing');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);$response = Api::Products()->GetDomainAutoPricing();Otomatik Fiyatlamayı Ayarlama
Otomatik fiyatlamayı açıp kapatır ya da kâr marjını değiştirip fiyatları yeniden hesaplar.
status ya da pricing.status dalında.pricing dalında; yazıldığı anda otomatik fiyatlı uzantılar yeniden fiyatlanır.update iki değerden biri değil.curl -X PUT 'https://panel.ornek.com/api/v1/admin/products/domain/auto-pricing' \
-H "Authorization: Bearer $API_KEY" \
-H 'Content-Type: application/json' \
-d '{"update":"pricing","rate":20}'const res = await fetch('https://panel.ornek.com/api/v1/admin/products/domain/auto-pricing', {
method: 'PUT',
headers: {
Authorization: `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ update: 'pricing', rate: 20 }),
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/products/domain/auto-pricing');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . $apiKey,
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode(['update' => 'pricing', 'rate' => 20]),
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);// Marj yazmak TUM otomatik fiyatli uzantilari o anda yeniden fiyatlar.
Api::Products()->SetDomainAutoPricing([
'update' => 'pricing',
'rate' => 20,
]);Premium Alan Adı Ayarları
Premium alan adı satışının açık olup olmadığını ve fiyat katmanlarını döndürür.
curl 'https://panel.ornek.com/api/v1/admin/products/domain/premium' \
-H "Authorization: Bearer $API_KEY"const res = await fetch('https://panel.ornek.com/api/v1/admin/products/domain/premium', {
headers: { Authorization: `Bearer ${apiKey}` },
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/products/domain/premium');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);$response = Api::Products()->GetDomainPremium();Premium Ayarlarını Yazma
Premium satışını açıp kapatır ya da fiyat katmanlarını yazar.
status ya da pricing.status dalında.pricing dalında; liste bütün olarak yazılır.update iki değerden biri değil.curl -X PUT 'https://panel.ornek.com/api/v1/admin/products/domain/premium' \
-H "Authorization: Bearer $API_KEY" \
-H 'Content-Type: application/json' \
-d '{"update":"pricing","fees":[{"amount":100,"markup":10},{"amount":1000,"markup":5}]}'const res = await fetch('https://panel.ornek.com/api/v1/admin/products/domain/premium', {
method: 'PUT',
headers: {
Authorization: `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
update: 'pricing',
fees: [
{ amount: 100, markup: 10 },
{ amount: 1000, markup: 5 },
],
}),
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/products/domain/premium');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . $apiKey,
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'update' => 'pricing',
'fees' => [
['amount' => 100, 'markup' => 10],
['amount' => 1000, 'markup' => 5],
],
]),
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);// Katman listesi butun olarak yazilir: eksik katman silinir.
Api::Products()->SetDomainPremium([
'update' => 'pricing',
'fees' => [
['amount' => 100, 'markup' => 10],
['amount' => 1000, 'markup' => 5],
],
]);Tuzaklar
Kâr marjını yazmak yalnız bir ayarı kaydetmez: otomatik fiyatlaması açık olan tüm uzantılar aynı anda yeniden fiyatlanır. Değişiklik vitrine hemen yansır, cron beklemez. Marjı denemek için küçük bir adım atın ve sonucu uzantı detayından okuyun.
Otomatik fiyatlama ve premium uçları update alanına göre tek bir dal çalıştırır. Yanlış dalda gönderilen alan sessizce yok sayılır: durum dalında marj göndermek marjı değiştirmez ve hata da vermez. Sonucu her zaman okuma ucundan doğrulayın.
Eklenti ücreti burada, tüm uzantılar için ortak yazılır. Bir uzantının o özelliği sunup sunmadığı ise kendi kaydındadır. Ücret koyduğunuz bir özellik hiçbir uzantıda açık değilse kimse ödemez; ikisini birlikte kontrol edin.
Sorgu uzak bir sunucuya gider: yavaş olabilir, hız sınırına takılabilir ve dönen metnin biçimi kuruluştan kuruluşa değişir. Toplu kontrol yazıyorsanız zaman aşımı koyun ve ham çıktıyı ayrıştırmak yerine available alanını kullanın.
İlgili Makaleler
Geri bildiriminiz için teşekkürler!
Yukarıda bulamadığınız her şey için destek ekibimiz her zaman yanınızda.