Payouts

POST/business/v0/payouts

1. Create (quote) a payout

Try it live ↓

Creates the payout with the source wallet (moneda_origen), destination currency, method and beneficiary data (see GET /payouts/destinos), and monto_origen or monto_destino. Returns the rate, both amounts and expira_en. Nothing is debited: confirm it with POST /payouts/{id}/confirmar before it expires. saldo_suficiente tells you if your balance is enough today.

Endpoint URL#

POST https://sandbox.finanxis.net/business/v0/payouts

Headers#

NameRequiredDescription
Content-TypeYesapplication/json
X-Finanxis-KeyYesYour public key (pk_live_… or pk_test_…).
X-Finanxis-TimestampYesCurrent time in Unix seconds (UTC). ±5 minute window.
X-Finanxis-SignatureYeshex(HMAC_SHA256(secret, "${timestamp}.${METHOD}.${path_with_query}.${body}")). The body is the exact one you send (empty on GET). The code samples already compute it.
Idempotency-KeyYesUnique per operation. Retrying with the same key does not duplicate.. Up to 100 characters

Request body#

{
  "moneda_origen": "USDT",
  "moneda_destino": "VES",
  "monto_destino": 50000,
  "referencia_externa": "liq-2026-11-09-001",
  "beneficiario": {
    "metodo": "pago_movil",
    "documento": "V12345678",
    "telefono": "04121234567",
    "banco": "0102"
  }
}

Fields not listed above are rejected with VALIDACION.

Examples#

KEY="pk_test_..."; SECRET="sk_test_..."
RUTA="/business/v0/payouts"; TS=$(date +%s)
BODY='{"moneda_origen":"USDT","moneda_destino":"VES","monto_destino":50000,"referencia_externa":"liq-2026-11-09-001","beneficiario":{"metodo":"pago_movil","documento":"V12345678","telefono":"04121234567","banco":"0102"}}'
FIRMA=$(printf '%s' "$TS.POST.$RUTA.$BODY" | openssl dgst -sha256 -hmac "$SECRET" -hex | awk '{print $NF}')

curl -X POST "https://sandbox.finanxis.net$RUTA" \
  -H "X-Finanxis-Key: $KEY" \
  -H "X-Finanxis-Timestamp: $TS" \
  -H "X-Finanxis-Signature: $FIRMA" \
  -H "Idempotency-Key: TICKET-55821" \
  -H "Content-Type: application/json" \
  --data "$BODY"

Response codes#

CodeMeaning
201Success
500Error. Check `data.error.code` and `data.error.como_resolver`.
4xxError. Check `data.error.code` and `data.error.como_resolver`.

Every response has the shape { success, message, data }.

Response#

{
  "success": true,
  "message": "Envío cotizado. Confírmalo con POST /payouts/{id}/confirmar antes de que venza la tasa.",
  "data": {
    "id": "cmpay8x2k1m",
    "estado": "COTIZADO",
    "moneda_origen": "USDT",
    "moneda_destino": "VES",
    "monto_origen": 49.69,
    "monto_destino": 50000,
    "tasa": 1006.29,
    "metodo": "pago_movil",
    "beneficiario": {
      "metodo": "pago_movil",
      "documento": "V12345678",
      "telefono": "04121234567",
      "banco": "0102"
    },
    "referencia_externa": "liq-2026-11-09-001",
    "concepto": null,
    "metadata": null,
    "expira_en": "2026-11-09T14:10:00Z",
    "confirmado_en": null,
    "comprobante_url": null,
    "motivo_rechazo": null,
    "creado_en": "2026-11-09T14:00:00Z",
    "actualizado_en": "2026-11-09T14:00:00Z",
    "saldo_disponible": 1250.5,
    "saldo_suficiente": true
  }
}

Errors#

Every error carries data.error.code, what happened and how to fix it.

HTTPcodeHow to fix it
500ERROR_INTERNOOcurrió un error interno.Reintenta con la misma Idempotency-Key. Si persiste, contáctanos indicando el request_id.
400VALIDACIONHay campos inválidos.Revisa data.error.campos: cada elemento dice qué campo falló, por qué y un ejemplo válido.
400IDEMPOTENCY_KEY_FALTANTEFalta el header Idempotency-Key.Envía Idempotency-Key con un valor único por operación (ej. el número de ticket o un UUID). Si reintentas, usa el mismo valor y no se duplicará.
409IDEMPOTENCY_CONFLICTOEsa Idempotency-Key ya se usó con datos distintos.Usa una Idempotency-Key nueva para una operación nueva. Repite la misma solo para reintentar exactamente la misma petición.
400PAYOUTS_NO_HABILITADOSTu comercio no tiene payouts habilitados.Pide a Finanxis que active los payouts de tu comercio.
400TASA_NO_DISPONIBLENo hay tasa disponible para esa moneda en este momento.Consulta GET /business/v0/payouts/tasas y reintenta en unos minutos.
401AUTH_HEADERS_FALTANTESFaltan headers de autenticación.Envía X-Finanxis-Key, X-Finanxis-Timestamp y X-Finanxis-Signature en cada petición.
401AUTH_FIRMA_INVALIDALa firma no coincide.Firma HMAC-SHA256 en hex, con tu secreto, sobre: ${timestamp}.${METODO}.${ruta_con_query}.${body_exacto}. Usa el body exactamente como lo envías (mismo orden y espacios) y body vacío en GET.
401AUTH_TIMESTAMP_INVALIDOEl timestamp no es válido o está fuera de la ventana permitida.X-Finanxis-Timestamp debe ser la hora actual en segundos Unix (UTC). Se aceptan ±5 minutos: sincroniza el reloj de tu servidor (NTP).
401AUTH_LLAVE_REVOCADALa llave fue revocada.Crea una llave nueva en business.finanxis.net → Llaves de API y actualiza tu integración.