Request refill
Creates a refill request for an eligible completed or partial order after its 24-hour waiting period. There is no lifetime attempt cap, but only one refill may be pending, processing, or under review at a time.
POST
https://notpanel.com/api/v3action=refillAPI key requiredRate limited (shared account + IP + action)Body:
application/x-www-form-urlencodedParameters
| Name | Type | Description |
|---|---|---|
| keyRequired | string | Your API key. |
| actionRequired | string | Must be the literal string "refill". |
| order | string | Single-order ID. Use order or orders; if both are supplied, orders takes precedence. |
| orders | string (CSV) | Up to 100 comma-separated order IDs for batch refill. Returns an array — each row carries either a refill ID or a per-order error. |
Example request
Replace YOUR_API_KEY with the key generated under your dashboard’s API page.
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));
Example response
{
"refill": 8001
}Common errors
| Status | Body | Cause |
|---|---|---|
| 400 | {"error":"Order not found"} | Order ID doesn't exist or doesn't belong to your account. |
| 400 | {"error":"Refill only available for completed or partial orders"} | The order is not completed or partial. No other order status is eligible for refill. |
| 400 | {"error":"Service does not support refills"} | The underlying service has refill=false. Check the services catalog before submitting refill requests. |
| 400 | {"error":"A refill request is already pending for this order"} | Wait for the previous refill to settle before creating another. |
| 400 | {"error":"Refill is available 24 hours after the order is completed"} | The order completed less than 24 hours ago. |