- Plan tiers. The Micro plan includes order screening and supports sandbox SMS verification. FraudLabs Pro documents
orders.getResultas paid (a free Micro key could read results in our December 2026 test) andusers.*as Medium or higher. The plugin handles error code10061as an unsupported plan. - Order items. Pass
itemsonorders.screenas an array of item objects (sku,quantity,price, plus optionaltype,name,purchase_type). The plugin serializes the array to the JSON string format that FraudLabs Pro v2 requires. Free Micro plans support up to 3 items per order. - SMS verification.
verification.sendsends a real SMS message, deducts SMS credits, and cannot be undone. Include the<otp>placeholder inmesg(up to 140 characters, no URLs). Use phone number+11with OTP123456to test in sandbox mode without spending credits. - Retries and replay safety. HTTP 429 responses retry up to three times, honoring
Retry-Afterwhen present and falling back to exponential backoff. HTTP 5xx, timeout, and network errors replay only on read endpoints (orders.getResult,users.getResult,verification.getResult) and never replay POST writes or SMS sends. - Inbound webhooks. FraudLabs Pro posts order status changes without a signature. For a self-hosted receiver, configure a random secret with
webhookSecretorkeys.set_webhook_signatureand add it to the merchant callback URL asfraudlabspro_token. Keep the URL private and redact the query string from access logs. Parse the provider’s form-encoded POST body before passing it and the URL query toprocessWebhook. For multiple tenants, store distinct callback secrets and includetenantIdin each callback URL.
- 9 typed API operations
- 1 incoming webhook event types
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the FraudLabs Pro API key before the first call: More: API Key
pnpm corsair setup --plugin=fraudlabspro --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
Retrieve an order screening resultWebhooks
Fires when FraudLabs Pro changes an order decision to approve or reject.What’s next
API reference
Every
fraudlabspro.api.* operation with input and output types.Webhooks
Event paths, payloads, and
webhookHooks examples.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.