Kimlik Doğrulama
Tüm istekler HTTPS üzerinden gönderilmelidir. En güvenli kullanım Bearer token headerıdır. GET örneklerinde okunabilirlik için token query parametresi de gösterilir.
Authorization: Bearer API_ANAHTARINIZ
Content-Type: application/json
Öneri: Canlı ortamda tokenı query string yerine header içinde gönderin. Query string web sunucusu loglarına daha kolay düşebilir.
Endpointler
Ürün Listesi
https://api.724license.com/v1/products
GET
POST
Satışa açık ürünleri, ürün kodlarını ve kredi fiyatlarını listeler.
GET örneği
curl "https://api.724license.com/v1/products?token=API_ANAHTARINIZ"
POST örneği
curl -X POST "https://api.724license.com/v1/products" \
-H "Authorization: Bearer API_ANAHTARINIZ" \
-H "Content-Type: application/json" \
-d '{"token":"API_ANAHTARINIZ"}'
Gerekli alanlar
token
Başarılı yanıt örneği
{"success":true,"count":2,"products":[{"code":"cpanel","name":"cPanel","credit_price":4}]}
Tek Ürün Bilgisi
https://api.724license.com/v1/product
GET
POST
Ürün kodu veya ürün ID ile tek ürünün güncel fiyat ve görünürlük bilgisini döndürür.
GET örneği
curl "https://api.724license.com/v1/product?token=API_ANAHTARINIZ&code=cpanel"
POST örneği
curl -X POST "https://api.724license.com/v1/product" \
-H "Authorization: Bearer API_ANAHTARINIZ" \
-H "Content-Type: application/json" \
-d '{"token":"API_ANAHTARINIZ","code":"cpanel"}'
Gerekli alanlar
token, code veya id
Başarılı yanıt örneği
{"success":true,"product":{"code":"cpanel","name":"cPanel","credit_price":4}}
Bakiye Sorgulama
https://api.724license.com/v1/balance
GET
POST
API sahibinin mevcut kredi bakiyesini ve sandbox durumunu döndürür.
GET örneği
curl "https://api.724license.com/v1/balance?token=API_ANAHTARINIZ"
POST örneği
curl -X POST "https://api.724license.com/v1/balance" \
-H "Authorization: Bearer API_ANAHTARINIZ" \
-H "Content-Type: application/json" \
-d '{"token":"API_ANAHTARINIZ"}'
Gerekli alanlar
token
Başarılı yanıt örneği
{"success":true,"account":{"balance":120,"currency":"credit","sandbox_enabled":false}}
Yeni Lisans Oluşturma
https://api.724license.com/v1/licenses/create
GET
POST
Belirtilen IP ve ürün kodu için lisans satın alma işlemi başlatır.
GET örneği
curl "https://api.724license.com/v1/licenses/create?token=API_ANAHTARINIZ&type=cpanel&ip=203.0.113.10&billingcycle=1"
POST örneği
curl -X POST "https://api.724license.com/v1/licenses/create" \
-H "Authorization: Bearer API_ANAHTARINIZ" \
-H "Content-Type: application/json" \
-d '{"token":"API_ANAHTARINIZ","type":"cpanel","ip":"203.0.113.10","billingcycle":1}'
Gerekli alanlar
token, type, ip, billingcycle
Başarılı yanıt örneği
{"success":true,"message":"Lisans işlemi tamamlandı.","license_id":1234}
Lisans Yenileme
https://api.724license.com/v1/licenses/renew
GET
POST
Mevcut lisansın süresini seçilen periyot kadar uzatır.
GET örneği
curl "https://api.724license.com/v1/licenses/renew?token=API_ANAHTARINIZ&type=cpanel&ip=203.0.113.10&billingcycle=1"
POST örneği
curl -X POST "https://api.724license.com/v1/licenses/renew" \
-H "Authorization: Bearer API_ANAHTARINIZ" \
-H "Content-Type: application/json" \
-d '{"token":"API_ANAHTARINIZ","type":"cpanel","ip":"203.0.113.10","billingcycle":1}'
Gerekli alanlar
token, type, ip, billingcycle
Başarılı yanıt örneği
{"success":true,"message":"Lisans yenilendi."}
Lisans Askıya Alma
https://api.724license.com/v1/licenses/suspend
GET
POST
Aktif lisansı geçici olarak askıya alır.
GET örneği
curl "https://api.724license.com/v1/licenses/suspend?token=API_ANAHTARINIZ&type=cpanel&ip=203.0.113.10"
POST örneği
curl -X POST "https://api.724license.com/v1/licenses/suspend" \
-H "Authorization: Bearer API_ANAHTARINIZ" \
-H "Content-Type: application/json" \
-d '{"token":"API_ANAHTARINIZ","type":"cpanel","ip":"203.0.113.10"}'
Gerekli alanlar
token, type, ip
Başarılı yanıt örneği
{"success":true,"message":"Lisans askıya alındı."}
Lisans Askıdan Çıkarma
https://api.724license.com/v1/licenses/unsuspend
GET
POST
Askıdaki lisansı tekrar aktif eder.
GET örneği
curl "https://api.724license.com/v1/licenses/unsuspend?token=API_ANAHTARINIZ&type=cpanel&ip=203.0.113.10"
POST örneği
curl -X POST "https://api.724license.com/v1/licenses/unsuspend" \
-H "Authorization: Bearer API_ANAHTARINIZ" \
-H "Content-Type: application/json" \
-d '{"token":"API_ANAHTARINIZ","type":"cpanel","ip":"203.0.113.10"}'
Gerekli alanlar
token, type, ip
Başarılı yanıt örneği
{"success":true,"message":"Lisans aktif edildi."}
Lisans IP Değişimi
https://api.724license.com/v1/licenses/change-ip
GET
POST
Lisansın bağlı olduğu IP adresini yeni IP adresiyle değiştirir.
GET örneği
curl "https://api.724license.com/v1/licenses/change-ip?token=API_ANAHTARINIZ&type=cpanel&ip=203.0.113.10&newip=203.0.113.20"
POST örneği
curl -X POST "https://api.724license.com/v1/licenses/change-ip" \
-H "Authorization: Bearer API_ANAHTARINIZ" \
-H "Content-Type: application/json" \
-d '{"token":"API_ANAHTARINIZ","type":"cpanel","ip":"203.0.113.10","newip":"203.0.113.20"}'
Gerekli alanlar
token, type, ip, newip
Başarılı yanıt örneği
{"success":true,"message":"IP adresi güncellendi."}
LiteSpeed Core Güncelleme
https://api.724license.com/v1/licenses/change-core
GET
POST
LiteSpeed lisansındaki core/ürün tipini desteklenen hedef tipe çevirir.
GET örneği
curl "https://api.724license.com/v1/licenses/change-core?token=API_ANAHTARINIZ&type=litespeed&ip=203.0.113.10&new_type=litespeed_x_core"
POST örneği
curl -X POST "https://api.724license.com/v1/licenses/change-core" \
-H "Authorization: Bearer API_ANAHTARINIZ" \
-H "Content-Type: application/json" \
-d '{"token":"API_ANAHTARINIZ","type":"litespeed","ip":"203.0.113.10","new_type":"litespeed_x_core"}'
Gerekli alanlar
token, type, ip, new_type
Başarılı yanıt örneği
{"success":true,"message":"Core bilgisi güncellendi."}
Sunucu Tarafı Kullanım Örnekleri
Aşağıdaki örnekler yeni lisans oluşturma endpointi üzerinden verilmiştir. Diğer endpointlerde yalnız URL ve payload alanları değişir.
PHP cURL
$payload = [
'type' => 'cpanel',
'ip' => '203.0.113.10',
'billingcycle' => 1,
];
$ch = curl_init('https://api.724license.com/v1/licenses/create');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer API_ANAHTARINIZ',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode($payload),
]);
$response = json_decode(curl_exec($ch), true);
Node.js fetch
const response = await fetch('https://api.724license.com/v1/licenses/create', {
method: 'POST',
headers: {
'Authorization': 'Bearer API_ANAHTARINIZ',
'Content-Type': 'application/json'
},
body: JSON.stringify({ type: 'cpanel', ip: '203.0.113.10', billingcycle: 1 })
});
const data = await response.json();
Python requests
import requests
response = requests.post(
'https://api.724license.com/v1/licenses/create',
headers={'Authorization': 'Bearer API_ANAHTARINIZ'},
json={'type': 'cpanel', 'ip': '203.0.113.10', 'billingcycle': 1},
timeout=60
)
data = response.json()