Fits into the stack you already run.
Txnworks is a scoring layer, not a payment platform. It sits alongside your existing processor, bank API, or e-commerce stack — adding fraud signals without replacing anything.
Integration categories.
These are integration targets — services we accept transaction context from, or push scoring decisions to. Not customer claims.
Payment Processors
Banking & Card Issuing APIs
Identity Verification
E-commerce Platforms
Data Warehouses
Alerting & Ops Tools
Three lines to your first score.
Official SDKs for Node.js, Python, and Go. Each wraps the REST API with typed responses, automatic retry logic on transient errors, and synchronous score result handling. These are not wrappers around a third-party SDK — they call the Txnworks scoring API directly.
// npm install @txnworks/node const { Txnworks } = require('@txnworks/node'); const client = new Txnworks({ apiKey: 'txnw_sk_...' }); const result = await client.score({ transaction_id: 'txn_abc', amount: 215.00, currency: 'USD' });
# pip install txnworks import txnworks client = txnworks.Client(api_key="txnw_sk_...") result = client.score( transaction_id="txn_abc", amount=215.00, currency="USD" )
// go get github.com/txnworks/go-sdk import txnworks "github.com/txnworks/go-sdk" client := txnworks.NewClient("txnw_sk_...") result, err := client.Score(ctx, &txnworks.ScoreParams{ TransactionID: "txn_abc", Amount: 215.00, Currency: "USD", })
Webhook push for async workflows.
Not every scoring decision needs to be synchronous. For batch processing, pre-auth review queues, or post-capture fraud analysis, Txnworks can push score results to your endpoint via webhook.
{
"event": "score.completed",
"transaction_id": "txn_9b4f2a1d",
"score": 312,
"label": "ALLOW",
"confidence": 0.87,
"latency_ms": 41,
"webhook_signature": "sha256=..."
}
Webhook payloads include a webhook_signature header for verification. Configure endpoint URL, retry behavior, and secret key in your dashboard.