ऑर्डर स्टेटस
एक order या अधिकतम 100 orders की मौजूदा state लौटाता है। Webhooks polling घटा सकते हैं, लेकिन retries के साथ best-effort हैं, इसलिए महत्वपूर्ण state को इस status action से reconcile करें।
https://notpanel.com/api/v3action=statusapplication/x-www-form-urlencodedपैरामीटर
| नाम | टाइप | विवरण |
|---|---|---|
| keyआवश्यक | string | आपकी API की। |
| actionआवश्यक | string | लिटरल स्ट्रिंग "status" होना चाहिए। |
| order | string | एक ऑर्डर का संख्यात्मक ID। यदि order और orders दोनों भेजे जाएँ, तो orders को प्राथमिकता मिलेगी। |
| orders | string (CSV) | अल्पविराम से अलग किए गए अधिकतम 100 संख्यात्मक ऑर्डर ID। यदि order और orders दोनों भेजे जाएँ, तो orders को प्राथमिकता मिलेगी। |
उदाहरण रिक्वेस्ट
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=status&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: "status",
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": "status",
"order": "7001",
},
)
print(res.json())<?php
$body = http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'status',
'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));
उदाहरण रिस्पॉन्स
{
"status": "In progress",
"status_key": "in_progress",
"charge": "0.50",
"refund": "0.00",
"refund_pending": 0,
"refund_pending_amount": "0.00",
"start_count": "1234",
"remains": "650",
"currency": "USD",
"cancel_available": false,
"cancel_before": "2026-08-25T10:30:15.000Z",
"refund_guaranteed_at": "2026-09-01T10:30:00.000Z",
"refund_policy": "full_if_unresolved_after_7_days"
}सामान्य एरर
| स्टेटस | बॉडी | कारण |
|---|---|---|
| 400 | {"error":"Missing parameter: order"} | न तो order और न ही orders सप्लाई किया गया था। |
| 400 | {"error":"Order not found"} | सिंगल ऑर्डर ID मौजूद नहीं है या आपके अकाउंट का नहीं है। |
| 400 | {"error":"Maximum 100 orders per request"} | orders CSV में 100 से अधिक ID थीं। बैचों में विभाजित करें। |