Yenileme talep et
24 saatlik bekleme süresinden sonra uygun completed veya partial sipariş için refill oluşturur. Toplam deneme sınırı yoktur, ancak aynı anda yalnız bir refill pending, processing veya incelemede olabilir.
POST
https://notpanel.com/api/v3action=refillAPI anahtarı gerekliHız sınırlı (paylaşılan hesap + IP + işlem)Gövde:
application/x-www-form-urlencodedParametreler
| Ad | Tür | Açıklama |
|---|---|---|
| keyZorunlu | string | API anahtarınız. |
| actionZorunlu | string | Birebir "refill" dizesi olmalıdır. |
| order | string | Tek sipariş ID. order veya orders kullanın; ikisi gönderilirse orders kazanır. |
| orders | string (CSV) | Toplu yenileme için en fazla 100 adet virgülle ayrılmış sipariş ID'si. Bir dizi döndürür — her satır ya bir yenileme ID'si ya da sipariş başına bir hata taşı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/v3 \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "key=YOUR_API_KEY&action=refill&order=7001"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: "refill",
order: "7001",
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://notpanel.com/api/v3",
data={
"key": "YOUR_API_KEY",
"action": "refill",
"order": "7001",
},
)
print(res.json())<?php
$body = http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'refill',
'order' => '7001',
]);
$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));
Örnek yanıt
{
"refill": 8001
}Yaygın hatalar
| Durum | Gövde | Neden |
|---|---|---|
| 400 | {"error":"Order not found"} | Sipariş ID'si mevcut değil veya hesabınıza ait değil. |
| 400 | {"error":"Refill only available for completed or partial orders"} | Sipariş completed veya partial değil. Başka hiçbir durum refill için uygun değildir. |
| 400 | {"error":"Service does not support refills"} | Temel hizmetin refill=false değeri var. Yenileme talepleri göndermeden önce services kataloğunu kontrol edin. |
| 400 | {"error":"A refill request is already pending for this order"} | Bir yenisini oluşturmadan önce önceki yenilemenin sonuçlanmasını bekleyin. |
| 400 | {"error":"Refill is available 24 hours after the order is completed"} | Siparişin tamamlanmasının üzerinden henüz 24 saat geçmedi. |