Skip to main content
POST
/
api
/
v1
/
business
/
fraud
/
rules
Create fraud rule
curl --request POST \
  --url http://localhost:3001/api/v1/business/fraud/rules \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "conditions": [
    {
      "field": "<string>",
      "operator": "eq",
      "value": {}
    }
  ],
  "match": "all",
  "action": "ALLOW",
  "description": "<string>",
  "priority": 100,
  "enabled": true,
  "riskScore": 0,
  "metadata": {}
}
'
{
  "success": true,
  "data": {
    "id": "<string>",
    "businessId": "<string>",
    "name": "<string>",
    "priority": 123,
    "enabled": true,
    "conditions": {},
    "action": "ALLOW",
    "riskScore": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "metadata": {}
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.useaxra.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
name
string
required
conditions
object[]
required
match
enum<string>
required
Available options:
all,
any
action
enum<string>
required
Available options:
ALLOW,
REVIEW,
BLOCK
description
string
priority
number
default:100
enabled
boolean
default:true
riskScore
number
default:0
Required range: 0 <= x <= 100
metadata
object

Response

Created

success
boolean
required
Example:

true

data
object
required