Online payment fraud detection service. It helps merchants to minimize chargebacks and therefore maximize the revenue.
This is a community listing. If you own this API, you can request ownership.
npm install omnistream-sdkimport { OmniClient } from "omnistream-sdk";
const omni = new OmniClient({ token: process.env.OMNI_KEY! });
// One key reaches every API on the marketplace.
const data = await omni.call("fraudlabspro/postv1_order_feedback");One install, one key - the same client calls every API on the marketplace.
Feedback the status of an order transaction.
Screen order for payment fraud.
/**
* FraudLabsProFraudDetection - generated by OmniStream from FraudLabs Pro Fraud Detection's OpenAPI spec.
* One typed method per endpoint. A single Omni key reaches the API.
*/
const DEFAULT_BASE = "https://grid.skinvaults.online/v1/proxy/fraudlabspro";
export class FraudLabsProFraudDetectionError extends Error {
status: number;
code?: string;
constructor(status: number, code: string | undefined, message?: string) {
super(message || `FraudLabsProFraudDetection error ${status}`);
this.name = "FraudLabsProFraudDetectionError";
this.status = status;
this.code = code;
}
}
export interface FraudLabsProFraudDetectionOptions {
baseUrl?: string;
fetch?: typeof fetch;
timeoutMs?: number;
}
export class FraudLabsProFraudDetection {
/** @param token Your OmniStream key (one key for every API). */
constructor(private token: string, private opts: FraudLabsProFraudDetectionOptions = {}) {
if (!token) throw new Error("FraudLabsProFraudDetection: token is required");
}
rateLimit: { remainingMinute?: number; remainingDay?: number } | null = null;
private async _request(method: string, path: string, { params, body }: { params?: Record<string, unknown>; body?: unknown } = {}): Promise<any> {
const f = this.opts.fetch ?? globalThis.fetch;
const url = new URL((this.opts.baseUrl ?? DEFAULT_BASE).replace(/\/+$/, "") + path);
if (params) for (const [k, v] of Object.entries(params)) if (v != null) url.searchParams.set(k, String(v));
const headers: Record<string, string> = { "x-omni-key": this.token };
if (body !== undefined) headers["content-type"] = "application/json";
const res = await f(url, { method, headers, body: body !== undefined ? JSON.stringify(body) : undefined });
this.rateLimit = {
remainingMinute: Number(res.headers.get("x-ratelimit-remaining-minute")) || undefined,
remainingDay: Number(res.headers.get("x-ratelimit-remaining-day")) || undefined,
};
const data = await res.json().catch(() => ({}));
if (!res.ok) throw new FraudLabsProFraudDetectionError(res.status, data?.error?.code, data?.error?.message);
return data.data ?? data;
}
/** Feedback the status of an order transaction. */
postv1OrderFeedback(params: { "id": string; "key": string; "action": string; "format"?: string; "notes"?: string }): Promise<any> {
return this._request("POST", "/v1/order/feedback", { params });
}
/** Screen order for payment fraud. */
postv1OrderScreen(params: { "ip": string; "key": string; "format"?: string; "last_name"?: string; "first_name"?: string; "bill_addr"?: string; "bill_city"?: string; "bill_state"?: string; "bill_country"?: string; "bill_zip_code"?: string; "ship_addr"?: string; "ship_city"?: string; "ship_state"?: string; "ship_country"?: string; "ship_zip_code"?: string; "email_domain"?: string; "user_phone"?: string; "email"?: string; "email_hash"?: string; "username_hash"?: string; "password_hash"?: string; "bin_no"?: string; "card_hash"?: string; "avs_result"?: string; "cvv_result"?: string; "user_order_id"?: string; "user_order_memo"?: string; "amount"?: number; "quantity"?: number; "currency"?: string; "department"?: string; "payment_mode"?: string; "flp_checksum"?: string }): Promise<any> {
return this._request("POST", "/v1/order/screen", { params });
}
}
export default FraudLabsProFraudDetection;
No reviews yet. Be the first to rate this API.
No. FraudLabs Pro Fraud Detection is included with your Omni key, so a single OmniStream key is enough to start calling it. There is no separate signup with the provider and no second key to manage.
Online payment fraud detection service. It helps merchants to minimize chargebacks and therefore maximize the revenue. It exposes 2 endpoints over POST, including POST /v1/order/feedback, POST /v1/order/screen.
Install the OmniStream SDK for your language and call FraudLabs Pro Fraud Detection through it. The client is generated from this API's OpenAPI spec, so parameters and responses are fully typed, and the same client also calls every other API in the marketplace.
You can start on the free plan. OmniStream charges for the unified SDK, key storage and proxy rather than for FraudLabs Pro Fraud Detection itself.
QuickChart: An API to generate charts and QR codes using QuickChart services.