Referencia de API

Depósitos

Un depósito es una entrada de stablecoins detectada en una dirección de tu comercio. Consulta la lista o el detalle con sus asientos contables; para enterarte al instante, usa webhooks.

Operaciones

GET/v1/deposits

Listar Depósitos de Comercio

Devuelve la lista de depósitos recibidos para el comercio autenticado.

curl
curl "https://api.nvialo.com/v1/deposits" \
  -H "x-api-key: $NVIALO_API_KEY"

Respuesta de ejemplo

200 OK
[
  {
    "id": "dep_cly123456789",
    "merchant_id": "mer_cly123456789",
    "deposit_address_id": "da_cly123456789",
    "deposit_address": {
      "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
      "derivation_path": "m/44'/60'/0'/0/1",
      "end_user_id": "usr_cly123456789",
      "end_user": {
        "id": "usr_cly123456789",
        "external_id": "user_99"
      }
    },
    "network": "ETH_SEPOLIA",
    "asset": "USDT",
    "amount": "100.500000000000000000",
    "tx_hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
    "block_number": "12345678",
    "confirmations": 12,
    "status": "SWEPT",
    "detected_at": "2026-07-23T00:00:00.000Z",
    "confirmed_at": "2026-07-23T00:01:00.000Z",
    "swept_tx_hash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
    "swept_at": "2026-07-23T00:02:00.000Z",
    "ledger_entries": [
      {
        "id": "led_cly123456789",
        "type": "CREDIT",
        "amount": "100.500000000000000000",
        "balance_after": "500.000000000000000000",
        "created_at": "2026-07-23T00:00:00.000Z"
      }
    ]
  }
]
GET/v1/deposits/{id}

Obtener Detalle Extendido de Depósito

Retorna la información completa de un depósito incluyendo swept_tx_hash y asientos contables asociados.

Parámetros

idpath · stringrequerido

Identificador del recurso.

curl
curl "https://api.nvialo.com/v1/deposits/{id}" \
  -H "x-api-key: $NVIALO_API_KEY"

Respuesta de ejemplo

200 OK
{
  "id": "dep_cly123456789",
  "merchant_id": "mer_cly123456789",
  "deposit_address_id": "da_cly123456789",
  "deposit_address": {
    "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
    "derivation_path": "m/44'/60'/0'/0/1",
    "end_user_id": "usr_cly123456789",
    "end_user": {
      "id": "usr_cly123456789",
      "external_id": "user_99"
    }
  },
  "network": "ETH_SEPOLIA",
  "asset": "USDT",
  "amount": "100.500000000000000000",
  "tx_hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
  "block_number": "12345678",
  "confirmations": 12,
  "status": "SWEPT",
  "detected_at": "2026-07-23T00:00:00.000Z",
  "confirmed_at": "2026-07-23T00:01:00.000Z",
  "swept_tx_hash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
  "swept_at": "2026-07-23T00:02:00.000Z",
  "ledger_entries": [
    {
      "id": "led_cly123456789",
      "type": "CREDIT",
      "amount": "100.500000000000000000",
      "balance_after": "500.000000000000000000",
      "created_at": "2026-07-23T00:00:00.000Z"
    }
  ]
}