Referencia de API

Pagos (payouts)

Paga en moneda local a la cuenta de un contacto o retira a tu cuenta propia. Primero cotizas; luego creas el pago con esa cotización y una clave de idempotencia.

Un 202 no es un error

Si el pago supera el límite por operación o el de velocidad, responde 202 con status PENDING_APPROVAL y no se envía hasta que se apruebe en el portal ese mismo día UTC. Si supera el límite diario, responde 422 DAILY_LIMIT_REACHED y no se crea la orden.

Operaciones

POST/v1/fiat/payouts/quotepermiso: fiat:write

Cotizar Pago Fiat (Payout)

Calcula montos, comisiones de plataforma y proveedor, y total debitado para un pago fiat.

Cuerpo (JSON)

bank_account_idstringrequerido

ID de la cuenta bancaria de destino (propia o de contacto)

amountstring | numberrequerido

Monto a enviar o recibir.

amount_typeSEND | RECEIVErequerido

Indica si el monto especifica lo debitado (SEND) o lo acreditado (RECEIVE)

origin_currencystring

Moneda de origen para cross-border

supporting_document_idstring

Id del comprobante (factura o contrato) creado con POST /v1/fiat/cross-border/supporting-documents, subido y confirmado (status UPLOADED). Obligatorio en pagos a China (CN), en TESTNET y MAINNET; se valida antes de cotizar: falta → 422 FIAT_SUPPORTING_DOCUMENT_REQUIRED, formato inválido → 422 FIAT_SUPPORTING_DOCUMENT_INVALID, inexistente o de otro comercio o ambiente → 404 FIAT_SUPPORTING_DOCUMENT_NOT_FOUND, sin subir o sin confirmar (PENDING_UPLOAD) o rechazado (REJECTED) → 409 FIAT_SUPPORTING_DOCUMENT_NOT_READY, ya ligado a otro pago → 409 FIAT_SUPPORTING_DOCUMENT_ALREADY_USED. Cada comprobante respalda un solo pago. En el resto de los países se ignora.

curl
curl -X POST "https://api.nvialo.com/v1/fiat/payouts/quote" \
  -H "x-api-key: $NVIALO_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "bank_account_id": "fba_123456",
    "amount": "500000",
    "amount_type": "SEND"
  }'

Respuesta de ejemplo

200 OK
{
  "quote_id": "qt_123456789",
  "valid_until": "2026-10-20T12:05:00.000Z",
  "currency": "COP",
  "amount_in": "500000.00",
  "amount_out": "500000.00",
  "provider_fee": {
    "fee": "0.00",
    "taxes": "0.00",
    "components": [
      null
    ]
  },
  "platform_fee": {
    "amount": "2500.00",
    "currency": "COP"
  },
  "total_debit": "502500.00",
  "destination": {
    "bank_account_id": "fba_123456",
    "contact_id": "con_123456",
    "account_last4": "****1234",
    "bank_name": "Bancolombia"
  },
  "cross_border": {
    "corridor_id": "string",
    "country": "string",
    "currency": "string",
    "rail": "string",
    "origin_currency": "string",
    "destination_currency": "string",
    "exchange_rate": null,
    "expires_at": "string",
    "valid_for_seconds": 0
  }
}
POST/v1/fiat/payoutspermiso: fiat:write

Crear Pago Fiat (Payout)

Ejecuta o encola para aprobación un pago fiat hacia una cuenta bancaria de contacto o retiro propio.

Cuerpo (JSON)

quote_idstringrequerido

Identificador de la cotización congelada.

bank_account_idstringrequerido

ID de la cuenta bancaria de destino.

amountstring | numberrequerido

Monto de la operación.

amount_typeSEND | RECEIVErequerido

SEND o RECEIVE.

descriptionstring (max 255)

Descripción o concepto del pago.

client_referencestring (max 100)

Referencia única del cliente para idempotencia.

idempotency_keystring (min 1, max 64)

Clave de idempotencia elegida por el integrador. Obligatoria con API key (400 IDEMPOTENCY_KEY_REQUIRED), opcional en el portal. Repetirla con el mismo cuerpo devuelve la operación ya creada; con otro cuerpo, 409 IDEMPOTENCY_KEY_REUSED. Se guarda como client_reference.

otp_codestring

Código OTP (MFA). Obligatorio en el portal; no aplica con API key.

supporting_document_idstring

Id del comprobante (factura o contrato) creado con POST /v1/fiat/cross-border/supporting-documents, subido y confirmado (status UPLOADED). Obligatorio en pagos a China (CN), en TESTNET y MAINNET; se valida antes de cotizar: falta → 422 FIAT_SUPPORTING_DOCUMENT_REQUIRED, formato inválido → 422 FIAT_SUPPORTING_DOCUMENT_INVALID, inexistente o de otro comercio o ambiente → 404 FIAT_SUPPORTING_DOCUMENT_NOT_FOUND, sin subir o sin confirmar (PENDING_UPLOAD) o rechazado (REJECTED) → 409 FIAT_SUPPORTING_DOCUMENT_NOT_READY, ya ligado a otro pago → 409 FIAT_SUPPORTING_DOCUMENT_ALREADY_USED. Cada comprobante respalda un solo pago. En el resto de los países se ignora.

curl
curl -X POST "https://api.nvialo.com/v1/fiat/payouts" \
  -H "x-api-key: $NVIALO_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "quote_id": "qt_123456789",
    "bank_account_id": "fba_123456",
    "amount": "500000",
    "amount_type": "SEND",
    "idempotency_key": "pedido-2026-10-20-0001"
  }'

Respuesta de ejemplo

201 Created
{
  "id": "ord_payout_123",
  "status": "PENDING",
  "currency": "COP",
  "amount_in": "500000.00",
  "amount_out": "500000.00",
  "total_debit": "502500.00",
  "platform_fee": {
    "amount": "string",
    "currency": "string"
  },
  "risk": {
    "action": "string",
    "reason": null
  },
  "approval_reason": null,
  "destination": {
    "bank_account_id": "fba_123",
    "contact_id": "con_456",
    "contact_name": "Juan Pérez",
    "bank_name": "Bancolombia",
    "account_last4": "****1234",
    "self_order": false
  },
  "cross_border": {
    "country": "string",
    "currency": "string",
    "rail": "string",
    "destination_currency": "string",
    "compliance_review": {
      "status": "IN_REVIEW",
      "label": "string",
      "since": "string"
    },
    "supporting_document_id": "cm3sd0c0000001abcdeffgh12",
    "delivery": {
      "status": "SENT",
      "label": "Enviado",
      "note": "El banco del beneficiario acredita el pago en 1 a 3 días hábiles."
    }
  },
  "client_reference": "ref_123",
  "external_id": "vc_abc123",
  "error_code": null,
  "requested_by_user_id": null,
  "requested_by_type": "USER",
  "requested_by_id": "cmu_cly123456789",
  "requested_by_label": "Ana Pérez",
  "approval_required": true,
  "approved_at": "2026-11-26T15:04:05.000Z",
  "approved_by_id": "cmu_cly123456789",
  "approved_by_label": "Ana Pérez",
  "rejected_at": null,
  "rejected_by_id": null,
  "rejected_by_label": null,
  "reject_reason": null,
  "created_at": "2026-10-20T12:00:00.000Z",
  "updated_at": "2026-10-20T12:00:00.000Z",
  "completed_at": "2026-10-20T12:05:00.000Z"
}
GET/v1/fiat/payoutspermiso: fiat:read

Listar Pagos Fiat

Consulta el historial de pagos y retiros fiat del entorno activo con filtros y paginación.

Parámetros

statusquery · enum

Filtrar por estado del pago fiat. Valores: PENDING, ON_HOLD, PROCESSING, COMPLETED, FAILED, CANCELLED, EXPIRED, REFUND_REQUESTED, REFUNDED, PENDING_APPROVAL.

contact_idquery · string

Filtrar por ID de contacto destino.

approvalquery · pending | approved | rejected

Cola de aprobación: pending (PENDING_APPROVAL), approved (aprobados a mano), rejected (rechazados por el comercio)

fromquery · string (date-time)

Fecha inicio de creación (ISO)

toquery · string (date-time)

Fecha fin de creación (ISO)

limitquery · integer

Cantidad máxima de registros. Por defecto: 20.

offsetquery · integer

Desplazamiento para paginación. Por defecto: 0.

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

Respuesta de ejemplo

200 OK
{
  "items": [
    {
      "id": "ord_payout_123",
      "status": "PENDING",
      "currency": "COP",
      "amount_in": "500000.00",
      "amount_out": "500000.00",
      "total_debit": "502500.00",
      "platform_fee": {
        "amount": "string",
        "currency": "string"
      },
      "risk": {
        "action": "string",
        "reason": null
      },
      "approval_reason": null,
      "destination": {
        "bank_account_id": "fba_123",
        "contact_id": "con_456",
        "contact_name": "Juan Pérez",
        "bank_name": "Bancolombia",
        "account_last4": "****1234",
        "self_order": false
      },
      "cross_border": {
        "country": "string",
        "currency": "string",
        "rail": "string",
        "destination_currency": "string",
        "compliance_review": {
          "status": "IN_REVIEW",
          "label": "string",
          "since": "string"
        },
        "supporting_document_id": "cm3sd0c0000001abcdeffgh12",
        "delivery": {
          "status": "SENT",
          "label": "Enviado",
          "note": "El banco del beneficiario acredita el pago en 1 a 3 días hábiles."
        }
      },
      "client_reference": "ref_123",
      "external_id": "vc_abc123",
      "error_code": null,
      "requested_by_user_id": null,
      "requested_by_type": "USER",
      "requested_by_id": "cmu_cly123456789",
      "requested_by_label": "Ana Pérez",
      "approval_required": true,
      "approved_at": "2026-11-26T15:04:05.000Z",
      "approved_by_id": "cmu_cly123456789",
      "approved_by_label": "Ana Pérez",
      "rejected_at": null,
      "rejected_by_id": null,
      "rejected_by_label": null,
      "reject_reason": null,
      "created_at": "2026-10-20T12:00:00.000Z",
      "updated_at": "2026-10-20T12:00:00.000Z",
      "completed_at": "2026-10-20T12:05:00.000Z"
    }
  ],
  "total": 42,
  "limit": 20,
  "offset": 0
}
GET/v1/fiat/payouts/{id}permiso: fiat:read

Obtener Detalle de Pago Fiat

Retorna el detalle completo de un pago o retiro fiat sin exponer números de cuenta sensibles.

Parámetros

idpath · stringrequerido

ID de la orden de pago fiat.

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

Respuesta de ejemplo

200 OK
{
  "id": "ord_payout_123",
  "status": "PENDING",
  "currency": "COP",
  "amount_in": "500000.00",
  "amount_out": "500000.00",
  "total_debit": "502500.00",
  "platform_fee": {
    "amount": "string",
    "currency": "string"
  },
  "risk": {
    "action": "string",
    "reason": null
  },
  "approval_reason": null,
  "destination": {
    "bank_account_id": "fba_123",
    "contact_id": "con_456",
    "contact_name": "Juan Pérez",
    "bank_name": "Bancolombia",
    "account_last4": "****1234",
    "self_order": false
  },
  "cross_border": {
    "country": "string",
    "currency": "string",
    "rail": "string",
    "destination_currency": "string",
    "compliance_review": {
      "status": "IN_REVIEW",
      "label": "string",
      "since": "string"
    },
    "supporting_document_id": "cm3sd0c0000001abcdeffgh12",
    "delivery": {
      "status": "SENT",
      "label": "Enviado",
      "note": "El banco del beneficiario acredita el pago en 1 a 3 días hábiles."
    }
  },
  "client_reference": "ref_123",
  "external_id": "vc_abc123",
  "error_code": null,
  "requested_by_user_id": null,
  "requested_by_type": "USER",
  "requested_by_id": "cmu_cly123456789",
  "requested_by_label": "Ana Pérez",
  "approval_required": true,
  "approved_at": "2026-11-26T15:04:05.000Z",
  "approved_by_id": "cmu_cly123456789",
  "approved_by_label": "Ana Pérez",
  "rejected_at": null,
  "rejected_by_id": null,
  "rejected_by_label": null,
  "reject_reason": null,
  "created_at": "2026-10-20T12:00:00.000Z",
  "updated_at": "2026-10-20T12:00:00.000Z",
  "completed_at": "2026-10-20T12:05:00.000Z"
}