Skip to main content
POST
/
api
/
v1
/
dict
/
fraud-markers
Create fraud marker
curl --request POST \
  --url https://spi.sandbox.lerian.net/api/v1/dict/fraud-markers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "keyValue": "<string>",
  "ownerTaxId": "<string>",
  "participantISPB": "<string>",
  "reason": "<string>"
}
'
import requests

url = "https://spi.sandbox.lerian.net/api/v1/dict/fraud-markers"

payload = {
"keyValue": "<string>",
"ownerTaxId": "<string>",
"participantISPB": "<string>",
"reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
keyValue: '<string>',
ownerTaxId: '<string>',
participantISPB: '<string>',
reason: '<string>'
})
};

fetch('https://spi.sandbox.lerian.net/api/v1/dict/fraud-markers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://spi.sandbox.lerian.net/api/v1/dict/fraud-markers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'keyValue' => '<string>',
'ownerTaxId' => '<string>',
'participantISPB' => '<string>',
'reason' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://spi.sandbox.lerian.net/api/v1/dict/fraud-markers"

payload := strings.NewReader("{\n \"keyValue\": \"<string>\",\n \"ownerTaxId\": \"<string>\",\n \"participantISPB\": \"<string>\",\n \"reason\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://spi.sandbox.lerian.net/api/v1/dict/fraud-markers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"keyValue\": \"<string>\",\n \"ownerTaxId\": \"<string>\",\n \"participantISPB\": \"<string>\",\n \"reason\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://spi.sandbox.lerian.net/api/v1/dict/fraud-markers")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"keyValue\": \"<string>\",\n \"ownerTaxId\": \"<string>\",\n \"participantISPB\": \"<string>\",\n \"reason\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "createdAt": "<string>",
  "id": "<string>",
  "keyValueHash": "<string>",
  "participantISPB": "<string>",
  "reason": "<string>",
  "reportStatus": "<string>",
  "status": "<string>",
  "updatedAt": "<string>",
  "ownerTaxIdHash": "<string>"
}
{
"code": "<string>",
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Body

application/json

Fraud marker to persist locally and report to BACEN synchronously-after-persist, tracked by report_status (PENDING/SENT/FAILED) + request_id; PII inputs (key value, owner tax ID) are hashed before storage

keyValue
string
required

Plaintext PIX key value to mark; stored only as an HMAC hash, never in the clear

Example:

"usuario@example.com"

ownerTaxId
string
required

Optional plaintext owner tax ID (CPF/CNPJ); stored only as an HMAC hash, never in the clear

Example:

"12345678901"

participantISPB
string
required

ISPB (8 numeric digits) of the participant raising the fraud marker

Example:

"12345678"

reason
string
required

Free-text justification for the fraud marker

Response

Created

Persisted minimized fraud marker (PII stored only as hashes)

createdAt
string
required

Record creation timestamp (RFC 3339, UTC)

Example:

"2026-06-14T12:00:00Z"

id
string
required

Server-assigned fraud-marker record UUID

Example:

"550e8400-e29b-41d4-a716-446655440002"

keyValueHash
string
required

HMAC hash of the marked PIX key value (hex); the plaintext key is never returned

Example:

"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"

participantISPB
string
required

ISPB (8 numeric digits) of the participant that raised the fraud marker

Example:

"12345678"

reason
string
required

Free-text justification for the fraud marker

reportStatus
string
required

BACEN report delivery state: PENDING, SENT, or FAILED (FAILED is retryable; the local record stands)

Example:

"SENT"

status
string
required

Local fraud-marker state: ACTIVE (counts toward fraud stats) or INACTIVE (retained for audit only)

Example:

"ACTIVE"

updatedAt
string
required

Last update timestamp (RFC 3339, UTC)

Example:

"2026-06-14T12:00:00Z"

ownerTaxIdHash
string

HMAC hash of the owner tax ID (hex); omitted when no tax ID was supplied

Example:

"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"