|| "en_GB"
🛡️

Fraud Prevention

E-commerce and payment fraud detection

Order risk scoring
Account takeover prevention
Payment fraud detection

Visão Geral

Este guia mostra como implementar fraud prevention usando a API Scorika. Cobriremos a integração completa com exemplos de código em vários idiomas.

Endpoints da API Utilizados

  • /v1/score
  • /v1/check/email
  • /v1/check/ip
  • /v1/check/phone

Países Suportados

Todos os países suportados

Implementação Passo a Passo

1Score Order Risk

Use the main scoring endpoint to evaluate order risk:

curl -X POST https://api.scorika.com/v1/score \
  -H "X-Api-Key: sk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"email": "customer@example.com", "ip": "185.1.2.3"}'

2Tomar Decisão

Tomar Decisão
def handle_order_risk(score_result):    """Handle order risk decision with fallback."""    decision = score_result["decision"]    score = score_result["score"]    reason_codes = score_result.get("reason_codes", [])        if decision == "block":        # High risk - reject        return {            "action": "reject",            "reason": f"High risk score: {score}",            "reason_codes": reason_codes        }    elif decision == "review":        # Medium risk - manual review        return {            "action": "review",            "reason": f"Medium risk score: {score}",            "reason_codes": reason_codes        }    else:        # Low risk - approve        return {            "action": "approve",            "reason": f"Low risk score: {score}"        }

Best Practices

✓ Fazer

  • • Set timeout (3-5s) on all API calls
  • • Implement fallback for timeouts/errors
  • • Cache results when appropriate
  • • Log case_ids for debugging

✗ Não fazer

  • • Block critical flows on API errors
  • • Make sync calls without timeout
  • • Expose API keys in client-side code
  • • Store raw API responses with PII

Guias Relacionados

Pronto para Implementar Fraud Prevention?

Obtenha sua chave API em 30 segundos. Não é necessário cartão de crédito.

Obter Chave API →