API RESELLER
Dokumentasi API
Hubungkan website atau aplikasi top up kamu dengan Akbarnet. Ambil daftar layanan, buat pesanan, dan cek status secara otomatis.
Base URL https://akbarnet.top/api
Autentikasi
Semua endpoint memakai metode POST dengan body form-data / x-www-form-urlencoded, dan respon berbentuk JSON dengan kunci status (true/false) serta msg.
1. Ambil kredensialAPI ID & API Key ada di menu Akun setelah login.
2. Buat signature
md5(api_id + api_key) — gabungkan lalu hash MD5.3. Whitelist IP (opsional)Bila diisi di akun, hanya IP tersebut yang bisa memanggil API.
POST Profile
Mendapatkan data akun dan saldo.
https://akbarnet.top/api/profileParameter
| Parameter | Keterangan | |
|---|---|---|
api_id | API ID akun kamu | Wajib |
api_key | API Key akun kamu | Wajib |
signature | md5(api_id + api_key) | Wajib |
Contoh request
curl -X POST https://akbarnet.top/api/profile \ -d "api_id=API_ID" \ -d "api_key=API_KEY" \ -d "signature=MD5_API_ID_API_KEY"
<?php
$apiId = 'API_ID_KAMU';
$apiKey = 'API_KEY_KAMU';
$ch = curl_init('https://akbarnet.top/api/profile');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => [
'api_id' => $apiId,
'api_key' => $apiKey,
'signature' => md5($apiId . $apiKey),
],
]);
$hasil = json_decode(curl_exec($ch), true);
print_r($hasil);
Contoh respon
{
"status": true,
"msg": "berhasil mendapatkan data profile",
"data": {
"full_name": "Nama Kamu",
"username": "username",
"email": "email@contoh.com",
"balance": 150000,
"role": "Basic",
"created_at": "2026-01-03 11:31:11"
}
}
{
"status": false,
"msg": "API ID atau API KEY tidak ditemukan"
}
POST Service
Mendapatkan daftar layanan beserta harga sesuai level (basic, gold, platinum). Respon berupa array, satu objek per layanan.
https://akbarnet.top/api/serviceParameter
| Parameter | Keterangan | |
|---|---|---|
api_id | API ID akun kamu | Wajib |
api_key | API Key akun kamu | Wajib |
signature | md5(api_id + api_key) | Wajib |
Contoh request
curl -X POST https://akbarnet.top/api/service \ -d "api_id=API_ID" \ -d "api_key=API_KEY" \ -d "signature=MD5_API_ID_API_KEY"
<?php
$apiId = 'API_ID_KAMU';
$apiKey = 'API_KEY_KAMU';
$ch = curl_init('https://akbarnet.top/api/service');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => [
'api_id' => $apiId,
'api_key' => $apiKey,
'signature' => md5($apiId . $apiKey),
],
]);
$hasil = json_decode(curl_exec($ch), true);
print_r($hasil);
Contoh respon
[
{
"status": true,
"msg": "berhasil mendapatkan data layanan",
"data": {
"id": "1",
"game": "MOBILE LEGENDS",
"nama_layanan": "14 Diamonds ( 13 + 1 Bonus )",
"harga": {
"basic": 3310,
"gold": 3250,
"platinum": 3120
},
"status": "aktif"
}
}
]
{
"status": false,
"msg": "Signature Tidak Valid. Silakan periksa kredensial API Anda"
}
{
"status": false,
"msg": "IP 127.0.0.1 tidak ada dalam whitelist"
}
POST Order
Membuat pesanan. Saldo terpotong sesuai harga level kamu; bila provider menolak, saldo dikembalikan otomatis.
https://akbarnet.top/api/orderParameter
| Parameter | Keterangan | |
|---|---|---|
api_id | API ID akun kamu | Wajib |
api_key | API Key akun kamu | Wajib |
order_id | ID unik dari sistem kamu (huruf, angka, - atau _, maks. 50 karakter) | Wajib |
service_id | ID layanan (field id dari endpoint Service) | Wajib |
target_id | ID / nomor tujuan | Wajib |
target_server | Server / zone tujuan bila ada | Opsional |
signature | md5(api_id + api_key) | Wajib |
Contoh request
curl -X POST https://akbarnet.top/api/order \ -d "api_id=API_ID" \ -d "api_key=API_KEY" \ -d "order_id=ORDER_ID" \ -d "service_id=SERVICE_ID" \ -d "target_id=TARGET_ID" \ -d "target_server=TARGET_SERVER" \ -d "signature=MD5_API_ID_API_KEY"
<?php
$apiId = 'API_ID_KAMU';
$apiKey = 'API_KEY_KAMU';
$ch = curl_init('https://akbarnet.top/api/order');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => [
'api_id' => $apiId,
'api_key' => $apiKey,
'order_id' => 'ORDER_ID',
'service_id' => 'SERVICE_ID',
'target_id' => 'TARGET_ID',
'target_server' => 'TARGET_SERVER',
'signature' => md5($apiId . $apiKey),
],
]);
$hasil = json_decode(curl_exec($ch), true);
print_r($hasil);
Contoh respon
{
"status": true,
"msg": "Pesanan berhasil! Pesanan sedang diproses",
"data": {
"order_id": "INV-0001",
"nama_layanan": "14 Diamonds ( 13 + 1 Bonus )",
"service_id": "1",
"target_id": "98765",
"target_server": "1234",
"status": "Proses",
"note": ""
}
}
{
"status": false,
"msg": "order_id sudah tersedia pada sistem kami",
"data": {
"status": "error"
}
}
{
"status": false,
"msg": "service_id tidak ditemukan"
}
{
"status": false,
"msg": "Saldo anda tidak mencukupi"
}
POST Status
Cek status pesanan milik akun kamu. Status: Pending, Proses, Sukses, atau Gagal.
https://akbarnet.top/api/statusParameter
| Parameter | Keterangan | |
|---|---|---|
api_id | API ID akun kamu | Wajib |
api_key | API Key akun kamu | Wajib |
order_id | order_id yang dikirim saat Order | Wajib |
signature | md5(api_id + api_key) | Wajib |
Contoh request
curl -X POST https://akbarnet.top/api/status \ -d "api_id=API_ID" \ -d "api_key=API_KEY" \ -d "order_id=ORDER_ID" \ -d "signature=MD5_API_ID_API_KEY"
<?php
$apiId = 'API_ID_KAMU';
$apiKey = 'API_KEY_KAMU';
$ch = curl_init('https://akbarnet.top/api/status');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => [
'api_id' => $apiId,
'api_key' => $apiKey,
'order_id' => 'ORDER_ID',
'signature' => md5($apiId . $apiKey),
],
]);
$hasil = json_decode(curl_exec($ch), true);
print_r($hasil);
Contoh respon
{
"status": true,
"msg": "Detail transaksi berhasil didapatkan",
"data": {
"order_id": "INV-0001",
"data_id": "98765 (1234)",
"service": "14 Diamonds ( 13 + 1 Bonus )",
"status": "Sukses",
"note": "SN: 1234567890",
"price": 3310
}
}
{
"status": false,
"msg": "order_id tidak ditemukan",
"data": {
"order_id": "",
"status": "error"
}
}
MAU TOP UP?