Testing checks
What a test key still checks on an X-Ray Finance call, and the sample result it returns.
A test key never runs a real check: see Testing for how test keys work.
What a test key still checks
So your integration is right before you switch keys, a test key refuses the same malformed calls a live key does:
- every required field and its format (
400 invalidRequest), and theIdempotency-Keyheader - the consent time: not older than 24 hours, not more than 5 minutes in the future (
422 consentInvalid) - the consent IP: a public address, and not your server's own (
422 consentInvalid). A test key also accepts the documentation addresses our examples use, such as203.0.113.7; a live key refuses them. consent.methodischeckbox, and both URLs are absolutehttpsURLs (422 consentInvalid)- a US phone number (
422 phoneNotUs)
It does not check the consent sentence, your privacy policy, your wallet, opt-outs or earlier results: those come from your real setup and only a live key uses them.
The sample result
{
"id": "d38a0e74-f0f8-4c32-a14d-299231557a15",
"apiVersion": "2026-11-10",
"status": "complete",
"skipReason": null,
"reused": false,
"chargedCents": 0,
"leadId": null,
"createdAtUtc": "2026-11-10T12:26:40.142Z",
"completedAtUtc": "2026-11-10T12:26:40.142Z",
"result": {
"creditScore": 720,
"offers": [{ "name": "Credit Pre-Approval", "amount": 25000 }],
"debtToIncome": 31,
"income": 84000
}
}debtToIncome and income are filled only when you send "addOns": ["debtToIncome"]. GET /v1/public/xray/finance/checks/{id} with a test key returns the sample for any well-formed UUID (anything else is 404 checkNotFound), and POST /v1/public/xray/opt-outs with a test key records nothing and answers "recordedAtUtc": null.

