Skip to main content
POST
/
transactions
/
score
Score transaction
curl --request POST \
  --url https://api.txcloud.io/v1/transactions/score \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 123,
  "currency": "<string>",
  "type": "p2p_transfer",
  "sender": {
    "user_id": "<string>",
    "account_id": "<string>",
    "device_id": "<string>",
    "ip_address": "<string>"
  },
  "recipient": {
    "type": "<string>",
    "value": "<string>",
    "name": "<string>"
  },
  "transaction_id": "<string>",
  "context": {},
  "metadata": {}
}
'
{
  "id": "<string>",
  "object": "<string>",
  "processing_time_ms": 123,
  "decision": "approve",
  "risk_score": 123,
  "risk_level": "<string>",
  "signals": {
    "positive": [
      "<string>"
    ],
    "negative": [
      "<string>"
    ]
  },
  "checks": {},
  "rules_triggered": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
amount
number
required
currency
string
required
type
enum<string>
required
Available options:
p2p_transfer,
bill_payment,
merchant_payment,
cash_withdrawal,
bank_transfer,
international_transfer
sender
object
required
recipient
object
required
transaction_id
string
context
object
metadata
object

Response

200 - application/json

Score result

id
string
object
string
processing_time_ms
integer
decision
enum<string>
Available options:
approve,
review,
challenge,
decline
risk_score
integer
risk_level
string
signals
object
checks
object
rules_triggered
object[]