Bakiye
Güncel kesinleşmiş USD cüzdan bakiyenizi döndürür. Her istek son tamamlanmış bakiyeyi okur; normal API istek limitleri geçerliliğini korur.
POST
https://notpanel.com/api/v2action=balanceAPI anahtarı gerekliHız sınırlı (anahtar başına + kademe başına + IP başına)Gövde:
application/x-www-form-urlencodedParametreler
| Ad | Tür | Açıklama |
|---|---|---|
| keyZorunlu | string | API anahtarınız. |
| actionZorunlu | string | Birebir "balance" dizesi olmalıdır. |
Örnek istek
YOUR_API_KEY değerini panonuzun API sayfası altında oluşturulan anahtarla değiştirin.
curl -X POST https://notpanel.com/api/v2 \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "key=YOUR_API_KEY&action=balance"const res = await fetch("https://notpanel.com/api/v2", {
method: "POST",
headers: { "Content-Type": "application/x-www-form-urlencoded" },
body: new URLSearchParams({
key: "YOUR_API_KEY",
action: "balance",
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://notpanel.com/api/v2",
data={
"key": "YOUR_API_KEY",
"action": "balance",
},
)
print(res.json())<?php
$body = http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'balance',
]);
$response = file_get_contents('https://notpanel.com/api/v2', 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));
Örnek yanıt
{
"balance": "47.32",
"currency": "USD"
}Yaygın hatalar
| Durum | Gövde | Neden |
|---|---|---|
| 403 | {"error":"Account suspended"} | Hesap aktif değil. |