Referencia de API

Órdenes

Toda operación en moneda local crea una orden: cobros, pagos, conversiones, on-ramp y off-ramp. Aquí consultas el historial completo y el detalle con su línea de tiempo.

Operaciones

GET/v1/fiat/orderspermiso: fiat:read

Historial de órdenes fiat

Lista las órdenes fiat raíz del comercio en el entorno activo (los deals aparecen una vez; sus órdenes hijas se ven en el detalle). Oculta las cotizaciones vencidas que nunca se confirmaron salvo con include_expired_quotes=true. Orden descendente por (created_at, id), paginación por cursor de hasta 50 filas.

Parámetros

typequery · string

Tipos de orden, separados por coma o repetidos (type=PAYOUT,ONRAMP).

statusquery · string

Estados de orden, separados por coma o repetidos (status=COMPLETED,FAILED).

currencyquery · string

Moneda de origen o de destino.

contact_idquery · string (min 1)

Identificador del contacto (POST /v1/contacts).

payment_link_idquery · string (min 1)

Filtrar por link de pago.

sourcequery · string

Origen de la orden: PORTAL, API o SYSTEM (separados por coma o repetidos).

fromquery · string

Fecha de creación desde (ISO-8601, inclusive).

toquery · string

Fecha de creación hasta (ISO-8601, inclusive).

include_expired_quotesquery · string

Incluye las cotizaciones vencidas que nunca se confirmaron con el proveedor fiat (por defecto se ocultan).

cursorquery · string (min 1)

Cursor opaco devuelto en next_cursor de la página anterior.

limitquery · integer

Tamaño de página (máximo y valor por defecto: 50).

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

Respuesta de ejemplo

200 OK
{
  "data": [
    {
      "id": "clxorder123",
      "kind": "ORDER",
      "type": "PAYOUT",
      "status": "COMPLETED",
      "origin_currency": "COP",
      "destination_currency": "COP",
      "amount_in": "100000",
      "amount_out": "98500",
      "platform_fee": {
        "amount": "1500",
        "currency": "COP",
        "status": "COLLECTED",
        "collected_at": "2026-10-20T12:05:00.000Z"
      },
      "destination": {
        "bank_account_id": "clxbank123",
        "bank_name": "Bancolombia",
        "account_last4": "****7890",
        "contact_id": "clxcontact123",
        "contact_name": "Proveedor SAS",
        "network": "TRON",
        "wallet_address": "TXyz...",
        "inferred": false
      },
      "payment_link_id": null,
      "external_id": "payout_abc",
      "client_reference": "ref_001",
      "source": "PORTAL",
      "created_at": "2026-10-20T12:00:00.000Z",
      "completed_at": "2026-10-20T12:05:00.000Z",
      "error_code": null
    }
  ],
  "next_cursor": null,
  "has_more": false
}
GET/v1/fiat/orders/{id}permiso: fiat:read

Detalle de orden fiat

Detalle de una orden fiat del comercio: órdenes hijas, tx_hash y transaction_id (ramps), riesgo, depositante (BANK_INCOME), cargos del proveedor fiat y línea de tiempo de estados (eventos del proveedor fiat y cambios locales).

Parámetros

idpath · string (min 1)requerido

Identificador del recurso.

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

Respuesta de ejemplo

200 OK
{
  "data": {
    "id": "clxorder123",
    "kind": "ORDER",
    "type": "PAYOUT",
    "status": "COMPLETED",
    "origin_currency": "COP",
    "destination_currency": "COP",
    "amount_in": "100000",
    "amount_out": "98500",
    "platform_fee": {
      "amount": "1500",
      "currency": "COP",
      "status": "COLLECTED",
      "collected_at": "2026-10-20T12:05:00.000Z"
    },
    "destination": {
      "bank_account_id": "clxbank123",
      "bank_name": "Bancolombia",
      "account_last4": "****7890",
      "contact_id": "clxcontact123",
      "contact_name": "Proveedor SAS",
      "network": "TRON",
      "wallet_address": "TXyz...",
      "inferred": false
    },
    "payment_link_id": null,
    "external_id": "payout_abc",
    "client_reference": "ref_001",
    "source": "PORTAL",
    "created_at": "2026-10-20T12:00:00.000Z",
    "completed_at": "2026-10-20T12:05:00.000Z",
    "error_code": null,
    "parent_id": null,
    "tx_hash": "0xabc",
    "transaction_id": "clxtx123",
    "network": "TRON",
    "exchange_rate": "4100.5",
    "account_creation_fee": null,
    "risk": {
      "action": null,
      "reason": null
    },
    "depositor": {
      "name": null,
      "document_type": null,
      "document_number": null,
      "bank_name": null,
      "reference": null
    },
    "provider_charges": [
      {
        "ledger_entry_id": null,
        "category": "FEE",
        "type": null,
        "amount": "1200",
        "currency": "COP",
        "posted_at": null
      }
    ],
    "children": [
      {
        "id": "clxorder123",
        "kind": "ORDER",
        "type": "PAYOUT",
        "status": "COMPLETED",
        "origin_currency": "COP",
        "destination_currency": "COP",
        "amount_in": "100000",
        "amount_out": "98500",
        "platform_fee": {
          "amount": "1500",
          "currency": "COP",
          "status": "COLLECTED",
          "collected_at": "2026-10-20T12:05:00.000Z"
        },
        "destination": {
          "bank_account_id": "clxbank123",
          "bank_name": "Bancolombia",
          "account_last4": "****7890",
          "contact_id": "clxcontact123",
          "contact_name": "Proveedor SAS",
          "network": "TRON",
          "wallet_address": "TXyz...",
          "inferred": false
        },
        "payment_link_id": null,
        "external_id": "payout_abc",
        "client_reference": "ref_001",
        "source": "PORTAL",
        "created_at": "2026-10-20T12:00:00.000Z",
        "completed_at": "2026-10-20T12:05:00.000Z",
        "error_code": null,
        "tx_hash": "0xabc",
        "transaction_id": "clxtx123"
      }
    ],
    "timeline": [
      {
        "at": "2026-10-20T12:00:00.000Z",
        "source": "PROVIDER",
        "event": "order.completed",
        "status": "COMPLETED"
      }
    ]
  }
}