Skip to main content
With your API key generated, send your first transaction to scoring’s sandbox mode: the same model as production, the transaction is labeled and does not count as live traffic. Pick your environment’s API host. The example below uses pre-official-integration. If you are already in production and only want to test a call without mixing it with live traffic, change the host to https://api.fraudeg.com/api and keep the /analyze/sandbox path.

/analyze vs /analyze/sandbox

Both exist on both APIs. /analyze/sandbox is not sandbox.fraudeg.com or sandbox-api.fraudeg.com. See Environments.

Request

Two headers are required:
order_id, user_id, transaction_amount, and payment_method are required. The canonical name is payment_method (the alias paymentInstrumentType is accepted).

Response

In the example, risk_score is 29.07 — medium band — but the decision is BLOCK. Always act on decision.type, never on the score. See Risk score.
For this test you can reuse the same X-Idempotency-Key on retries: you will get the same response. Before going to production, review how to generate a real key per transaction. Next step: Authentication.