Push SLIK persons
curl --request POST \
--url https://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/slik/persons \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"clientPersonId": "CLIENT-000123",
"individual": {
"firstName": "Jonas",
"lastName": "Jonaitis",
"personCode": "39001010000"
},
"accounts": [
{
"accountNumber": "LT121000011101001000",
"accountType": "CURRENT_ACCOUNT",
"balance": 1234.56
},
{
"accountNumber": "LT121000011101001009",
"accountType": "DEPOSIT_ACCOUNT",
"balance": 100
}
]
},
{
"clientPersonId": "CLIENT-000124",
"individual": {
"firstName": "Ona",
"lastName": "Onaite",
"personCode": "48002020001"
},
"accounts": [
{
"accountNumber": "LT121000011101001001",
"accountType": "DEPOSIT_ACCOUNT",
"balance": 10
}
]
},
{
"clientPersonId": "CLIENT-000125",
"individual": {
"firstName": "Karl",
"lastName": "Kalnins",
"otherIdentification": {
"identificationNumber": "LV123456-78901",
"type": "DOCUMENT_NUMBER",
"issuedBy": "LV",
"documentType": "LT_ID_CARD",
"birthDate": "1986-03-22"
}
},
"accounts": [
{
"accountNumber": "LT121000011101001002",
"accountType": "PAYMENT_CARD_ACCOUNT",
"balance": 55.55
}
]
}
]
'import requests
url = "https://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/slik/persons"
payload = [
{
"clientPersonId": "CLIENT-000123",
"individual": {
"firstName": "Jonas",
"lastName": "Jonaitis",
"personCode": "39001010000"
},
"accounts": [
{
"accountNumber": "LT121000011101001000",
"accountType": "CURRENT_ACCOUNT",
"balance": 1234.56
},
{
"accountNumber": "LT121000011101001009",
"accountType": "DEPOSIT_ACCOUNT",
"balance": 100
}
]
},
{
"clientPersonId": "CLIENT-000124",
"individual": {
"firstName": "Ona",
"lastName": "Onaite",
"personCode": "48002020001"
},
"accounts": [
{
"accountNumber": "LT121000011101001001",
"accountType": "DEPOSIT_ACCOUNT",
"balance": 10
}
]
},
{
"clientPersonId": "CLIENT-000125",
"individual": {
"firstName": "Karl",
"lastName": "Kalnins",
"otherIdentification": {
"identificationNumber": "LV123456-78901",
"type": "DOCUMENT_NUMBER",
"issuedBy": "LV",
"documentType": "LT_ID_CARD",
"birthDate": "1986-03-22"
}
},
"accounts": [
{
"accountNumber": "LT121000011101001002",
"accountType": "PAYMENT_CARD_ACCOUNT",
"balance": 55.55
}
]
}
]
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([
{
clientPersonId: 'CLIENT-000123',
individual: {firstName: 'Jonas', lastName: 'Jonaitis', personCode: '39001010000'},
accounts: [
{
accountNumber: 'LT121000011101001000',
accountType: 'CURRENT_ACCOUNT',
balance: 1234.56
},
{
accountNumber: 'LT121000011101001009',
accountType: 'DEPOSIT_ACCOUNT',
balance: 100
}
]
},
{
clientPersonId: 'CLIENT-000124',
individual: {firstName: 'Ona', lastName: 'Onaite', personCode: '48002020001'},
accounts: [
{
accountNumber: 'LT121000011101001001',
accountType: 'DEPOSIT_ACCOUNT',
balance: 10
}
]
},
{
clientPersonId: 'CLIENT-000125',
individual: {
firstName: 'Karl',
lastName: 'Kalnins',
otherIdentification: {
identificationNumber: 'LV123456-78901',
type: 'DOCUMENT_NUMBER',
issuedBy: 'LV',
documentType: 'LT_ID_CARD',
birthDate: '1986-03-22'
}
},
accounts: [
{
accountNumber: 'LT121000011101001002',
accountType: 'PAYMENT_CARD_ACCOUNT',
balance: 55.55
}
]
}
])
};
fetch('https://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/slik/persons', 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://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/slik/persons",
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([
[
'clientPersonId' => 'CLIENT-000123',
'individual' => [
'firstName' => 'Jonas',
'lastName' => 'Jonaitis',
'personCode' => '39001010000'
],
'accounts' => [
[
'accountNumber' => 'LT121000011101001000',
'accountType' => 'CURRENT_ACCOUNT',
'balance' => 1234.56
],
[
'accountNumber' => 'LT121000011101001009',
'accountType' => 'DEPOSIT_ACCOUNT',
'balance' => 100
]
]
],
[
'clientPersonId' => 'CLIENT-000124',
'individual' => [
'firstName' => 'Ona',
'lastName' => 'Onaite',
'personCode' => '48002020001'
],
'accounts' => [
[
'accountNumber' => 'LT121000011101001001',
'accountType' => 'DEPOSIT_ACCOUNT',
'balance' => 10
]
]
],
[
'clientPersonId' => 'CLIENT-000125',
'individual' => [
'firstName' => 'Karl',
'lastName' => 'Kalnins',
'otherIdentification' => [
'identificationNumber' => 'LV123456-78901',
'type' => 'DOCUMENT_NUMBER',
'issuedBy' => 'LV',
'documentType' => 'LT_ID_CARD',
'birthDate' => '1986-03-22'
]
],
'accounts' => [
[
'accountNumber' => 'LT121000011101001002',
'accountType' => 'PAYMENT_CARD_ACCOUNT',
'balance' => 55.55
]
]
]
]),
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://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/slik/persons"
payload := strings.NewReader("[\n {\n \"clientPersonId\": \"CLIENT-000123\",\n \"individual\": {\n \"firstName\": \"Jonas\",\n \"lastName\": \"Jonaitis\",\n \"personCode\": \"39001010000\"\n },\n \"accounts\": [\n {\n \"accountNumber\": \"LT121000011101001000\",\n \"accountType\": \"CURRENT_ACCOUNT\",\n \"balance\": 1234.56\n },\n {\n \"accountNumber\": \"LT121000011101001009\",\n \"accountType\": \"DEPOSIT_ACCOUNT\",\n \"balance\": 100\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000124\",\n \"individual\": {\n \"firstName\": \"Ona\",\n \"lastName\": \"Onaite\",\n \"personCode\": \"48002020001\"\n },\n \"accounts\": [\n {\n \"accountNumber\": \"LT121000011101001001\",\n \"accountType\": \"DEPOSIT_ACCOUNT\",\n \"balance\": 10\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000125\",\n \"individual\": {\n \"firstName\": \"Karl\",\n \"lastName\": \"Kalnins\",\n \"otherIdentification\": {\n \"identificationNumber\": \"LV123456-78901\",\n \"type\": \"DOCUMENT_NUMBER\",\n \"issuedBy\": \"LV\",\n \"documentType\": \"LT_ID_CARD\",\n \"birthDate\": \"1986-03-22\"\n }\n },\n \"accounts\": [\n {\n \"accountNumber\": \"LT121000011101001002\",\n \"accountType\": \"PAYMENT_CARD_ACCOUNT\",\n \"balance\": 55.55\n }\n ]\n }\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://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/slik/persons")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"clientPersonId\": \"CLIENT-000123\",\n \"individual\": {\n \"firstName\": \"Jonas\",\n \"lastName\": \"Jonaitis\",\n \"personCode\": \"39001010000\"\n },\n \"accounts\": [\n {\n \"accountNumber\": \"LT121000011101001000\",\n \"accountType\": \"CURRENT_ACCOUNT\",\n \"balance\": 1234.56\n },\n {\n \"accountNumber\": \"LT121000011101001009\",\n \"accountType\": \"DEPOSIT_ACCOUNT\",\n \"balance\": 100\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000124\",\n \"individual\": {\n \"firstName\": \"Ona\",\n \"lastName\": \"Onaite\",\n \"personCode\": \"48002020001\"\n },\n \"accounts\": [\n {\n \"accountNumber\": \"LT121000011101001001\",\n \"accountType\": \"DEPOSIT_ACCOUNT\",\n \"balance\": 10\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000125\",\n \"individual\": {\n \"firstName\": \"Karl\",\n \"lastName\": \"Kalnins\",\n \"otherIdentification\": {\n \"identificationNumber\": \"LV123456-78901\",\n \"type\": \"DOCUMENT_NUMBER\",\n \"issuedBy\": \"LV\",\n \"documentType\": \"LT_ID_CARD\",\n \"birthDate\": \"1986-03-22\"\n }\n },\n \"accounts\": [\n {\n \"accountNumber\": \"LT121000011101001002\",\n \"accountType\": \"PAYMENT_CARD_ACCOUNT\",\n \"balance\": 55.55\n }\n ]\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/slik/persons")
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 {\n \"clientPersonId\": \"CLIENT-000123\",\n \"individual\": {\n \"firstName\": \"Jonas\",\n \"lastName\": \"Jonaitis\",\n \"personCode\": \"39001010000\"\n },\n \"accounts\": [\n {\n \"accountNumber\": \"LT121000011101001000\",\n \"accountType\": \"CURRENT_ACCOUNT\",\n \"balance\": 1234.56\n },\n {\n \"accountNumber\": \"LT121000011101001009\",\n \"accountType\": \"DEPOSIT_ACCOUNT\",\n \"balance\": 100\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000124\",\n \"individual\": {\n \"firstName\": \"Ona\",\n \"lastName\": \"Onaite\",\n \"personCode\": \"48002020001\"\n },\n \"accounts\": [\n {\n \"accountNumber\": \"LT121000011101001001\",\n \"accountType\": \"DEPOSIT_ACCOUNT\",\n \"balance\": 10\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000125\",\n \"individual\": {\n \"firstName\": \"Karl\",\n \"lastName\": \"Kalnins\",\n \"otherIdentification\": {\n \"identificationNumber\": \"LV123456-78901\",\n \"type\": \"DOCUMENT_NUMBER\",\n \"issuedBy\": \"LV\",\n \"documentType\": \"LT_ID_CARD\",\n \"birthDate\": \"1986-03-22\"\n }\n },\n \"accounts\": [\n {\n \"accountNumber\": \"LT121000011101001002\",\n \"accountType\": \"PAYMENT_CARD_ACCOUNT\",\n \"balance\": 55.55\n }\n ]\n }\n]"
response = http.request(request)
puts response.read_body[
{
"status": "SUCCESS",
"clientPersonId": "CLIENT-000123",
"errors": []
},
{
"status": "SUCCESS",
"clientPersonId": "CLIENT-000124",
"errors": []
},
{
"status": "SUCCESS",
"clientPersonId": "CLIENT-000125",
"errors": []
}
][
{
"status": "SUCCESS",
"clientPersonId": "CLIENT-000123",
"errors": []
},
{
"status": "FAILED",
"clientPersonId": "CLIENT-000124",
"errors": [
{
"fields": [
"clientPersonId"
],
"message": "Duplicate clientPersonId 'CLIENT-000124'"
}
]
}
][
{
"status": "FAILED",
"clientPersonId": "CLIENT-000123",
"errors": [
{
"fields": [
"clientPersonId"
],
"message": "Person 'CLIENT-000123' was already reported for 2025; amend it with PUT or withdraw it with DELETE"
}
]
},
{
"status": "FAILED",
"clientPersonId": "CLIENT-000125",
"errors": [
{
"fields": [
"individual"
],
"message": "Provide exactly one of personCode or otherIdentification."
}
]
}
]SLIK
Push SLIK persons
Add a batch of persons to a SLIK submission.
POST
/
reports
/
mai55
/
v1
/
submissions
/
{submissionId}
/
slik
/
persons
Push SLIK persons
curl --request POST \
--url https://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/slik/persons \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"clientPersonId": "CLIENT-000123",
"individual": {
"firstName": "Jonas",
"lastName": "Jonaitis",
"personCode": "39001010000"
},
"accounts": [
{
"accountNumber": "LT121000011101001000",
"accountType": "CURRENT_ACCOUNT",
"balance": 1234.56
},
{
"accountNumber": "LT121000011101001009",
"accountType": "DEPOSIT_ACCOUNT",
"balance": 100
}
]
},
{
"clientPersonId": "CLIENT-000124",
"individual": {
"firstName": "Ona",
"lastName": "Onaite",
"personCode": "48002020001"
},
"accounts": [
{
"accountNumber": "LT121000011101001001",
"accountType": "DEPOSIT_ACCOUNT",
"balance": 10
}
]
},
{
"clientPersonId": "CLIENT-000125",
"individual": {
"firstName": "Karl",
"lastName": "Kalnins",
"otherIdentification": {
"identificationNumber": "LV123456-78901",
"type": "DOCUMENT_NUMBER",
"issuedBy": "LV",
"documentType": "LT_ID_CARD",
"birthDate": "1986-03-22"
}
},
"accounts": [
{
"accountNumber": "LT121000011101001002",
"accountType": "PAYMENT_CARD_ACCOUNT",
"balance": 55.55
}
]
}
]
'import requests
url = "https://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/slik/persons"
payload = [
{
"clientPersonId": "CLIENT-000123",
"individual": {
"firstName": "Jonas",
"lastName": "Jonaitis",
"personCode": "39001010000"
},
"accounts": [
{
"accountNumber": "LT121000011101001000",
"accountType": "CURRENT_ACCOUNT",
"balance": 1234.56
},
{
"accountNumber": "LT121000011101001009",
"accountType": "DEPOSIT_ACCOUNT",
"balance": 100
}
]
},
{
"clientPersonId": "CLIENT-000124",
"individual": {
"firstName": "Ona",
"lastName": "Onaite",
"personCode": "48002020001"
},
"accounts": [
{
"accountNumber": "LT121000011101001001",
"accountType": "DEPOSIT_ACCOUNT",
"balance": 10
}
]
},
{
"clientPersonId": "CLIENT-000125",
"individual": {
"firstName": "Karl",
"lastName": "Kalnins",
"otherIdentification": {
"identificationNumber": "LV123456-78901",
"type": "DOCUMENT_NUMBER",
"issuedBy": "LV",
"documentType": "LT_ID_CARD",
"birthDate": "1986-03-22"
}
},
"accounts": [
{
"accountNumber": "LT121000011101001002",
"accountType": "PAYMENT_CARD_ACCOUNT",
"balance": 55.55
}
]
}
]
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([
{
clientPersonId: 'CLIENT-000123',
individual: {firstName: 'Jonas', lastName: 'Jonaitis', personCode: '39001010000'},
accounts: [
{
accountNumber: 'LT121000011101001000',
accountType: 'CURRENT_ACCOUNT',
balance: 1234.56
},
{
accountNumber: 'LT121000011101001009',
accountType: 'DEPOSIT_ACCOUNT',
balance: 100
}
]
},
{
clientPersonId: 'CLIENT-000124',
individual: {firstName: 'Ona', lastName: 'Onaite', personCode: '48002020001'},
accounts: [
{
accountNumber: 'LT121000011101001001',
accountType: 'DEPOSIT_ACCOUNT',
balance: 10
}
]
},
{
clientPersonId: 'CLIENT-000125',
individual: {
firstName: 'Karl',
lastName: 'Kalnins',
otherIdentification: {
identificationNumber: 'LV123456-78901',
type: 'DOCUMENT_NUMBER',
issuedBy: 'LV',
documentType: 'LT_ID_CARD',
birthDate: '1986-03-22'
}
},
accounts: [
{
accountNumber: 'LT121000011101001002',
accountType: 'PAYMENT_CARD_ACCOUNT',
balance: 55.55
}
]
}
])
};
fetch('https://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/slik/persons', 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://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/slik/persons",
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([
[
'clientPersonId' => 'CLIENT-000123',
'individual' => [
'firstName' => 'Jonas',
'lastName' => 'Jonaitis',
'personCode' => '39001010000'
],
'accounts' => [
[
'accountNumber' => 'LT121000011101001000',
'accountType' => 'CURRENT_ACCOUNT',
'balance' => 1234.56
],
[
'accountNumber' => 'LT121000011101001009',
'accountType' => 'DEPOSIT_ACCOUNT',
'balance' => 100
]
]
],
[
'clientPersonId' => 'CLIENT-000124',
'individual' => [
'firstName' => 'Ona',
'lastName' => 'Onaite',
'personCode' => '48002020001'
],
'accounts' => [
[
'accountNumber' => 'LT121000011101001001',
'accountType' => 'DEPOSIT_ACCOUNT',
'balance' => 10
]
]
],
[
'clientPersonId' => 'CLIENT-000125',
'individual' => [
'firstName' => 'Karl',
'lastName' => 'Kalnins',
'otherIdentification' => [
'identificationNumber' => 'LV123456-78901',
'type' => 'DOCUMENT_NUMBER',
'issuedBy' => 'LV',
'documentType' => 'LT_ID_CARD',
'birthDate' => '1986-03-22'
]
],
'accounts' => [
[
'accountNumber' => 'LT121000011101001002',
'accountType' => 'PAYMENT_CARD_ACCOUNT',
'balance' => 55.55
]
]
]
]),
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://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/slik/persons"
payload := strings.NewReader("[\n {\n \"clientPersonId\": \"CLIENT-000123\",\n \"individual\": {\n \"firstName\": \"Jonas\",\n \"lastName\": \"Jonaitis\",\n \"personCode\": \"39001010000\"\n },\n \"accounts\": [\n {\n \"accountNumber\": \"LT121000011101001000\",\n \"accountType\": \"CURRENT_ACCOUNT\",\n \"balance\": 1234.56\n },\n {\n \"accountNumber\": \"LT121000011101001009\",\n \"accountType\": \"DEPOSIT_ACCOUNT\",\n \"balance\": 100\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000124\",\n \"individual\": {\n \"firstName\": \"Ona\",\n \"lastName\": \"Onaite\",\n \"personCode\": \"48002020001\"\n },\n \"accounts\": [\n {\n \"accountNumber\": \"LT121000011101001001\",\n \"accountType\": \"DEPOSIT_ACCOUNT\",\n \"balance\": 10\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000125\",\n \"individual\": {\n \"firstName\": \"Karl\",\n \"lastName\": \"Kalnins\",\n \"otherIdentification\": {\n \"identificationNumber\": \"LV123456-78901\",\n \"type\": \"DOCUMENT_NUMBER\",\n \"issuedBy\": \"LV\",\n \"documentType\": \"LT_ID_CARD\",\n \"birthDate\": \"1986-03-22\"\n }\n },\n \"accounts\": [\n {\n \"accountNumber\": \"LT121000011101001002\",\n \"accountType\": \"PAYMENT_CARD_ACCOUNT\",\n \"balance\": 55.55\n }\n ]\n }\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://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/slik/persons")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"clientPersonId\": \"CLIENT-000123\",\n \"individual\": {\n \"firstName\": \"Jonas\",\n \"lastName\": \"Jonaitis\",\n \"personCode\": \"39001010000\"\n },\n \"accounts\": [\n {\n \"accountNumber\": \"LT121000011101001000\",\n \"accountType\": \"CURRENT_ACCOUNT\",\n \"balance\": 1234.56\n },\n {\n \"accountNumber\": \"LT121000011101001009\",\n \"accountType\": \"DEPOSIT_ACCOUNT\",\n \"balance\": 100\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000124\",\n \"individual\": {\n \"firstName\": \"Ona\",\n \"lastName\": \"Onaite\",\n \"personCode\": \"48002020001\"\n },\n \"accounts\": [\n {\n \"accountNumber\": \"LT121000011101001001\",\n \"accountType\": \"DEPOSIT_ACCOUNT\",\n \"balance\": 10\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000125\",\n \"individual\": {\n \"firstName\": \"Karl\",\n \"lastName\": \"Kalnins\",\n \"otherIdentification\": {\n \"identificationNumber\": \"LV123456-78901\",\n \"type\": \"DOCUMENT_NUMBER\",\n \"issuedBy\": \"LV\",\n \"documentType\": \"LT_ID_CARD\",\n \"birthDate\": \"1986-03-22\"\n }\n },\n \"accounts\": [\n {\n \"accountNumber\": \"LT121000011101001002\",\n \"accountType\": \"PAYMENT_CARD_ACCOUNT\",\n \"balance\": 55.55\n }\n ]\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/slik/persons")
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 {\n \"clientPersonId\": \"CLIENT-000123\",\n \"individual\": {\n \"firstName\": \"Jonas\",\n \"lastName\": \"Jonaitis\",\n \"personCode\": \"39001010000\"\n },\n \"accounts\": [\n {\n \"accountNumber\": \"LT121000011101001000\",\n \"accountType\": \"CURRENT_ACCOUNT\",\n \"balance\": 1234.56\n },\n {\n \"accountNumber\": \"LT121000011101001009\",\n \"accountType\": \"DEPOSIT_ACCOUNT\",\n \"balance\": 100\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000124\",\n \"individual\": {\n \"firstName\": \"Ona\",\n \"lastName\": \"Onaite\",\n \"personCode\": \"48002020001\"\n },\n \"accounts\": [\n {\n \"accountNumber\": \"LT121000011101001001\",\n \"accountType\": \"DEPOSIT_ACCOUNT\",\n \"balance\": 10\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000125\",\n \"individual\": {\n \"firstName\": \"Karl\",\n \"lastName\": \"Kalnins\",\n \"otherIdentification\": {\n \"identificationNumber\": \"LV123456-78901\",\n \"type\": \"DOCUMENT_NUMBER\",\n \"issuedBy\": \"LV\",\n \"documentType\": \"LT_ID_CARD\",\n \"birthDate\": \"1986-03-22\"\n }\n },\n \"accounts\": [\n {\n \"accountNumber\": \"LT121000011101001002\",\n \"accountType\": \"PAYMENT_CARD_ACCOUNT\",\n \"balance\": 55.55\n }\n ]\n }\n]"
response = http.request(request)
puts response.read_body[
{
"status": "SUCCESS",
"clientPersonId": "CLIENT-000123",
"errors": []
},
{
"status": "SUCCESS",
"clientPersonId": "CLIENT-000124",
"errors": []
},
{
"status": "SUCCESS",
"clientPersonId": "CLIENT-000125",
"errors": []
}
][
{
"status": "SUCCESS",
"clientPersonId": "CLIENT-000123",
"errors": []
},
{
"status": "FAILED",
"clientPersonId": "CLIENT-000124",
"errors": [
{
"fields": [
"clientPersonId"
],
"message": "Duplicate clientPersonId 'CLIENT-000124'"
}
]
}
][
{
"status": "FAILED",
"clientPersonId": "CLIENT-000123",
"errors": [
{
"fields": [
"clientPersonId"
],
"message": "Person 'CLIENT-000123' was already reported for 2025; amend it with PUT or withdraw it with DELETE"
}
]
},
{
"status": "FAILED",
"clientPersonId": "CLIENT-000125",
"errors": [
{
"fields": [
"individual"
],
"message": "Provide exactly one of personCode or otherIdentification."
}
]
}
]Each person carries your own
clientPersonId, echoed back in the result, with every account they hold with you attached. It must be unique within the submission, and it is how you update or delete them later. Send the optional Idempotency-Key header to make a retried batch safe.Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Headers
Client-provided idempotency key. UUID v4 suggested, max 255 characters. If provided, duplicate requests with the same key return the cached response.
Maximum string length:
255Path Parameters
Body
application/json
Your own stable id for this person. Identifies them within the submission, so it must be unique across the persons you push, and it is how you address them on update and delete.
Maximum string length:
255Example:
"CLIENT-000123"
A reportable natural person. Identify them either by Lithuanian personal code or, when they have none, by otherIdentification -- exactly one of the two.
Show child attributes
Show child attributes
List of accounts with their balance
Required array length:
1 - 1000 elementsShow child attributes
Show child attributes
Response
All persons saved
Last modified on September 1, 2026