Sipariş durumu
Tek bir siparişin veya tek çağrıda en fazla 100 siparişin mevcut durumunu döndürür. Durum odaklı akışlar için sorgulama yerine webhook'ları tercih edin — her sorgulama istek limitinizden düşülür, webhook'lar ise yalnızca gerçek değişikliklerde tetiklenir.
POST
https://notpanel.com/api/v2action=statusAPI 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 "status" dizesi olmalıdır. |
| order | string | Tekil sipariş ID'si. order veya orders'dan biri gereklidir, ikisi birden değil. |
| orders | string (CSV) | Toplu durum için en fazla 100 adet virgülle ayrılmış sipariş ID'si. Sipariş ID'sine göre anahtarlanmış bir JSON nesnesi döndürü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=status&order=ord_01HG9X7KJP4N..."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: "status",
order: "ord_01HG9X7KJP4N...",
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://notpanel.com/api/v2",
data={
"key": "YOUR_API_KEY",
"action": "status",
"order": "ord_01HG9X7KJP4N...",
},
)
print(res.json())<?php
$body = http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'status',
'order' => 'ord_01HG9X7KJP4N...',
]);
$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
{
"status": "in_progress",
"charge": "0.50",
"start_count": "1234",
"remains": "650",
"currency": "USD"
}Yaygın hatalar
| Durum | Gövde | Neden |
|---|---|---|
| 400 | {"error":"Missing parameter: order"} | Ne order ne de orders sağlandı. |
| 400 | {"error":"Order not found"} | Tekil sipariş ID'si mevcut değil veya hesabınıza ait değil. |
| 400 | {"error":"Maximum 100 orders per request"} | orders CSV'si 100'den fazla ID içeriyordu. Gruplara bölün. |