Skip to main content
POST
Create a new fraud rule

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Corpo

application/json

The body is of type file.

Resposta

Created

action
string
obrigatório
Exemplo:

"DENY"

createdAt
string<date-time>
obrigatório
Exemplo:

"2021-01-01T00:00:00Z"

expression
string
obrigatório
Exemplo:

"transaction.amount > 1000 && account.type == 'checking'"

name
string
obrigatório
Maximum string length: 255
Exemplo:

"Block high-value checking transactions"

ruleId
string<uuid>
obrigatório
Exemplo:

"00000000-0000-0000-0000-000000000000"

scopes
object[] | null
obrigatório
status
string
obrigatório
Exemplo:

"ACTIVE"

updatedAt
string<date-time>
obrigatório
Exemplo:

"2021-01-01T00:00:00Z"

activatedAt
string<date-time>
Exemplo:

"2021-01-01T00:00:00Z"

deactivatedAt
string<date-time>
Exemplo:

"2021-01-01T00:00:00Z"

deletedAt
string<date-time>
Exemplo:

"2021-01-01T00:00:00Z"

description
string
Exemplo:

"Denies transactions over $1000 from checking accounts"