> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# FraudLabs Pro API reference

> API reference for FraudLabs Pro: every `fraudlabspro.api.*` operation with input and output types.

> [!NOTE]
>
> **New to Corsair?** See [API access](https://docs.corsair.dev/concepts/api.md), [authentication](https://docs.corsair.dev/concepts/auth.md), and [error handling](https://docs.corsair.dev/concepts/error-handling).

## Orders

### feedback

`orders.feedback`

Update an order transaction review status to APPROVE, REJECT or REJECT\_BLACKLIST

**Risk:** `destructive`

```ts theme={null}
await corsair.fraudlabspro.api.orders.feedback({ id: '20261203-BCBQD4', action: 'APPROVE', note: 'Verified returning customer' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | FraudLabs Pro transaction ID to update. |
| `action` | `APPROVE \| REJECT \| REJECT_BLACKLIST` | Yes | Review decision for the transaction. |
| `note` | `string` | No | Optional note for the feedback request. |

Valid actions are APPROVE, REJECT and REJECT\_BLACKLIST; the API refuses IGNORE with error code 10014. Approving an already approved transaction returns error code 10012.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `fraudlabspro_id` | `string \| null` | No | — |

***

### getResult

`orders.getResult`

Retrieve an existing order screening transaction result by FraudLabs Pro transaction ID or merchant order ID

**Risk:** `read`

```ts theme={null}
await corsair.fraudlabspro.api.orders.getResult({ id: '20261203-BCBQD4' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | FraudLabs Pro transaction ID or merchant order ID. |

FraudLabs Pro lists this as paid, but a free Micro key read results in our December 2026 test. Accepts either a FraudLabs Pro transaction ID or the merchant user\_order\_id submitted during screening.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `ip_geolocation` | `object \| null` | No | — |
| `billing_address` | `object \| null` | No | — |
| `shipping_address` | `object \| null` | No | — |
| `email_address` | `object \| null` | No | — |
| `phone_number` | `object \| null` | No | — |
| `username` | `object \| null` | No | — |
| `credit_card` | `object \| null` | No | — |
| `device` | `object \| null` | No | — |
| `user_order_id` | `string \| null` | No | — |
| `fraudlabspro_id` | `string \| null` | No | — |
| `fraudlabspro_score` | `number \| null` | No | — |
| `fraudlabspro_status` | `string \| null` | No | — |
| `fraudlabspro_rules` | `string[] \| null` | No | — |
| `api_version` | `string \| null` | No | — |
| `remaining_credits` | `number \| null` | No | — |

> [accordion] ip\_geolocation full type
>
> ```ts theme={null}
> {
>   ip?: string | null,
>   continent?: string | null,
>   country_code?: string | null,
>   country_name?: string | null,
>   region?: string | null,
>   city?: string | null,
>   latitude?: number | string | null,
>   longitude?: number | string | null,
>   zip_code?: string | null,
>   timezone?: string | null,
>   isp_name?: string | null,
>   domain?: string | null,
>   netspeed?: string | null,
>   mobile_mnc?: string | null,
>   mobile_mcc?: string | null,
>   mobile_brand?: string | null,
>   elevation?: number | string | null,
>   usage_type?: string | string[] | null,
>   is_proxy?: boolean | null,
>   proxy_type?: string | null,
>   is_in_blacklist?: boolean | null
> } | null
> ```

> [accordion] billing\_address full type
>
> ```ts theme={null}
> {
>   ip_distance_in_km?: number | string | null,
>   ip_distance_in_mile?: number | string | null,
>   distance_in_km?: number | string | null,
>   distance_in_mile?: number | string | null,
>   is_ip_country_match?: boolean | null
> } | null
> ```

> [accordion] shipping\_address full type
>
> ```ts theme={null}
> {
>   is_address_ship_forward?: boolean | null,
>   is_bill_city_match?: boolean | null,
>   is_bill_state_match?: boolean | null,
>   is_bill_country_match?: boolean | null,
>   is_bill_postcode_match?: boolean | null,
>   is_export_controlled_country?: boolean | null,
>   is_in_blacklist?: boolean | null
> } | null
> ```

> [accordion] email\_address full type
>
> ```ts theme={null}
> {
>   is_free?: boolean | null,
>   is_disposable?: boolean | null,
>   is_domain_exist?: boolean | null,
>   is_domain_exists?: boolean | null,
>   is_new_domain_name?: boolean | null,
>   is_in_blacklist?: boolean | null
> } | null
> ```

> [accordion] phone\_number full type
>
> ```ts theme={null}
> {
>   is_disposable?: boolean | null,
>   is_in_blacklist?: boolean | null
> } | null
> ```

> [accordion] username full type
>
> ```ts theme={null}
> {
>   is_high_risk?: boolean | null,
>   is_in_blacklist?: boolean | null
> } | null
> ```

> [accordion] credit\_card full type
>
> ```ts theme={null}
> {
>   card_brand?: string | null,
>   card_type?: string | null,
>   card_subtype?: string | null,
>   card_issuing_bank?: string | null,
>   card_issuing_country?: string | null,
>   is_prepaid?: boolean | null,
>   is_bin_exist?: boolean | null,
>   is_bin_country_match?: boolean | null,
>   is_in_blacklist?: boolean | null
> } | null
> ```

> [accordion] device full type
>
> ```ts theme={null}
> {
>   browser?: string | null,
>   device_type?: string | null,
>   operating_system?: string | null,
>   is_malware_exploit?: boolean | null,
>   is_in_blacklist?: boolean | null
> } | null
> ```

***

### screen

`orders.screen`

Screen an order transaction for payment fraud and create a scored FraudLabs Pro transaction record

**Risk:** `write`

```ts theme={null}
await corsair.fraudlabspro.api.orders.screen({ ip: '192.0.2.10', first_name: 'Hector', last_name: 'Henderson', email: 'buyer@example.com', user_order_id: 'ORD-1001', amount: 79.89, quantity: 1, currency: 'USD', payment_mode: 'creditcard', ship_method: 'standard_delivery', items: [{ sku: 'SKU-1001', quantity: 1, price: 79.89, type: 'physical', name: 'Wireless Headphones' }] });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `ip` | `string` | Yes | IPv4 or IPv6 address of the online transaction. |
| `last_name` | `string` | No | — |
| `first_name` | `string` | No | — |
| `bill_to` | `string` | No | Billing recipient or company name. |
| `bill_addr` | `string` | No | — |
| `bill_city` | `string` | No | — |
| `bill_state` | `string` | No | — |
| `bill_country` | `string` | No | ISO-3166 alpha-2 billing country code, such as US. |
| `bill_zip_code` | `string` | No | — |
| `ship_last_name` | `string` | No | — |
| `ship_first_name` | `string` | No | — |
| `ship_addr` | `string` | No | — |
| `ship_city` | `string` | No | — |
| `ship_state` | `string` | No | — |
| `ship_country` | `string` | No | ISO-3166 alpha-2 shipping country code, such as US. |
| `ship_zip_code` | `string` | No | — |
| `ship_method` | `standard_delivery \| local_pickup` | No | Order shipping method. |
| `user_phone` | `string` | No | User phone number in international format, such as +11234567890. |
| `email` | `string` | No | User email address. |
| `email_hash` | `string` | No | SHA2 hash of the user email address when email is omitted. |
| `email_domain` | `string` | No | Domain of the user email address when email is omitted. |
| `username` | `string` | No | — |
| `bin_no` | `string` | No | First 6 or 8 digits of the credit card number. |
| `card_hash` | `string` | No | SHA2 hash of the credit card number. |
| `avs_result` | `string` | No | Single-character AVS result from the card processor. |
| `cvv_result` | `string` | No | Single-character CVV2 result from the card processor (not the card CVV code). |
| `user_order_id` | `string` | No | Merchant order identifier (maximum 15 characters). |
| `amount` | `number` | No | Transaction amount (maximum 10,000,000). |
| `quantity` | `number` | No | Total item quantity (maximum 100,000). |
| `currency` | `string` | No | ISO-4217 3-letter currency code, such as USD. |
| `department` | `string` | No | — |
| `items` | `object[]` | No | Items purchased in the order. Free Micro plan supports up to 3 items. |
| `payment_gateway` | `string` | No | — |
| `payment_mode` | `creditcard \| paypal \| cod \| bankdeposit \| giftcard \| crypto \| wired \| others` | No | Payment method used for the transaction. |
| `coupon_code` | `string` | No | — |
| `flp_checksum` | `string` | No | Device validation checksum from FraudLabs Pro Agent JavaScript. |

Pass items as a structured array; the plugin serializes it to the JSON string FraudLabs Pro v2 expects. Valid payment\_mode values are creditcard, paypal, cod, bankdeposit, giftcard, crypto, wired, and others. Valid ship\_method values are standard\_delivery and local\_pickup.

> [accordion] items full type
>
> ```ts theme={null}
> {
>   sku: string,
>   quantity: number,
>   price: number,
>   type?: string,
>   name?: string,
>   purchase_type?: string
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `ip_geolocation` | `object \| null` | No | — |
| `billing_address` | `object \| null` | No | — |
| `shipping_address` | `object \| null` | No | — |
| `email_address` | `object \| null` | No | — |
| `phone_number` | `object \| null` | No | — |
| `username` | `object \| null` | No | — |
| `credit_card` | `object \| null` | No | — |
| `device` | `object \| null` | No | — |
| `user_order_id` | `string \| null` | No | — |
| `fraudlabspro_id` | `string \| null` | No | — |
| `fraudlabspro_score` | `number \| null` | No | — |
| `fraudlabspro_status` | `string \| null` | No | — |
| `fraudlabspro_rules` | `string[] \| null` | No | — |
| `api_version` | `string \| null` | No | — |
| `remaining_credits` | `number \| null` | No | — |

> [accordion] ip\_geolocation full type
>
> ```ts theme={null}
> {
>   ip?: string | null,
>   continent?: string | null,
>   country_code?: string | null,
>   country_name?: string | null,
>   region?: string | null,
>   city?: string | null,
>   latitude?: number | string | null,
>   longitude?: number | string | null,
>   zip_code?: string | null,
>   timezone?: string | null,
>   isp_name?: string | null,
>   domain?: string | null,
>   netspeed?: string | null,
>   mobile_mnc?: string | null,
>   mobile_mcc?: string | null,
>   mobile_brand?: string | null,
>   elevation?: number | string | null,
>   usage_type?: string | string[] | null,
>   is_proxy?: boolean | null,
>   proxy_type?: string | null,
>   is_in_blacklist?: boolean | null
> } | null
> ```

> [accordion] billing\_address full type
>
> ```ts theme={null}
> {
>   ip_distance_in_km?: number | string | null,
>   ip_distance_in_mile?: number | string | null,
>   distance_in_km?: number | string | null,
>   distance_in_mile?: number | string | null,
>   is_ip_country_match?: boolean | null
> } | null
> ```

> [accordion] shipping\_address full type
>
> ```ts theme={null}
> {
>   is_address_ship_forward?: boolean | null,
>   is_bill_city_match?: boolean | null,
>   is_bill_state_match?: boolean | null,
>   is_bill_country_match?: boolean | null,
>   is_bill_postcode_match?: boolean | null,
>   is_export_controlled_country?: boolean | null,
>   is_in_blacklist?: boolean | null
> } | null
> ```

> [accordion] email\_address full type
>
> ```ts theme={null}
> {
>   is_free?: boolean | null,
>   is_disposable?: boolean | null,
>   is_domain_exist?: boolean | null,
>   is_domain_exists?: boolean | null,
>   is_new_domain_name?: boolean | null,
>   is_in_blacklist?: boolean | null
> } | null
> ```

> [accordion] phone\_number full type
>
> ```ts theme={null}
> {
>   is_disposable?: boolean | null,
>   is_in_blacklist?: boolean | null
> } | null
> ```

> [accordion] username full type
>
> ```ts theme={null}
> {
>   is_high_risk?: boolean | null,
>   is_in_blacklist?: boolean | null
> } | null
> ```

> [accordion] credit\_card full type
>
> ```ts theme={null}
> {
>   card_brand?: string | null,
>   card_type?: string | null,
>   card_subtype?: string | null,
>   card_issuing_bank?: string | null,
>   card_issuing_country?: string | null,
>   is_prepaid?: boolean | null,
>   is_bin_exist?: boolean | null,
>   is_bin_country_match?: boolean | null,
>   is_in_blacklist?: boolean | null
> } | null
> ```

> [accordion] device full type
>
> ```ts theme={null}
> {
>   browser?: string | null,
>   device_type?: string | null,
>   operating_system?: string | null,
>   is_malware_exploit?: boolean | null,
>   is_in_blacklist?: boolean | null
> } | null
> ```

***

## Payments

### feedback

`payments.feedback`

Report the final payment gateway status and message for an order to improve fraud scoring

**Risk:** `write`

```ts theme={null}
await corsair.fraudlabspro.api.payments.feedback({ email: 'buyer@example.com', status: 'declined', message: 'Call Issuer. Pick Up Card.', fraudlabspro_id: '20261203-BCBQD4' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `email` | `string` | Yes | Email address associated with the payment order. |
| `status` | `string` | Yes | Final payment status from the payment gateway, such as declined or approved. |
| `message` | `string` | Yes | Message returned by the payment gateway. |
| `fraudlabspro_id` | `string` | No | FraudLabs Pro transaction ID generated by orders.screen. |

Reports payment status and the payment gateway message. If the provider returns error code 10061, check plan access.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `result` | `string \| null` | No | — |

***

## Users

### feedback

`users.feedback`

Update a user screening transaction status to APPROVE, REJECT, or REJECT\_BLACKLIST with a reason (Medium plan and above)

**Risk:** `destructive`

```ts theme={null}
await corsair.fraudlabspro.api.users.feedback({ id: '20261203-DEF3CR', action: 'APPROVE', reason: 'Verified account owner' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | Unique user screening transaction ID returned by users.screen. |
| `action` | `APPROVE \| REJECT \| REJECT_BLACKLIST` | Yes | Review decision for the user transaction. |
| `reason` | `string` | Yes | Reason for the feedback decision. |

Available on the Medium plan and above. Valid actions are APPROVE, REJECT, and REJECT\_BLACKLIST.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `user_transaction_id` | `string \| null` | No | — |

***

### getResult

`users.getResult`

Retrieve an existing user screening transaction result by user transaction ID (Medium plan and above)

**Risk:** `read`

```ts theme={null}
await corsair.fraudlabspro.api.users.getResult({ id: '20261203-DEF3CR' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | Unique user screening transaction ID returned by users.screen. |

Available on the Medium plan and above.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `ip_geolocation` | `object \| null` | No | — |
| `email_address` | `object \| null` | No | — |
| `phone_number` | `object \| null` | No | — |
| `device` | `object \| null` | No | — |
| `user_score` | `number \| null` | No | — |
| `user_transaction_id` | `string \| null` | No | — |
| `user_transaction_status` | `string \| null` | No | — |
| `user_transaction_rules` | `string[] \| null` | No | — |

> [accordion] ip\_geolocation full type
>
> ```ts theme={null}
> {
>   ip?: string | null,
>   continent?: string | null,
>   country_code?: string | null,
>   country_name?: string | null,
>   region?: string | null,
>   city?: string | null,
>   latitude?: number | string | null,
>   longitude?: number | string | null,
>   zip_code?: string | null,
>   timezone?: string | null,
>   isp_name?: string | null,
>   domain?: string | null,
>   netspeed?: string | null,
>   mobile_mnc?: string | null,
>   mobile_mcc?: string | null,
>   mobile_brand?: string | null,
>   elevation?: number | string | null,
>   usage_type?: string | string[] | null,
>   is_proxy?: boolean | null,
>   proxy_type?: string | null,
>   is_in_blacklist?: boolean | null
> } | null
> ```

> [accordion] email\_address full type
>
> ```ts theme={null}
> {
>   is_free?: boolean | null,
>   is_disposable?: boolean | null,
>   is_domain_exist?: boolean | null,
>   is_domain_exists?: boolean | null,
>   is_new_domain_name?: boolean | null,
>   is_in_blacklist?: boolean | null
> } | null
> ```

> [accordion] phone\_number full type
>
> ```ts theme={null}
> {
>   is_disposable?: boolean | null,
>   is_in_blacklist?: boolean | null
> } | null
> ```

> [accordion] device full type
>
> ```ts theme={null}
> {
>   browser?: string | null,
>   device_type?: string | null,
>   operating_system?: string | null,
>   is_malware_exploit?: boolean | null,
>   is_in_blacklist?: boolean | null
> } | null
> ```

***

### screen

`users.screen`

Screen a user account event for account takeover fraud and create a scored user transaction record (Medium plan and above)

**Risk:** `write`

```ts theme={null}
await corsair.fraudlabspro.api.users.screen({ email: 'buyer@example.com', ip: '192.0.2.10', first_name: 'Hector', last_name: 'Henderson', phone: '+12025550123' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `email` | `string` | Yes | User email address. |
| `ip` | `string` | Yes | IPv4 or IPv6 address of the user. |
| `flp_checksum` | `string` | No | Device validation checksum from FraudLabs Pro Agent JavaScript. |
| `last_name` | `string` | No | — |
| `first_name` | `string` | No | — |
| `phone` | `string` | No | User phone number in international format, such as +11234567890. |

Available on the Medium plan and above. Unsupported plans return HTTP 401 with error code 10061.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `user_score` | `number \| null` | No | — |
| `user_transaction_id` | `string \| null` | No | — |
| `user_transaction_status` | `string \| null` | No | — |
| `reason` | `string[] \| null` | No | — |

***

## Verification

### getResult

`verification.getResult`

Verify whether a submitted OTP matches an active SMS verification transaction

**Risk:** `read`

```ts theme={null}
await corsair.fraudlabspro.api.verification.getResult({ tran_id: 'AAAAAAAAAA0000000000', otp: '123456' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `tran_id` | `string` | Yes | 20-character transaction ID returned by verification.send. |
| `otp` | `string` | Yes | OTP code entered by the recipient. |

Returns result Y when the OTP matches an active transaction and N otherwise. In sandbox mode, OTP 123456 validates against the sandbox transaction ID.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `result` | `string \| null` | No | — |

***

### send

`verification.send`

Send an SMS one-time passcode verification message to a recipient phone number and consume SMS credits

**Risk:** `destructive` · **Irreversible**

```ts theme={null}
await corsair.fraudlabspro.api.verification.send({ tel: '+11', mesg: 'Your verification code is <otp>.', country_code: 'US', otp_timeout: 3600 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `tel` | `string` | Yes | Recipient mobile phone number in E.164 format, such as +12015550123. Use +11 for sandbox testing. |
| `mesg` | `string` | Yes | SMS message template containing the \<otp> placeholder (max 140 characters, no URLs). |
| `country_code` | `string` | No | Optional ISO-3166 alpha-2 country code for phone validation. |
| `otp_timeout` | `number` | No | OTP expiration in seconds (15 to 86400). Defaults to 3600. |

Sends a real SMS and consumes SMS credits. Use +11 for sandbox testing without spending credits. mesg must include \<otp>, stay within 140 characters, and omit URLs.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `tran_id` | `string \| null` | No | — |
| `credits_remaining` | `string \| number \| null` | No | — |

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.