Skip to main content
POST
/
fraud
/
rules
Create fraud rule
curl --request POST \
  --url https://api.txcloud.io/v1/fraud/rules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "condition": "<string>",
  "action": "block",
  "description": "<string>",
  "score_adjustment": 123,
  "enabled": true
}
'

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required
condition
string
required
action
enum<string>
required
Available options:
block,
review,
flag,
allow
description
string
score_adjustment
integer
enabled
boolean
default:true

Response

201

Rule created