Refund quote पढ़ें
खाते के स्वामित्व वाले एक संख्यात्मक ऑर्डर ID के लिए केवल पढ़ने योग्य रिफंड मिलान की स्थिति लौटाता है।
https://notpanel.com/api/v3action=refund_quoteapplication/x-www-form-urlencodedaction=refund_quote कभी item cancel नहीं करता और wallet नहीं बदलता। किसी अन्य documented action पर निर्णय लेने से पहले charge व refund fields समझने के लिए इसका इस्तेमाल करें।पैरामीटर
| नाम | टाइप | विवरण |
|---|---|---|
| keyआवश्यक | string | आपकी API key। |
| actionआवश्यक | string | Literal string "refund_quote" होना चाहिए। |
| orderआवश्यक | string | One account-owned numeric order 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=refund_quote&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: "refund_quote",
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": "refund_quote",
"order": "7001",
},
)
print(res.json())<?php
$body = http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'refund_quote',
'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));
उदाहरण रिस्पॉन्स
{
"order": 7001,
"kind": "order",
"status": "In progress",
"status_key": "in_progress",
"currency": "USD",
"original_charge": "0.50",
"refunded": "0.00",
"refund_pending": 0,
"refund_pending_amount": "0.00",
"refundable_now": "0.00",
"cancel_available": false,
"cancel_before": "2026-08-25T10:30:15.000Z",
"unresolved_refund_guaranteed_at": "2026-09-01T10:30:00.000Z",
"unresolved_refund_amount": "0.50",
"partial_refund_calculation": "confirmed_refund_ratio"
}सामान्य एरर
| स्टेटस | बॉडी | कारण |
|---|---|---|
| 400 | {"error":"Missing parameter: order"} | Required order parameter नहीं दिया गया। Response 400 है। |
| 404 | {"error":"Order not found"} | इस खाते का कोई मेल खाता ऑर्डर नहीं है। उत्तर 404 है। |