Consultar una cotización de reembolso
Devuelve una instantánea de solo lectura para conciliar el reembolso de un pedido con ID numérico perteneciente a la cuenta.
https://notpanel.com/api/v3action=refund_quoteapplication/x-www-form-urlencodedaction=refund_quote nunca cancela ni modifica la cartera. Úsala para interpretar cargos y reembolsos antes de decidir otra acción documentada.Parámetros
| Nombre | Tipo | Descripción |
|---|---|---|
| keyObligatorio | string | Tu clave de API. |
| actionObligatorio | string | Debe ser la cadena literal "refund_quote". |
| orderObligatorio | string | One account-owned numeric order ID. |
Ejemplo de petición
Reemplaza YOUR_API_KEY por la clave generada en la página de API de tu panel.
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));
Ejemplo de respuesta
{
"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"
}Errores comunes
| Estado | Cuerpo | Causa |
|---|---|---|
| 400 | {"error":"Missing parameter: order"} | Se omitió el parámetro order obligatorio. La respuesta es 400. |
| 404 | {"error":"Order not found"} | Ningún pedido coincidente pertenece a esta cuenta. La respuesta es 404. |