Minta refill
Membuat permintaan refill untuk order completed atau partial yang memenuhi syarat setelah masa tunggu 24 jam. Tidak ada batas total percobaan, tetapi hanya satu refill dapat pending, processing, atau ditinjau pada satu waktu.
POST
https://notpanel.com/api/v3action=refillAPI key diperlukanDibatasi rate (akun bersama + IP + action)Body:
application/x-www-form-urlencodedParameter
| Nama | Tipe | Deskripsi |
|---|---|---|
| keyWajib | string | API key Anda. |
| actionWajib | string | Harus berupa string literal "refill". |
| order | string | ID order tunggal. Gunakan order atau orders; jika keduanya diberikan, orders menang. |
| orders | string (CSV) | Hingga 100 ID order dipisah koma untuk refill batch. Mengembalikan array — setiap baris membawa ID refill atau error per-order. |
Contoh request
Ganti YOUR_API_KEY dengan key yang dibuat di halaman API dashboard Anda.
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));
Contoh response
{
"refill": 8001
}Error umum
| Status | Body | Penyebab |
|---|---|---|
| 400 | {"error":"Order not found"} | ID order tidak ada atau bukan milik akun Anda. |
| 400 | {"error":"Refill only available for completed or partial orders"} | Order tidak berstatus completed atau partial. Status order lain tidak eligible untuk refill. |
| 400 | {"error":"Service does not support refills"} | Service yang mendasari memiliki refill=false. Periksa katalog services sebelum mengirim permintaan refill. |
| 400 | {"error":"A refill request is already pending for this order"} | Tunggu refill sebelumnya selesai sebelum membuat yang lain. |
| 400 | {"error":"Refill is available 24 hours after the order is completed"} | Pesanan selesai kurang dari 24 jam yang lalu. |