Ir al contenido

How much you have used against your limits

GET/limits/usageProbar
Parámetros de consulta

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.

GET
/limits/usage
curl --request GET \
--url 'http://localhost:3000/v1/limits/usage?asset=BS' \
--header 'x-api-key: <x-api-key>'

Scope payments:read. Your usage for the day and the month against the rule that applies to you. Use it before launching a batch.

When a limit is exceeded the payout is rejected with 422 limit_exceeded, and error.meta says which one (per_tx_max, daily_max, monthly_max or daily_count_max), the cap and the scope.

Limits have an instrument: the same amount may fit by bank transfer and not by pago móvil, whose per-operation cap is Bs 100,000.00. There are also limits per beneficiary.

Precedence: beneficiary > customer > tenant > platform, and within each, a specific instrument before *. The most specific one wins ENTIRELY: caps are not intersected, they are replaced.

NOTE: this query returns the total for the ASSET, without splitting by instrument. The check the payout makes does filter by instrument, so if you have different caps per instrument use this figure as a guide, not an exact calculation. What ended failed or reversed doesn’t count: it was compensated and no money left.

asset

Decimales: BS y USD 2; USDT y USDC 6 (1000000 = 1 USDT).

string
Allowed values: BS USD USDT USDC VESC

Por defecto BS

customerId
string format: uuid

Consumo de un usuario tuyo

Consumo y límite aplicable

Media typeapplication/json
object
asset

Decimales: BS y USD 2; USDT y USDC 6 (1000000 = 1 USDT).

string
Allowed values: BS USD USDT USDC VESC
usage
object
day_amount

Importe dispersado hoy

string
day_count

Operaciones de hoy

string
month_amount

Importe dispersado este mes

string
limit

La regla aplicable. null si no hay ninguna configurada

object
scope
string
Allowed values: beneficiary customer tenant platform
method

Instrumento al que aplica, o *

string
per_tx_max
string
nullable
daily_max
string
nullable
monthly_max
string
nullable
daily_count_max
string
nullable
Example
{
"asset": "BS",
"usage": {
"day_amount": "45371900",
"day_count": "38",
"month_amount": "912440000"
},
"limit": {
"scope": "tenant",
"method": "*",
"per_tx_max": "10000000",
"daily_max": "500000000",
"monthly_max": null,
"daily_count_max": null
}
}