Solicitar reposição
Cria refill para pedido completed ou partial elegível após a espera de 24 horas. Não há limite total de tentativas, mas só um refill pode estar pending, processing ou em revisão por vez.
POST
https://notpanel.com/api/v3action=refillChave de API obrigatóriaSujeito a limite de taxa (conta partilhada + IP + ação)Corpo:
application/x-www-form-urlencodedParâmetros
| Nome | Tipo | Descrição |
|---|---|---|
| keyObrigatório | string | Sua chave de API. |
| actionObrigatório | string | Deve ser a string literal "refill". |
| order | string | ID de pedido único. Use order ou orders; se ambos forem enviados, orders prevalece. |
| orders | string (CSV) | Até 100 IDs de pedidos separados por vírgula para reposição em lote. Retorna um array — cada linha traz um ID de reposição ou um erro por pedido. |
Exemplo de requisição
Substitua YOUR_API_KEY pela chave gerada na página de API do seu painel.
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));
Exemplo de resposta
{
"refill": 8001
}Erros comuns
| Status | Corpo | Causa |
|---|---|---|
| 400 | {"error":"Order not found"} | O ID do pedido não existe ou não pertence à sua conta. |
| 400 | {"error":"Refill only available for completed or partial orders"} | O pedido não está completed nem partial. Nenhum outro status é elegível para refill. |
| 400 | {"error":"Service does not support refills"} | O serviço subjacente tem refill=false. Verifique o catálogo de serviços antes de enviar solicitações de reposição. |
| 400 | {"error":"A refill request is already pending for this order"} | Aguarde a reposição anterior ser concluída antes de criar outra. |
| 400 | {"error":"Refill is available 24 hours after the order is completed"} | O pedido foi concluído há menos de 24 horas. |