Payout metrics by day
GET/payments/metricsProbar
La llamada la hace tu navegador, contra el servidor que elijas arriba. Si la documentación no está servida desde el mismo origen que la API, el navegador puede bloquear la respuesta por CORS: en ese caso abre estas páginas desde la propia API (/docs) o usa el curl de arriba.
const url = 'http://localhost:3000/v1/payments/metrics?from=2026-10-01&to=2026-10-19&groupBy=day';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3000/v1/payments/metrics?from=2026-10-01&to=2026-10-19&groupBy=day' \ --header 'x-api-key: <x-api-key>'Scope payments:read. Aggregates of your payouts by day and by asset: count and amount by status, success rate, fee charged and median time to settled. Figures only: no beneficiary, account or reference.
Unlike the statement, days are counted by created_at in Venezuelan time (America/Caracas): a failed payout also counts on the day you requested it. Maximum range: 92 days. Without from or to, the last 30 days up to today.
Amounts in minor units, as strings. successRate is settled / (settled + failed) with 4 decimals; null if there were neither.
Authorizations
Sección titulada «Authorizations»Parameters
Sección titulada «Parameters»Query Parameters
Sección titulada «Query Parameters»Example
2026-10-01Desde este día, INCLUSIVE (hora de Venezuela).
Example
2026-10-19Hasta este día, INCLUSIVE. Por defecto, hoy.
Sólo day por ahora.
Responses
Sección titulada «Responses»Agregados por día y activo
object
object
Decimales: BS y USD 2; USDT y USDC 6 (1000000 = 1 USDT).
object
Siempre trae settled, failed, unknown y submitted; otros estados, si los hubo.
object
object
Comisión cobrada, minor units. 0 en los compensados
Example
{ "from": "2026-10-18", "to": "2026-10-19", "groupBy": "day", "timeZone": "America/Caracas", "data": [ { "date": "2026-10-18", "asset": "BS", "total": { "count": 41, "amount": "205000000" }, "byStatus": { "settled": { "count": 39, "amount": "195000000" }, "failed": { "count": 1, "amount": "5000000" }, "unknown": { "count": 0, "amount": "0" }, "submitted": { "count": 1, "amount": "5000000" } }, "successRate": "0.9750", "fee": "1950000", "medianSecondsToSettled": 142 } ]}Error con código estable
object
object
Contexto estructurado del error cuando lo hay: qué límite se superó y de cuánto, qué campo es inválido, cuánto saldo había. No aparece en errores internos.
object
Código ESTABLE. Programa contra esto.
Example
{ "error": { "type": "invalid_request_error", "code": "insufficient_balance", "request_id": "req_8a0312ba896772bc441134cd" }}