İade teklifi oku
Hesaba ait sayısal ID'li bir sipariş için salt okunur iade mutabakatı anlık görüntüsü döndürür.
https://notpanel.com/api/v3action=refund_quoteapplication/x-www-form-urlencodedaction=refund_quote hiçbir öğeyi iptal etmez ve cüzdanı değiştirmez. Başka belgelenmiş eyleme karar vermeden ücret ve iade alanlarını yorumlamak için kullanın.Parametreler
| Ad | Tür | Açıklama |
|---|---|---|
| keyZorunlu | string | API anahtarınız. |
| actionZorunlu | string | Tam olarak "refund_quote" olmalıdır. |
| orderZorunlu | string | One account-owned numeric order ID. |
Ö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=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));
Örnek yanıt
{
"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"
}Yaygın hatalar
| Durum | Gövde | Neden |
|---|---|---|
| 400 | {"error":"Missing parameter: order"} | Zorunlu order parametresi yok. Yanıt 400. |
| 404 | {"error":"Order not found"} | Bu hesaba ait eşleşen bir sipariş yok. Yanıt 404'tür. |