Status akun
Mengembalikan dua manfaat independen yang diperoleh akun dari spend: progres throughput API sepanjang waktu dan progres diskon bergulir 90 hari. Pembacaan ini tidak mengubah nilainya.
POST
https://notpanel.com/api/v3action=account_statusAPI key diperlukanDibatasi rate (akun bersama + IP + action)Body:
application/x-www-form-urlencodedParameter
| Nama | Tipe | Deskripsi |
|---|---|---|
| keyWajib | string | API key Anda. |
| actionWajib | string | Harus berupa string literal "account_status". |
Contoh request
Ganti YOUR_API_KEY dengan key yang dibuat di halaman API dashboard Anda.
curl -X POST https://notpanel.com/api/v3 \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "key=YOUR_API_KEY&action=account_status"const res = await fetch("https://notpanel.com/api/v3", {
method: "POST",
headers: { "Content-Type": "application/x-www-form-urlencoded" },
body: new URLSearchParams({
key: "YOUR_API_KEY",
action: "account_status",
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://notpanel.com/api/v3",
data={
"key": "YOUR_API_KEY",
"action": "account_status",
},
)
print(res.json())<?php
$body = http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'account_status',
]);
$response = file_get_contents('https://notpanel.com/api/v3', false, stream_context_create([
'http' => [
'method' => 'POST',
'header' => "Content-Type: application/x-www-form-urlencoded\r\n",
'content' => $body,
'ignore_errors' => true,
],
]));
print_r(json_decode($response, true));
Contoh response
{
"currency": "USD",
"lifetime_successful_spend": "550.00",
"api_rate": {
"tier": 4,
"tier_minimum_spend": "500.00",
"tier_requests_per_minute": 1200,
"effective_requests_per_minute": 1200,
"source": "tier",
"next_tier": 5,
"next_tier_minimum_spend": "1000.00"
},
"discount": {
"level": 5,
"successful_spend_90_days": "550.00",
"window_days": 90,
"percent": 30,
"source": "level",
"next_level": 6,
"next_level_minimum_spend": "1000.00"
}
}Error umum
| Status | Body | Penyebab |
|---|---|---|
| 403 | {"error":"Account suspended"} | Akun tidak aktif, sehingga status manfaatnya tidak tersedia untuk key ini. |