Skip to content

Add a risk address entry

POST
/v1/risk/addresses
curl --request POST \
--url https://pay.example.com/v1/risk/addresses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: example' \
--data '{ "address": "0x098B716B8Aaf21512996dC57EB0615e2383E2f96", "level": "block", "category": "hack", "reason": "Reported by the fraud team" }'

Adds an entry to the merchant’s list, or to the named list list (created on first use), and applies at once to quotes, sponsored submissions, bookings and subscription charges (when payer screening is on). An entry for the same address and chain scope in the same list is replaced. Audited as api:<key name>. A test key writes only entries whose chain_id is a testnet (403 testnet_only). Idempotent (see the introduction). Requires risk:write.

Idempotency-Key
required
string
>= 1 characters <= 255 characters

Any unique string per logical request (a UUID); see the introduction.

Media typeapplication/json
object
address
required

Any case; not the zero address.

string
/^0[xX][0-9a-fA-F]{40}$/
level

Any case.

string
default: block
Allowed values: block review allow
category

sanctions, scam, hack, mixer, false_positive or other; other names are mapped to the closest (fraud → scam, Tornado mixer → mixer, …) or other.

string
chain_id

A chain configured in the console; absent: all chains (a test key must name a testnet).

integer
reason
string
<= 200 characters
expires_at

RFC 3339 or YYYY-MM-DD, in the future.

string
list

A named list (list:<name>, created on first use) instead of the merchant’s list (manual or absent); not ofac, not a URL feed.

string
/^[a-z0-9][a-z0-9_-]{0,39}$/
Example
{
"address": "0x098B716B8Aaf21512996dC57EB0615e2383E2f96",
"level": "block",
"category": "hack",
"reason": "Reported by the fraud team"
}

The entry (or the replayed first answer)

Media typeapplication/json
object
id
required
string format: uuid
address
required
Any of:

In the entry’s chain family’s form (EVM: EIP-55 checksummed; an all-chain entry by its length: 20 bytes EIP-55, 32 bytes Base58).

string
/^0x[0-9a-fA-F]{40}$/
chain_id
required

The chain it applies to; null for all chains.

integer | null
source
required

manual (the merchant’s list), ofac, feed:<name> (a URL feed), list:<name> (a named list).

string
category
required
string | null
Allowed values: sanctions scam hack mixer false_positive other
level
required

block refuses the quote; review lets the payment through and flags the order; allow overrides every other source.

string
Allowed values: block review allow
reason
required

Internal note (at most 200 characters); never shown to payers.

string | null
expires_at
required
string | null format: date-time
created_at
required
string format: date-time
updated_at
required
string format: date-time
Example
{
"source": "manual",
"category": "sanctions",
"level": "block"
}

invalid_request with params.field: address (not an address of any family, or the zero address), level, chain_id (not a chain configured here), reason (over 200 characters), expires_at (not a date, or in the past), list (not manual or a list name). Without params: a body that is not JSON, has an unknown field or a wrong type; missing Idempotency-Key.

Media typeapplication/json
object
error
required
object
code
required
string
message
required

English, for logs; may change.

string
params

Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.

object
key
additional properties
any
error
required
object
code
Allowed values: invalid_request
Example
{
"error": {
"code": "invalid_request"
}
}

unauthorized: no Authorization: Bearer header, or an unknown or revoked key.

Media typeapplication/json
object
error
required
object
code
required
string
message
required

English, for logs; may change.

string
params

Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.

object
key
additional properties
any
error
required
object
code
Allowed values: unauthorized
Example
{
"error": {
"code": "unauthorized"
}
}

insufficient_scope; testnet_only: a test key writing an entry not scoped to a testnet chain (params: chain_id, testnets).

Media typeapplication/json
object
error
required
object
code
required
string
message
required

English, for logs; may change.

string
params

Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.

object
key
additional properties
any
error
required
object
code
Allowed values: insufficient_scope testnet_only
Example
{
"error": {
"code": "insufficient_scope"
}
}

list_is_feed: list names a URL feed, whose entries come from its URL (params.list). request_in_progress.

Media typeapplication/json
object
error
required
object
code
required
string
message
required

English, for logs; may change.

string
params

Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.

object
key
additional properties
any
error
required
object
code
Allowed values: list_is_feed request_in_progress
Example
{
"error": {
"code": "list_is_feed"
}
}

payload_too_large: the body is over 64 KiB (the bulk import: 4 MiB).

Media typeapplication/json
object
error
required
object
code
required
string
message
required

English, for logs; may change.

string
params

Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.

object
key
additional properties
any
error
required
object
code
Allowed values: payload_too_large
Example
{
"error": {
"code": "payload_too_large"
}
}

idempotency_key_reused: the Idempotency-Key was used with another request body.

Media typeapplication/json
object
error
required
object
code
required
string
message
required

English, for logs; may change.

string
params

Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.

object
key
additional properties
any
error
required
object
code
Allowed values: idempotency_key_reused
Example
{
"error": {
"code": "idempotency_key_reused"
}
}