Integration

GET/business/v0/ping

Test your integration

Try it live ↓

If it returns success: true, your key and signature are set up correctly. Use it as your first step.

Endpoint URL#

GET https://sandbox.finanxis.net/business/v0/ping

Headers#

NameRequiredDescription
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.

Examples#

KEY="pk_test_..."; SECRET="sk_test_..."
RUTA="/business/v0/ping"; TS=$(date +%s)
BODY=''
FIRMA=$(printf '%s' "$TS.GET.$RUTA.$BODY" | openssl dgst -sha256 -hmac "$SECRET" -hex | awk '{print $NF}')

curl -X GET "https://sandbox.finanxis.net$RUTA" \
  -H "X-Finanxis-Key: $KEY" \
  -H "X-Finanxis-Timestamp: $TS" \
  -H "X-Finanxis-Signature: $FIRMA"

Response codes#

CodeMeaning
200Success
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": "Autenticación correcta. Tu integración está lista.",
  "data": {
    "comercio": {
      "id": "cm9x1…",
      "nombre_fantasia": "Farmacia Central"
    },
    "ambiente": "sandbox",
    "hora_servidor": "2026-10-10T14:20:45.000Z"
  }
}

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.
401AUTH_LLAVE_INVALIDALa llave pública no existe.Revisa X-Finanxis-Key: debe ser una llave pk_live_… o pk_test_… creada en tu dashboard.
401AUTH_AMBIENTE_INCORRECTOLa llave no corresponde a este ambiente.Usa llaves pk_live_ con https://api.finanxis.net y llaves pk_test_ con https://sandbox.finanxis.net.
403AUTH_IP_NO_PERMITIDALa IP de origen no está permitida para esta llave.Agrega la IP de tu servidor a la llave en tu dashboard, o quita la restricción de IPs.
403COMERCIO_NO_ACTIVOTu comercio no está activo.Tu cuenta está en revisión, rechazada o suspendida. Escríbenos desde el dashboard para activarla.
429LIMITE_PETICIONESSuperaste el límite de peticiones.Espera los segundos indicados en el header Retry-After y reintenta. Límite: 20 peticiones por segundo por llave.
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.