Table of Contents

Class FraudCheckResponse

Namespace
Vonage.NumberInsightV2.FraudCheck
Assembly
Vonage.dll

Represents the response from a fraud check request to the Number Insight V2 API.

public record FraudCheckResponse : IEquatable<FraudCheckResponse>
Inheritance
FraudCheckResponse
Implements
Inherited Members

Constructors

FraudCheckResponse(Guid, string, PhoneData, Maybe<FraudScore>, Maybe<SimSwap>)

Represents the response from a fraud check request to the Number Insight V2 API.

public FraudCheckResponse(Guid RequestId, string Type, PhoneData Phone, Maybe<FraudScore> FraudScore, Maybe<SimSwap> SimSwap)

Parameters

RequestId Guid

Unique identifier for this request, useful for tracking and support inquiries.

Type string

The type of lookup performed. Currently always "phone" for phone number lookups.

Phone PhoneData

Phone number details including carrier and type information when fraud_score insight is requested.

FraudScore Maybe<FraudScore>

The fraud score result, present only when "fraud_score" was requested in Insights. Contains risk score (0-100), risk recommendation, and risk label.

SimSwap Maybe<SimSwap>

The SIM swap check result, present only when "sim_swap" was requested in Insights. Indicates whether the SIM was swapped in the last 7 days.

Properties

FraudScore

The fraud score result, present only when "fraud_score" was requested in Insights. Contains risk score (0-100), risk recommendation, and risk label.

[JsonConverter(typeof(MaybeJsonConverter<FraudScore>))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Maybe<FraudScore> FraudScore { get; init; }

Property Value

Maybe<FraudScore>

Phone

Phone number details including carrier and type information when fraud_score insight is requested.

public PhoneData Phone { get; init; }

Property Value

PhoneData

RequestId

Unique identifier for this request, useful for tracking and support inquiries.

public Guid RequestId { get; init; }

Property Value

Guid

SimSwap

The SIM swap check result, present only when "sim_swap" was requested in Insights. Indicates whether the SIM was swapped in the last 7 days.

[JsonConverter(typeof(MaybeJsonConverter<SimSwap>))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Maybe<SimSwap> SimSwap { get; init; }

Property Value

Maybe<SimSwap>

Type

The type of lookup performed. Currently always "phone" for phone number lookups.

public string Type { get; init; }

Property Value

string