Skip to content

Commit 3f9de41

Browse files
committed
Add non-scalar key values to minfraud response top level field section
1 parent a0507e0 commit 3f9de41

File tree

2 files changed

+91
-12
lines changed

2 files changed

+91
-12
lines changed

content/minfraud/api-documentation/responses.md

Lines changed: 87 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,19 @@ For full examples of response bodies, select one of the following:
187187
"id": "5bc5d6c2-b2c8-40af-87f4-6d61af86b6ae",
188188
"risk_score": 0.01,
189189
"funds_remaining": 25,
190-
"queries_remaining": 5000
190+
"queries_remaining": 5000,
191+
"ip_address": {...},
192+
"credit_card": {...},
193+
"device": {...},
194+
"email": {...},
195+
"shipping_address": {...},
196+
"shipping_phone": {...},
197+
"billing_address": {...},
198+
"billing_phone": {...},
199+
"disposition": {...},
200+
"risk_score_reasons": [...],
201+
"subscores": {...},
202+
"warnings": [...]
191203
...
192204
}
193205
```
@@ -212,6 +224,70 @@ For full examples of response bodies, select one of the following:
212224
The approximate number of queries remaining for the service before your account runs out of funds.
213225
{{</minfraud-schema-row>}}
214226

227+
{{< minfraud-schema-row key="queries_remaining" type="response" valueType="integer" valueTypeNote="min: 0" score="true" insights="true" factors="true" >}}
228+
The approximate number of queries remaining for the service before your account runs out of funds.
229+
{{</minfraud-schema-row>}}
230+
231+
{{< minfraud-schema-row key="ip_address" fragmentOverride="ip-address" type="response" valueType="object" score="true" insights="true" factors="true" >}}
232+
This object contains IP intelligence data.
233+
[See more](#ip-address).
234+
{{</minfraud-schema-row>}}
235+
236+
{{< minfraud-schema-row key="credit_card" fragmentOverride="credit-card" type="response" valueType="object" insights="true" factors="true" >}}
237+
This object contains information related to the credit card.
238+
[See more](#credit-card).
239+
{{</minfraud-schema-row>}}
240+
241+
{{< minfraud-schema-row key="device" fragmentOverride="device" type="response" valueType="object" insights="true" factors="true" >}}
242+
This object contains information about the device that MaxMind believes is associated with the IP address passed in the request.
243+
[See more](#device).
244+
{{</minfraud-schema-row>}}
245+
246+
{{< minfraud-schema-row key="email" fragmentOverride="email" type="response" valueType="object" insights="true" factors="true" >}}
247+
This object contains email intelligence data.
248+
[See more](#email).
249+
{{</minfraud-schema-row>}}
250+
251+
{{< minfraud-schema-row key="shipping_address" fragmentOverride="shipping-address" type="response" valueType="object" insights="true" factors="true" >}}
252+
This object contains information related to the shipping address
253+
[See more](#shipping-address).
254+
{{</minfraud-schema-row>}}
255+
256+
{{< minfraud-schema-row key="shipping_phone" fragmentOverride="shipping-phone" type="response" valueType="object" insights="true" factors="true" >}}
257+
This object contains information related to the shipping phone number
258+
[See more](#shipping-phone).
259+
{{</minfraud-schema-row>}}
260+
261+
{{< minfraud-schema-row key="billing_address" fragmentOverride="billing-address" type="response" valueType="object" insights="true" factors="true" >}}
262+
This object contains information related to the billing address
263+
[See more](#billing-address).
264+
{{</minfraud-schema-row>}}
265+
266+
{{< minfraud-schema-row key="billing_phone" fragmentOverride="billing-phone" type="response" valueType="object" insights="true" factors="true" >}}
267+
This object contains information related to the billing phone number
268+
[See more](#billing-phone).
269+
{{</minfraud-schema-row>}}
270+
271+
{{< minfraud-schema-row key="disposition" fragmentOverride="disposition" type="response" valueType="object" score="true" insights="true" factors="true" >}}
272+
This object contains information about how a request was handled by the custom rules you have defined.
273+
[See more](#disposition).
274+
{{</minfraud-schema-row>}}
275+
276+
{{< minfraud-schema-row key="risk_score_reasons" fragmentOverride="risk-score-reasons" type="response" valueType="array" factors="true" >}}
277+
This array contains risk score reason objects.
278+
[See more](#risk-score-reasons).
279+
{{</minfraud-schema-row>}}
280+
281+
{{< minfraud-schema-row key="subscores" fragmentOverride="subscores" type="response" valueType="object" factors="true" >}}
282+
**Deprecated.** This object contains risk factor scores for many of the individual components that are used in calculating the risk_score.
283+
[See more](#subscores).
284+
{{</minfraud-schema-row>}}
285+
286+
{{< minfraud-schema-row key="warnings" fragmentOverride="warnings" type="response" valueType="array" score="true" insights="true" factors="true" >}}
287+
This array contains warning objects detailing issues with the request that was sent such as invalid or unknown inputs.
288+
[See more](#warnings).
289+
{{</minfraud-schema-row>}}
290+
215291
{{</ schema-table >}}
216292

217293
### IP Address
@@ -948,7 +1024,7 @@ will not be present in the response.
9481024
},
9491025
{
9501026
"code": "IP_ISSUER_ID_NUMBER_VELOCITY",
951-
"reason": "The number of distinct Issuer ID Numbers found in the
1027+
"reason": "The number of distinct Issuer ID Numbers found in the
9521028
velocity check on IP address raised the overall risk score"
9531029
}
9541030
]
@@ -958,7 +1034,7 @@ will not be present in the response.
9581034
"reasons": [
9591035
{
9601036
"code": "TIME_OF_DAY",
961-
"reason": "The local time of day of the request raised the overall
1037+
"reason": "The local time of day of the request raised the overall
9621038
risk score"
9631039
}
9641040
]
@@ -968,7 +1044,7 @@ will not be present in the response.
9681044
"reasons": [
9691045
{
9701046
"code": "EMAIL_DOMAIN_NEW",
971-
"reason": "The email domain being recently seen for the first time
1047+
"reason": "The email domain being recently seen for the first time
9721048
in the minFraud network raised the overall risk score"
9731049
}
9741050
]
@@ -978,7 +1054,7 @@ will not be present in the response.
9781054
"reasons": [
9791055
{
9801056
"code": "PHONE_ACTIVITY",
981-
"reason": "minFraud network activity of the phone number lowered
1057+
"reason": "minFraud network activity of the phone number lowered
9821058
the overall risk score"
9831059
}
9841060
]
@@ -999,9 +1075,9 @@ will not be present in the response.
9991075
A machine-readable code identifying the risk reason. Examples listed below. Although more codes may be added in the future, a list of current codes may be provided on request.
10001076
| Code |
10011077
| --------------- |
1002-
| ANONYMOUS\_IP |
1003-
| COUNTRY |
1004-
| ORG\_DISTANCE\_RISK |
1078+
| ANONYMOUS\_IP |
1079+
| COUNTRY |
1080+
| ORG\_DISTANCE\_RISK |
10051081
{{</minfraud-schema-row>}}
10061082

10071083
{{< minfraud-schema-row key="reason" type="response" valueType="string" factors="true" >}}
@@ -1019,9 +1095,9 @@ will not be present in the response.
10191095
{{< anchor-target schema--response--subscores >}}
10201096

10211097
{{< alert warning >}}
1022-
Risk factor scores are deprecated as of November 4, 2024. Please
1023-
[review risk score reasons](/minfraud/api-documentation/responses/#risk-score-reasons)
1024-
for insight into why a risk score is high or low.
1098+
Risk factor scores are deprecated as of November 4, 2024. Please
1099+
[review risk score reasons](/minfraud/api-documentation/responses/#risk-score-reasons)
1100+
for insight into why a risk score is high or low.
10251101

10261102
{{</ alert >}}
10271103

layouts/shortcodes/minfraud-schema-row.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
{{ $key := .Get "key" }}
44
{{ $type := .Get "type" }}
55
{{ $fragment := printf "schema--%s--%s__%s" $type $parentKey $key }}
6+
{{ $fragmentOverride := .Get "fragmentOverride" }}
7+
{{ $href := $fragment }}
8+
{{ if $fragmentOverride }}{{ $href = $fragmentOverride }}{{ end }}
69

710
{{ $score := .Get "score" }}
811
{{ $insights := .Get "insights" }}
@@ -14,7 +17,7 @@
1417

1518
<tr>
1619
<td class="schema__key-cell">
17-
<a href="#{{ $fragment }}"><code class="schema__row-key">{{ $key }}</code></a>
20+
<a href="#{{ $href }}"><code class="schema__row-key">{{ $key }}</code></a>
1821
</td>
1922
<td class="schema__type-cell">
2023
{{ .Get "valueType" }}

0 commit comments

Comments
 (0)