Get DICT funds-recovery tracking graph
curl --request GET \
--url https://spi.sandbox.lerian.net/api/v1/dict/funds-recoveries/{id}/tracking-graph \
--header 'Authorization: Bearer <token>'import requests
url = "https://spi.sandbox.lerian.net/api/v1/dict/funds-recoveries/{id}/tracking-graph"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://spi.sandbox.lerian.net/api/v1/dict/funds-recoveries/{id}/tracking-graph', 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/funds-recoveries/{id}/tracking-graph",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://spi.sandbox.lerian.net/api/v1/dict/funds-recoveries/{id}/tracking-graph"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://spi.sandbox.lerian.net/api/v1/dict/funds-recoveries/{id}/tracking-graph")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://spi.sandbox.lerian.net/api/v1/dict/funds-recoveries/{id}/tracking-graph")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"accounts": [
{
"id": 1,
"ownerId": 1,
"participant": "99999010",
"openingDate": "2010-01-10T03:00:00Z"
}
],
"fundsRecoveryId": "ca1b9c01-ff9e-4a58-90ab-d31512e15ce0",
"persons": [
{
"id": 1,
"type": "NATURAL_PERSON",
"entityCreationDate": "2010-01-10T03:00:00Z"
}
],
"rootTransactionId": "E9999901012341234123412345678900",
"transactions": [
{
"amount": "1000.20",
"creditorAccountId": 2,
"debtorAccountId": 1,
"id": "E9999901012341234123412345678900",
"refundableAmount": "900.10",
"settlementTime": "2024-10-01T10:00:00.000Z"
}
]
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Get DICT funds-recovery tracking graph
Fetches the AUTOMATED-flow fraud-tracking graph from BACEN and projects it verbatim. The manual createTrackingGraph POST is BACEN-deprecated; only this read is current.
GET
/
api
/
v1
/
dict
/
funds-recoveries
/
{id}
/
tracking-graph
Get DICT funds-recovery tracking graph
curl --request GET \
--url https://spi.sandbox.lerian.net/api/v1/dict/funds-recoveries/{id}/tracking-graph \
--header 'Authorization: Bearer <token>'import requests
url = "https://spi.sandbox.lerian.net/api/v1/dict/funds-recoveries/{id}/tracking-graph"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://spi.sandbox.lerian.net/api/v1/dict/funds-recoveries/{id}/tracking-graph', 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/funds-recoveries/{id}/tracking-graph",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://spi.sandbox.lerian.net/api/v1/dict/funds-recoveries/{id}/tracking-graph"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://spi.sandbox.lerian.net/api/v1/dict/funds-recoveries/{id}/tracking-graph")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://spi.sandbox.lerian.net/api/v1/dict/funds-recoveries/{id}/tracking-graph")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"accounts": [
{
"id": 1,
"ownerId": 1,
"participant": "99999010",
"openingDate": "2010-01-10T03:00:00Z"
}
],
"fundsRecoveryId": "ca1b9c01-ff9e-4a58-90ab-d31512e15ce0",
"persons": [
{
"id": 1,
"type": "NATURAL_PERSON",
"entityCreationDate": "2010-01-10T03:00:00Z"
}
],
"rootTransactionId": "E9999901012341234123412345678900",
"transactions": [
{
"amount": "1000.20",
"creditorAccountId": 2,
"debtorAccountId": 1,
"id": "E9999901012341234123412345678900",
"refundableAmount": "900.10",
"settlementTime": "2024-10-01T10:00:00.000Z"
}
]
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Authorizations
JWT bearer token issued by the identity provider.
Path Parameters
Funds recovery UUID (local record id); the graph is fetched from BACEN by its assigned id
Response
OK
BACEN-projected fraud-tracking graph, verbatim, with no local computation
Graph account nodes
Show child attributes
Show child attributes
BACEN-assigned funds-recovery id the graph belongs to
Example:
"ca1b9c01-ff9e-4a58-90ab-d31512e15ce0"
Graph person nodes (anonymised)
Show child attributes
Show child attributes
Originating fraudulent transaction end-to-end id
Example:
"E9999901012341234123412345678900"
Graph transaction edges
Show child attributes
Show child attributes
Was this page helpful?

