Ir al contenido

Get your test account ready to pay out

POST/test-helpers/seedProbar

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.

POST
/test-helpers/seed
curl --request POST \
--url http://localhost:3000/v1/test-helpers/seed \
--header 'x-api-key: <x-api-key>'

Scope beneficiaries:write (it registers beneficiaries); without it, 403 insufficient_scope. Only with an sk_test_ key of a test account (environment: sandbox in GET /tenant/me); with any other, 403 test_account_required. It exists locally and in QA; not in production (404, before any 403). Idempotent: registers 3 fictitious beneficiaries (Prueba Pago Movil V10000001, 0102, 04140000001; Prueba Transferencia V10000002, 0134, account 01340000000000000002; Prueba Otro Banco V10000003, 0105, account 01050000000000000003) and, depending on your funding model, leaves Bs 1,000,000.00 simulated in your prefunding, a sample selling rate or, with ticket prefunding, your test prefund already loaded (testPrefund; you normally have it since you got your key). With an own account, besides the sample USDT selling rate (1,000.00), if your inventory is at zero it leaves a Bs 1,000,000.00 funding at that rate (funding); more balance with POST /test-helpers/fundings. None of this is real money.

Lo que quedó sembrado

Media typeapplication/json
object
model
string
Allowed values: prefunded daily_settlement own_account rate_locked_prefunding
beneficiaries
Array<object>
object
id
string format: uuid
name
string
bank
string
method
string
Allowed values: pago_movil transferencia
prefunding
object
balance

Céntimos de Bs tras sembrar

string
seeded

Céntimos de Bs añadidos ahora

string
testPrefund

Con prefondeo por ticket: tu prefondeo de pruebas ya cargado (Bs simulados). Su forma es la del prefondeo por ticket.

object
key
additional properties
any
sellRate
object
asset
string
rate
string
funding

Con cuenta propia e inventario en cero: el fondeo de pruebas que se dejó aprobado (Bs simulados)

object
id
string format: uuid
amountBs

Céntimos de Bs

string
amountUsd

Centavos de USD

string
rate

Bs por USD de este fondeo

string
next
string
Example
{
"model": "prefunded",
"beneficiaries": [
{
"method": "pago_movil"
}
]
}

test_account_required (la key no es sk_test_ de una cuenta de pruebas) o insufficient_scope (la key no tiene beneficiaries:write)

No existe en este entorno