रिफिल का अनुरोध करें
24 घंटे की प्रतीक्षा के बाद eligible completed या partial order के लिए refill request बनाता है। कुल attempts की कोई सीमा नहीं है, लेकिन एक समय पर केवल एक refill pending, processing या review में हो सकता है।
POST
https://notpanel.com/api/v3action=refillAPI की आवश्यकरेट लिमिटेड (shared account + IP + action)बॉडी:
application/x-www-form-urlencodedपैरामीटर
| नाम | टाइप | विवरण |
|---|---|---|
| keyआवश्यक | string | आपकी API की। |
| actionआवश्यक | string | लिटरल स्ट्रिंग "refill" होना चाहिए। |
| order | string | Single-order ID। order या orders इस्तेमाल करें; दोनों दिए जाएं तो orders को प्राथमिकता मिलती है। |
| orders | string (CSV) | बैच रिफिल के लिए 100 तक कॉमा-सेपरेटेड ऑर्डर ID। एक array लौटाता है — हर रो या तो एक रिफिल ID या एक प्रति-ऑर्डर एरर रखती है। |
उदाहरण रिक्वेस्ट
YOUR_API_KEY को अपने डैशबोर्ड के API पेज के तहत जनरेट की गई की से बदलें।
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));
उदाहरण रिस्पॉन्स
{
"refill": 8001
}सामान्य एरर
| स्टेटस | बॉडी | कारण |
|---|---|---|
| 400 | {"error":"Order not found"} | ऑर्डर ID मौजूद नहीं है या आपके अकाउंट का नहीं है। |
| 400 | {"error":"Refill only available for completed or partial orders"} | Order completed या partial नहीं है। किसी अन्य order status में refill eligible नहीं है। |
| 400 | {"error":"Service does not support refills"} | अंतर्निहित सर्विस में refill=false है। रिफिल अनुरोध सबमिट करने से पहले services कैटलॉग जांचें। |
| 400 | {"error":"A refill request is already pending for this order"} | दूसरा बनाने से पहले पिछले रिफिल के settle होने का इंतज़ार करें। |
| 400 | {"error":"Refill is available 24 hours after the order is completed"} | ऑर्डर को पूरा हुए अभी 24 घंटे नहीं हुए हैं। |