ROASFormDocs
APIX-Ray Finance

Opt-outs

Record a person's opt-out so no check runs for them again in your agency.

When a person opts out with you, record it within 5 business days with POST /v1/public/xray/opt-outs and the xrayOptOutsRecord permission. Send their email, phone, or both. From then on, checks for that person anywhere in your agency are refused with 422 consumerOptedOut: no check runs, nothing is charged and nothing about the person is stored. What your earlier calls for that person sent is also removed from the API page's Logs. Recording the same person twice is fine.

emailstring
Optional. The person's email.
phonestring
Optional. A US phone number. Send at least one of the two.
Response
{
  "apiVersion": "2026-11-10",
  "recordedAtUtc": "2026-11-06T09:12:44.512Z",
  "email": true,
  "phone": false
}

email and phone say which of the two were recorded. An email that is not a valid address, or a phone that is not a US number, is not recorded. When neither can be recorded, the call answers 400 invalidRequest. Every email a check accepts can be recorded here.

With a test key nothing is recorded, and the response says so: recordedAtUtc is null, while email and phone still say which of the two a live key would record. Record real opt-outs with a live key.