### Developer Guide

### Get Order Result

Retrieve an existing transaction from FraudLabs Pro fraud detection system.

Please take note that this API is only available for paid plan. Please upgrade your plan to use it if you are currently subscribed to a Micro plan.

### Request

GET

https://api.fraudlabspro.com/v2/order/result

| Parameter | Type | Description |
| --- | --- | --- |
| id | string | (required) Unique transaction ID generated by Fraud Check API. Or order ID generated by your platform. |
| key | string | (required) API license key. |
| format | string | (optional) Return the result in json or xml format. Default:json Valid values: json \| xml |

### Response

| Parameter | Type | Description |
| --- | --- | --- |
| ip\_geolocation.ip | string | IP address of the transaction. |
| ip\_geolocation.continent | string | Estimated continent of the IP address. |
| ip\_geolocation.country\_code | string | Estimated ISO-3166 alpha-2 country code of the IP address. |
| ip\_geolocation.country\_name | string | Estimated country of the IP address. |
| ip\_geolocation.region | string | Estimated region of the IP address. |
| ip\_geolocation.city | string | Estimated city of the IP address. |
| ip\_geolocation.latitude | decimal | Estimated latitude of the IP address in 4 precisions. |
| ip\_geolocation.longitude | decimal | Estimated longitude of the IP address in 4 precisions. |
| ip\_geolocation.zip\_code | string | Estimated ZIP code of the IP address. |
| ip\_geolocation.timezone | string | Estimated timezone of the IP address. |
| ip\_geolocation.isp\_name | string | Estimated ISP name of the IP address. |
| ip\_geolocation.domain | string | Estimated domain name of the IP address. |
| ip\_geolocation.netspeed | string | Estimated netspeed of the IP address. |
| ip\_geolocation.mobile\_mnc | string | Estimated mobile mnc information of the IP address, if it is a mobile network. |
| ip\_geolocation.mobile\_mcc | string | Estimated mobile mcc information of the IP address, if it is a mobile network. |
| ip\_geolocation.mobile\_brand | string | Estimated mobile brand information of the IP address, if it is a mobile network. |
| ip\_geolocation.elevation | integer | Estimated elevation of the IP address. |
| ip\_geolocation.usage\_type | string | Estimated usage type of the IP address. Return values as below: Commercial Organization Government Military University/College/School Library Content Delivery Network Fixed Line ISP Mobile ISP Data Center/Web Hosting/Transit Search Engine Spider |
| ip\_geolocation.is\_proxy | boolean | Whether the IP address is from a known anonymous proxy server. |
| ip\_geolocation.is\_in\_blacklist | boolean | Whether the IP address is in our blacklist database. |
| billing\_address.distance\_in\_km | integer | Distance of location between IP address and bill. Value in kilometer. |
| billing\_address.distance\_in\_mile | integer | Distance of location between IP address and bill. Value in mile. |
| billing\_address.is\_ip\_country\_match | boolean | Whether country of IP address matches billing address country. |
| shipping\_address.is\_address\_ship\_forward | boolean | Whether the shipping address is in database of known mail drops. |
| shipping\_address.is\_bill\_city\_match | boolean | Whether the billing city matches the shipping city. |
| shipping\_address.is\_bill\_state\_match | boolean | Whether the billing state matches the shipping state. |
| shipping\_address.is\_bill\_country\_match | boolean | Whether the billing country matches the shipping country. |
| shipping\_address.is\_bill\_postcode\_match | boolean | Whether the billing postal/zip code matches the shipping postal/zip code. |
| shipping\_address.is\_export\_controlled\_country | boolean | Whether the country is from an embargoed country. |
| shipping\_address.is\_in\_blacklist | boolean | Whether the ship address is in our blacklist database. |
| email\_address.is\_free | boolean | Whether the email is from free email provider. |
| email\_address.is\_disposable | boolean | Whether the email is a disposable email. Only applicable for Small Plan onward. |
| email\_address.is\_domain\_exists | boolean | Whether the email domain name is a valid domain. |
| email\_address.is\_new\_domain\_name | boolean | Whether the email domain name a newly registered name. Only applicable for non-free email domain. |
| email\_address.is\_in\_blacklist | boolean | Whether the email address is in our blacklist database. |
| phone\_number.is\_disposable | boolean | Whether the phone number is a disposable phone number. Only applicable for Medium Plan onward. |
| phone\_number.is\_in\_blacklist | boolean | Whether the user's phone number is in our blacklist database. |
| username.is\_high\_risk | boolean | Whether the username is in our high risk database. |
| username.is\_in\_blacklist | boolean | Whether the username is in our blacklist database. |
| credit\_card.card\_brand | string | The brand of the card. Available on Medium plan onward only. |
| credit\_card.card\_type | string | Whether the card is a type of credit or debit. Available on Medium plan onward only. |
| credit\_card.card\_issuing\_bank | string | The name of the bank where the card being issued. Available on Medium plan onward only. |
| credit\_card.card\_issuing\_country | string | The ISO-3166 alpha-2 Country Codes where the card being issued. Available on Medium plan onward only. |
| credit\_card.is\_prepaid | boolean | Whether the credit card is a type of prepaid card. |
| credit\_card.is\_bin\_exist | boolean | Whether the BIN information matches our BIN list. |
| credit\_card.is\_bin\_country\_match | boolean | Whether the country of issuing bank matches BIN country code. |
| credit\_card.is\_in\_blacklist | boolean | Whether the credit card is in our blacklist database. |
| device.is\_malware\_exploit | boolean | Whether the machine is infected. |
| device.is\_in\_blacklist | boolean | Whether the device Id is in our blacklist database. |
| user\_order\_id | string | Return the order identifier given by merchant earlier. |
| fraudlabspro\_id | string | System own unique identifier to identify this API transaction. |
| fraudlabspro\_score | integer | Overall score between 1 and 100. 100 is the highest risk and 1 is the lowest risk. |
| fraudlabspro\_status | string | Final action based on the rules analysis. Return values: APPROVE \| REJECT \| REVIEW |
| fraudlabspro\_rules | array | Return the rules triggered by the system. Available on Mini plan onward only. |

### Sample Codes

### Sample Code

&lt;?php

require\_once

'lib/FraudLabsPro.php'

;

// Configures FraudLabs Pro API key

FraudLabsPro

\\

Configuration

::

apiKey

(

'YOUR\_API\_KEY'

)

;

$result

=

FraudLabsPro

\\

Order

::

getTransaction

(

'20170906MXFHSTRF'

,

FraudLabsPro

::

FLP\_ID

)

;

import

com

.

fraudlabspro

.

\*

;

import

java

.

util

.

Hashtable

;

public

class

FLP

\{

public

static

void

main

(

String

\[

\]

args

)

\{

// Configures FraudLabs Pro API key

FraudLabsPro

.

APIKEY

=

"YOUR\_API\_KEY"

;

// Get Order Result API

Order

orderResults

=

new

Order

(

)

;

// Sets order ID to return all available information regarding the order

Hashtable

data

=

new

Hashtable

&lt;

&gt;

(

)

;

data

.

put

(

"id"

,

"20180709-NHAEUK"

)

;

data

.

put

(

"id\_type"

,

orderResults

.

FLP\_ID

)

;

String

result

=

orderResults

.

getTransaction

(

data

)

;

// Obtains order results from FraudLabs Pro

\}

\}

Imports

FraudLabsPro

.

FraudLabsPro

Imports

Newtonsoft

.

Json

Module

Program

Sub

Main

(

)

'Configure FraudLabs Pro API KEY

FraudLabsProConfig

.

APIKey

=

"YOUR\_API\_KEY"

Dim

GetOrderPara

As

New

OrderPara

With

\{

.

ID

=

"20240112-1EILFK"

,

.

IDType

=

Order

.

IDTypes

.

FLP\_ID

\}

'Get Order Result API

Dim

OrderResult

As

New

Order

Dim

result

=

OrderResult

.

GetOrderResult

(

GetOrderPara

)

'Get order result from FraudLabs Pro

Dim

ipgeolocation

=

result

(

"ip\_geolocation"

)

Dim

ipgeolocationfields

=

New

ArrayList From

\{

"ip"

,

"continent"

,

"country\_code"

,

"country\_name"

,

"region"

,

"city"

,

"latitude"

,

"longitude"

,

"zip\_code"

,

"timezone"

,

"isp\_name"

,

"domain"

,

"netspeed"

,

"mobile\_mnc"

,

"mobile\_mcc"

,

"mobile\_brand"

,

"elevation"

,

"usage\_type"

,

"is\_proxy"

,

"is\_in\_blacklist"

\}

For

Each

field

In

ipgeolocationfields Console

.

WriteLine

(

"ip\_geolocation."

&amp;

field

.

ToString

&amp;

": "

&amp;

ipgeolocation

(

field

)

.

ToString

)

Next

Dim

billingaddress

=

result

(

"billing\_address"

)

Dim

billingaddressfields

=

New

ArrayList From

\{

"ip\_distance\_in\_km"

,

"ip\_distance\_in\_mile"

,

"is\_ip\_country\_match"

\}

For

Each

field

In

billingaddressfields Console

.

WriteLine

(

"billing\_address."

&amp;

field

.

ToString

&amp;

": "

&amp;

billingaddress

(

field

)

.

ToString

)

Next

Dim

shippingaddress

=

result

(

"shipping\_address"

)

Dim

shippingaddressfields

=

New

ArrayList From

\{

"is\_address\_ship\_forward"

,

"is\_bill\_country\_match"

,

"is\_bill\_state\_match"

,

"is\_bill\_city\_match"

,

"is\_bill\_postcode\_match"

,

"is\_export\_controlled\_country"

,

"is\_in\_blacklist"

\}

For

Each

field

In

shippingaddressfields Console

.

WriteLine

(

"shipping\_address."

&amp;

field

.

ToString

&amp;

": "

&amp;

shippingaddress

(

field

)

.

ToString

)

Next

Dim

emailaddress

=

result

(

"email\_address"

)

Dim

emailaddressfields

=

New

ArrayList From

\{

"is\_free"

,

"is\_disposable"

,

"is\_domain\_exist"

,

"is\_new\_domain\_name"

,

"is\_in\_blacklist"

\}

For

Each

field

In

emailaddressfields Console

.

WriteLine

(

"email\_address."

&amp;

field

.

ToString

&amp;

": "

&amp;

emailaddress

(

field

)

.

ToString

)

Next

Dim

phonenumber

=

result

(

"phone\_number"

)

Dim

phonenumberfields

=

New

ArrayList From

\{

"is\_disposable"

,

"is\_in\_blacklist"

\}

For

Each

field

In

phonenumberfields Console

.

WriteLine

(

"phone\_number."

&amp;

field

.

ToString

&amp;

": "

&amp;

phonenumber

(

field

)

.

ToString

)

Next

Dim

username

=

result

(

"username"

)

Dim

usernamefields

=

New

ArrayList From

\{

"is\_high\_risk"

,

"is\_in\_blacklist"

\}

For

Each

field

In

usernamefields Console

.

WriteLine

(

"username."

&amp;

field

.

ToString

&amp;

": "

&amp;

username

(

field

)

.

ToString

)

Next

Dim

creditcard

=

result

(

"credit\_card"

)

Dim

creditcardfields

=

New

ArrayList From

\{

"card\_brand"

,

"card\_type"

,

"card\_issuing\_bank"

,

"card\_issuing\_country"

,

"is\_prepaid"

,

"is\_bin\_exist"

,

"is\_bin\_country\_match"

,

"is\_in\_blacklist"

\}

For

Each

field

In

creditcardfields Console

.

WriteLine

(

"credit\_card."

&amp;

field

.

ToString

&amp;

": "

&amp;

creditcard

(

field

)

.

ToString

)

Next

Dim

device

=

result

(

"device"

)

Dim

devicefields

=

New

ArrayList From

\{

"is\_malware\_exploit"

,

"is\_in\_blacklist"

\}

For

Each

field

In

devicefields Console

.

WriteLine

(

"device."

&amp;

field

.

ToString

&amp;

": "

&amp;

device

(

field

)

.

ToString

)

Next

Console

.

WriteLine

(

"user\_order\_id: "

&amp;

result

(

"user\_order\_id"

)

.

ToString

)

Console

.

WriteLine

(

"fraudlabspro\_id: "

&amp;

result

(

"fraudlabspro\_id"

)

.

ToString

)

Console

.

WriteLine

(

"fraudlabspro\_score: "

&amp;

result

(

"fraudlabspro\_score"

)

.

ToString

)

Console

.

WriteLine

(

"fraudlabspro\_status: "

&amp;

result

(

"fraudlabspro\_status"

)

.

ToString

)

Console

.

WriteLine

(

"fraudlabspro\_rules: "

&amp;

result

(

"fraudlabspro\_rules"

)

.

ToString

)

End

Sub

End

Module

using

FraudLabsPro

.

FraudLabsPro

;

using

System

.

Collections

;

using

Newtonsoft

.

Json

;

using

Newtonsoft

.

Json

.

Linq

;

// Configure FraudLabs Pro API KEY

FraudLabsProConfig

.

APIKey

=

"YOUR\_API\_KEY"

;

OrderPara

GetOrderPara

=

new

(

)

\{

ID

=

"20240112-1EILFK"

,

IDType

=

Order

.

IDTypes

.

FLP\_ID

\}

;

//Get Order Result API

Order

OrderResult

=

new

(

)

;

JObject

result

=

OrderResult

.

GetOrderResult

(

GetOrderPara

)

;

// Get order result from FraudLabs Pro

JToken

ipgeolocation

;

if

(

result

.

TryGetValue

(

"ip\_geolocation"

,

out

ipgeolocation

)

)

\{

var

ipgeolocationfields

=

new

ArrayList

(

)

\{

"ip"

,

"continent"

,

"country\_code"

,

"country\_name"

,

"region"

,

"city"

,

"latitude"

,

"longitude"

,

"zip\_code"

,

"timezone"

,

"isp\_name"

,

"domain"

,

"netspeed"

,

"mobile\_mnc"

,

"mobile\_mcc"

,

"mobile\_brand"

,

"elevation"

,

"usage\_type"

,

"is\_proxy"

,

"is\_in\_blacklist"

\}

;

foreach

(

var

field

in

ipgeolocationfields

)

Console

.

WriteLine

(

"ip\_geolocation."

\+

field

\+

": "

\+

ipgeolocation

\[

field

\]

)

;

\}

JToken

billingaddress

;

if

(

result

.

TryGetValue

(

"billing\_address"

,

out

billingaddress

)

)

\{

var

billingaddressfields

=

new

ArrayList

(

)

\{

"ip\_distance\_in\_km"

,

"ip\_distance\_in\_mile"

,

"is\_ip\_country\_match"

\}

;

foreach

(

var

field

in

billingaddressfields

)

Console

.

WriteLine

(

"billing\_address."

\+

field

\+

": "

\+

billingaddress

\[

field

\]

)

;

\}

JToken

shippingaddress

;

if

(

result

.

TryGetValue

(

"shipping\_address"

,

out

shippingaddress

)

)

\{

var

shippingaddressfields

=

new

ArrayList

(

)

\{

"is\_address\_ship\_forward"

,

"is\_bill\_country\_match"

,

"is\_bill\_state\_match"

,

"is\_bill\_city\_match"

,

"is\_bill\_postcode\_match"

,

"is\_export\_controlled\_country"

,

"is\_in\_blacklist"

\}

;

foreach

(

var

field

in

shippingaddressfields

)

Console

.

WriteLine

(

"shipping\_address."

\+

field

\+

": "

\+

shippingaddress

\[

field

\]

)

;

\}

JToken

emailaddress

;

if

(

result

.

TryGetValue

(

"email\_address"

,

out

emailaddress

)

)

\{

var

emailaddressfields

=

new

ArrayList

(

)

\{

"is\_free"

,

"is\_disposable"

,

"is\_domain\_exist"

,

"is\_new\_domain\_name"

,

"is\_in\_blacklist"

\}

;

foreach

(

var

field

in

emailaddressfields

)

Console

.

WriteLine

(

"email\_address."

\+

field

\+

": "

\+

emailaddress

\[

field

\]

)

;

\}

JToken

phonenumber

;

if

(

result

.

TryGetValue

(

"phone\_number"

,

out

phonenumber

)

)

\{

var

phonenumberfields

=

new

ArrayList

(

)

\{

"is\_disposable"

,

"is\_in\_blacklist"

\}

;

foreach

(

var

field

in

phonenumberfields

)

Console

.

WriteLine

(

"phone\_number."

\+

field

\+

": "

\+

phonenumber

\[

field

\]

)

;

\}

JToken

username

;

if

(

result

.

TryGetValue

(

"username"

,

out

username

)

)

\{

var

usernamefields

=

new

ArrayList

(

)

\{

"is\_high\_risk"

,

"is\_in\_blacklist"

\}

;

foreach

(

var

field

in

usernamefields

)

Console

.

WriteLine

(

"username."

\+

field

.

ToString

(

)

\+

": "

\+

username

\[

field

\]

)

;

\}

JToken

creditcard

;

if

(

result

.

TryGetValue

(

"credit\_card"

,

out

creditcard

)

)

\{

var

creditcardfields

=

new

ArrayList

(

)

\{

"card\_brand"

,

"card\_type"

,

"card\_issuing\_bank"

,

"card\_issuing\_country"

,

"is\_prepaid"

,

"is\_bin\_exist"

,

"is\_bin\_country\_match"

,

"is\_in\_blacklist"

\}

;

foreach

(

var

field

in

creditcardfields

)

Console

.

WriteLine

(

"credit\_card."

\+

field

\+

": "

\+

creditcard

\[

field

\]

)

;

\}

JToken

device

;

if

(

result

.

TryGetValue

(

"device"

,

out

device

)

)

\{

var

devicefields

=

new

ArrayList

(

)

\{

"is\_malware\_exploit"

,

"is\_in\_blacklist"

\}

;

foreach

(

var

field

in

devicefields

)

Console

.

WriteLine

(

"device."

\+

field

\+

": "

\+

device

\[

field

\]

)

;

\}

Console

.

WriteLine

(

"user\_order\_id: "

\+

result

\[

"user\_order\_id"

\]

)

;

Console

.

WriteLine

(

"fraudlabspro\_id: "

\+

result

\[

"fraudlabspro\_id"

\]

)

;

Console

.

WriteLine

(

"fraudlabspro\_score: "

\+

result

\[

"fraudlabspro\_score"

\]

)

;

Console

.

WriteLine

(

"fraudlabspro\_status: "

\+

result

\[

"fraudlabspro\_status"

\]

)

;

Console

.

WriteLine

(

"fraudlabspro\_rules: "

\+

result

\[

"fraudlabspro\_rules"

\]

)

;

\# Import SDK to use the function

from

libs

.

order

import

Order

\# Configure your API key

api\_key

=

'YOUR\_API\_KEY'

get\_transaction\_variables

=

\{

'key'

:

api\_key

,

'id'

:

'20180705-WISXW2'

,

'id\_type'

:

'FraudLabsPro::FLP\_ID'

\}

print

(

Order

.

get\_transaction

(

get\_transaction\_variables

)

)

$

curl

https://api.fraudlabspro.com/v2/order/result?key

=

Enter\_License\_Key

&amp;

format

=

json

&amp;

id

=

20130131

-O263CR

require

'fraudlabspro\_ruby'

FraudlabsproRuby

::

Configuration

.

api\_key

=

'YOUR\_API\_KEY'

result

=

FraudlabsproRuby

::

Api

::

Order

.

getTransaction

(

transaction\_id

:

'20180713-ZNVPV4'

,

id\_type

:

FraudlabsproRuby

::

Api

::

Order

::

FLP\_ID

)

const

\{

FraudValidation

\}

=

require

(

"fraudlabspro-nodejs"

)

;

var

flp

=

new

FraudValidation

(

'YOUR API KEY'

)

;

params

=

\{

id

:

'20170906MXFHSTRF'

,

id\_type

:

'fraudlabspro\_id'

,

\}

;

flp

.

getTransaction

(

params

,

(

err

,

data

)

=&gt;

\{

if

(

\!

err

)

\{

console

.

log

(

data

)

;

\}

\}

)

;

use

fraudlabspro

::

validation

::

FraudValidation

;

fn

main

(

)

-&gt;

Result

&lt;

(

)

,

Box

&lt;

dyn

std

::

error

::

Error

&gt;&gt;

\{

let

fv

=

FraudValidation

::

new

(

"YOUR\_API\_KEY"

)

;

let

result

=

fv

.

get\_transaction

(

Some

(

"20250818-MCWIWR"

.

to\_string

(

)

)

)

?

;

println\!

(

"Transaction details:\\n\{\}"

,

result

)

;

Ok

(

(

)

)

\}

package

main

import

(

"github.com/fraudlabspro/fraudlabspro-go/fraudlabspro"

"fmt"

)

func

main

(

)

\{

apikey

:=

"YOUR\_API\_KEY"

config

,

err

:=

fraudlabspro

.

OpenConfiguration

(

apikey

)

if

err

\!=

nil

\{

fmt

.

Print

(

err

)

return

\}

flp

,

err

:=

fraudlabspro

.

OpenOrder

(

config

)

if

err

\!=

nil

\{

fmt

.

Print

(

err

)

return

\}

res

,

err

:=

flp

.

GetTransaction

(

"20250827-ZZZZZZ"

)

// replace with your actual FraudLabs Pro transaction ID

if

err

\!=

nil

\{

fmt

.

Print

(

err

)

return

\}

fmt

.

Printf

(

"%\+v\\n"

,

res

)

\}

object

TestGetTransaction

\{

@JvmStatic

fun

main

(

args

:

Array

&lt;

String

&gt;

)

\{

// Configures FraudLabs Pro API key

FraudLabsPro

.

APIKEY

=

"YOUR\_API\_KEY"

// Get Order Result API

val

orderResults

=

Order

(

)

val

data

=

java

.

util

.

Hashtable

&lt;

String

?

,

String

?

&gt;

(

)

data

\[

"id"

\]

=

"20180709-NHAEUK"

// FraudLabs Pro transaction ID to retrieve

val

result

=

orderResults

.

getTransaction

(

data

)

// Obtains screening results from FraudLabs Pro

print

(

result

)

\}

\}

import

com

.

fraudlabspro

.

\_

import

java

.

util

object

TestGetTransaction

\{

def

main

(

args

:

Array

\[

String

\]

)

:

Unit

=

\{

// Configures FraudLabs Pro API key

FraudLabsPro

.

APIKEY

=

"YOUR\_API\_KEY"

// Get Order Result API

val

orderResults

=

new

Order

// Sets order ID to return all available information regarding the order

val

data

=

new

util

.

Hashtable

\[

String

,

String

\]

data

.

put

(

"id"

,

"20180709-NHAEUK"

)

val

result

=

orderResults

.

getTransaction

(

data

)

// Obtains order results from FraudLabs Pro

println

(

result

)

\}

\}

[Fraud Check](https://www.fraudlabspro.com/developer/api/screen-order)

[continent](https://www.fraudlabspro.com/developer/reference/countries-by-continents)

[Country Codes](https://www.fraudlabspro.com/developer/reference/country-codes)

[Medium Plan](https://www.fraudlabspro.com/pricing)