# Perform a preview analysis of the wallet

Endpoint: POST /v1/domains/{domainId}/compliance/analysis/preview
Version: v1
Security: httpAuth

## Security:

  - `httpAuth` (unknown)
    http bearer

## Path parameters:

  - `domainId` (string, required)

## Request fields (application/json):

  - `provider` (string, required)
    Enum: "ELLIPTIC"

  - `walletAddress` (string, required)

  - `ledger` (string, required)
    Ripple Custody ledger id of the wallet

  - `tickerId` (string)
    Ripple Custody ticker id of the asset; when omitted the Elliptic asset pre-check is skipped and the wallet is screened on its address only

  - `provider` (string, required)
    Enum: "CHAINALYSIS"

  - `transactionAmount` (number, required)

  - `ledger` (string, required)

  - `tickerId` (string, required)

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `provider` (string, required)
    Enum: "CHAINALYSIS"

  - `walletAddress` (string, required)

  - `transactionAmount` (number)

  - `ledger` (string, required)

  - `transactionType` (string, required)
    Enum: "INCOMING", "OUTGOING"

  - `screenedAt` (string)

  - `errorDetails` (string)

  - `warningDetails` (string)

  - `riskLevel` (string)
    Enum: "UNKNOWN", "SEVERE", "HIGH", "MEDIUM", "LOW", "NO_RISK_DETECTED", "NOT_SCREENABLE"

  - `screeningDetail` (object)

  - `screeningDetail.alerts` (array)

  - `screeningDetail.alerts.alertLevel` (string, required)
    Enum: "SEVERE", "HIGH", "MEDIUM", "LOW", "NO_RISK_DETECTED"

  - `screeningDetail.alerts.exposureType` (string, required)
    Enum: "DIRECT"

  - `screeningDetail.alerts.externalLink` (string, required)

  - `screeningDetail.alerts.category` (string)

  - `screeningDetail.directCounterparty` (string)

  - `provider` (string, required)
    Enum: "ELLIPTIC"

  - `riskLevel` (string)
    Enum: "LOW", "MEDIUM", "HIGH", "UNKNOWN", "NOT_SCREENABLE"

## Response 400:

  - `400` (unknown)
    Bad Request

## Response 400 fields (*/*):

  - `reason` (string, required)

  - `message` (string)

## Response 404:

  - `404` (unknown)
    Not Found

## Response 404 fields (*/*):

  - `reason` (string, required)

  - `message` (string)

## Response 405:

  - `405` (unknown)
    Method Not Allowed

## Response 405 fields (*/*):

  - `reason` (string, required)

  - `message` (string)

## Response 500:

  - `500` (unknown)
    Internal Server Error

## Response 500 fields (*/*):

  - `reason` (string, required)

  - `message` (string)

## Response 501:

  - `501` (unknown)
    The provider cannot screen this network or asset (NOT_SCREENABLE): a pre-check rejected it before any provider call. The reason names the asset, ledger or network; the preview stores no screening

## Response 501 fields (*/*):

  - `reason` (string, required)

  - `message` (string)

## Response 502:

  - `502` (unknown)
    The provider returned no analysis for the wallet after all retries (no verdict), or the Ripple Custody ticker lookup failed (SDK error or ticker without ticker data; CHAINALYSIS only, the Elliptic pre-check skips instead). The body carries the generic 5xx message (the handler sanitises the detail); the preview stores no screening, so the reason is in the server logs

## Response 502 fields (*/*):

  - `reason` (string, required)

  - `message` (string)

