curl --request POST \
--url https://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/skis/persons \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"clientPersonId": "CLIENT-000123",
"individual": {
"firstName": "Jonas",
"lastName": "Jonaitis",
"personCode": "39001010000"
},
"debts": [
{
"agreementNumber": "CR-2024-000123",
"agreementDate": "2024-03-15",
"repaymentDate": "2029-03-15",
"debtKind": "Consumer credit",
"debtAmount": 15000,
"reportableDebtAmount": 9800.5,
"repaymentType": "Periodic payments in equal amounts",
"interestRate": 7.5
},
{
"agreementNumber": "CR-2022-000777",
"agreementDate": "2022-06-01",
"repaymentDate": "2042-06-01",
"debtKind": "Mortgage loan",
"debtAmount": 20000,
"reportableDebtAmount": 15000,
"repaymentType": "Periodic payments in equal amounts",
"jointLiability": 2,
"interestRate": 3.2
}
]
},
{
"clientPersonId": "CLIENT-000124",
"individual": {
"firstName": "Karl",
"lastName": "Kalnins",
"otherIdentification": {
"identificationNumber": "LV123456-78901",
"type": "DOCUMENT_NUMBER",
"issuedBy": "LV",
"documentType": "LT_ID_CARD",
"birthDate": "1986-03-22"
}
},
"debts": [
{
"agreementNumber": "CR-2025-000901",
"agreementDate": "2025-01-10",
"repaymentDate": "2027-01-10",
"debtKind": "Line of credit",
"debtAmount": 5000,
"reportableDebtAmount": 4200,
"repaymentType": "End of term single payment",
"interestRate": 9.9
}
]
},
{
"clientPersonId": "CLIENT-000125",
"individual": {
"firstName": "Ona",
"lastName": "Onaite",
"personCode": "48002020001"
},
"debts": [
{
"agreementNumber": "CR-2023-000555",
"agreementDate": "2023-09-01",
"repaymentDate": "2028-09-01",
"debtKind": "Consumer credit",
"debtAmount": 1200,
"reportableDebtAmount": 800,
"repaymentType": "Periodic payments in equal amounts",
"interestRate": 8.4
}
]
}
]
'import requests
url = "https://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/skis/persons"
payload = [
{
"clientPersonId": "CLIENT-000123",
"individual": {
"firstName": "Jonas",
"lastName": "Jonaitis",
"personCode": "39001010000"
},
"debts": [
{
"agreementNumber": "CR-2024-000123",
"agreementDate": "2024-03-15",
"repaymentDate": "2029-03-15",
"debtKind": "Consumer credit",
"debtAmount": 15000,
"reportableDebtAmount": 9800.5,
"repaymentType": "Periodic payments in equal amounts",
"interestRate": 7.5
},
{
"agreementNumber": "CR-2022-000777",
"agreementDate": "2022-06-01",
"repaymentDate": "2042-06-01",
"debtKind": "Mortgage loan",
"debtAmount": 20000,
"reportableDebtAmount": 15000,
"repaymentType": "Periodic payments in equal amounts",
"jointLiability": 2,
"interestRate": 3.2
}
]
},
{
"clientPersonId": "CLIENT-000124",
"individual": {
"firstName": "Karl",
"lastName": "Kalnins",
"otherIdentification": {
"identificationNumber": "LV123456-78901",
"type": "DOCUMENT_NUMBER",
"issuedBy": "LV",
"documentType": "LT_ID_CARD",
"birthDate": "1986-03-22"
}
},
"debts": [
{
"agreementNumber": "CR-2025-000901",
"agreementDate": "2025-01-10",
"repaymentDate": "2027-01-10",
"debtKind": "Line of credit",
"debtAmount": 5000,
"reportableDebtAmount": 4200,
"repaymentType": "End of term single payment",
"interestRate": 9.9
}
]
},
{
"clientPersonId": "CLIENT-000125",
"individual": {
"firstName": "Ona",
"lastName": "Onaite",
"personCode": "48002020001"
},
"debts": [
{
"agreementNumber": "CR-2023-000555",
"agreementDate": "2023-09-01",
"repaymentDate": "2028-09-01",
"debtKind": "Consumer credit",
"debtAmount": 1200,
"reportableDebtAmount": 800,
"repaymentType": "Periodic payments in equal amounts",
"interestRate": 8.4
}
]
}
]
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'},
debts: [
{
agreementNumber: 'CR-2024-000123',
agreementDate: '2024-03-15',
repaymentDate: '2029-03-15',
debtKind: 'Consumer credit',
debtAmount: 15000,
reportableDebtAmount: 9800.5,
repaymentType: 'Periodic payments in equal amounts',
interestRate: 7.5
},
{
agreementNumber: 'CR-2022-000777',
agreementDate: '2022-06-01',
repaymentDate: '2042-06-01',
debtKind: 'Mortgage loan',
debtAmount: 20000,
reportableDebtAmount: 15000,
repaymentType: 'Periodic payments in equal amounts',
jointLiability: 2,
interestRate: 3.2
}
]
},
{
clientPersonId: 'CLIENT-000124',
individual: {
firstName: 'Karl',
lastName: 'Kalnins',
otherIdentification: {
identificationNumber: 'LV123456-78901',
type: 'DOCUMENT_NUMBER',
issuedBy: 'LV',
documentType: 'LT_ID_CARD',
birthDate: '1986-03-22'
}
},
debts: [
{
agreementNumber: 'CR-2025-000901',
agreementDate: '2025-01-10',
repaymentDate: '2027-01-10',
debtKind: 'Line of credit',
debtAmount: 5000,
reportableDebtAmount: 4200,
repaymentType: 'End of term single payment',
interestRate: 9.9
}
]
},
{
clientPersonId: 'CLIENT-000125',
individual: {firstName: 'Ona', lastName: 'Onaite', personCode: '48002020001'},
debts: [
{
agreementNumber: 'CR-2023-000555',
agreementDate: '2023-09-01',
repaymentDate: '2028-09-01',
debtKind: 'Consumer credit',
debtAmount: 1200,
reportableDebtAmount: 800,
repaymentType: 'Periodic payments in equal amounts',
interestRate: 8.4
}
]
}
])
};
fetch('https://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/skis/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}/skis/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'
],
'debts' => [
[
'agreementNumber' => 'CR-2024-000123',
'agreementDate' => '2024-03-15',
'repaymentDate' => '2029-03-15',
'debtKind' => 'Consumer credit',
'debtAmount' => 15000,
'reportableDebtAmount' => 9800.5,
'repaymentType' => 'Periodic payments in equal amounts',
'interestRate' => 7.5
],
[
'agreementNumber' => 'CR-2022-000777',
'agreementDate' => '2022-06-01',
'repaymentDate' => '2042-06-01',
'debtKind' => 'Mortgage loan',
'debtAmount' => 20000,
'reportableDebtAmount' => 15000,
'repaymentType' => 'Periodic payments in equal amounts',
'jointLiability' => 2,
'interestRate' => 3.2
]
]
],
[
'clientPersonId' => 'CLIENT-000124',
'individual' => [
'firstName' => 'Karl',
'lastName' => 'Kalnins',
'otherIdentification' => [
'identificationNumber' => 'LV123456-78901',
'type' => 'DOCUMENT_NUMBER',
'issuedBy' => 'LV',
'documentType' => 'LT_ID_CARD',
'birthDate' => '1986-03-22'
]
],
'debts' => [
[
'agreementNumber' => 'CR-2025-000901',
'agreementDate' => '2025-01-10',
'repaymentDate' => '2027-01-10',
'debtKind' => 'Line of credit',
'debtAmount' => 5000,
'reportableDebtAmount' => 4200,
'repaymentType' => 'End of term single payment',
'interestRate' => 9.9
]
]
],
[
'clientPersonId' => 'CLIENT-000125',
'individual' => [
'firstName' => 'Ona',
'lastName' => 'Onaite',
'personCode' => '48002020001'
],
'debts' => [
[
'agreementNumber' => 'CR-2023-000555',
'agreementDate' => '2023-09-01',
'repaymentDate' => '2028-09-01',
'debtKind' => 'Consumer credit',
'debtAmount' => 1200,
'reportableDebtAmount' => 800,
'repaymentType' => 'Periodic payments in equal amounts',
'interestRate' => 8.4
]
]
]
]),
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}/skis/persons"
payload := strings.NewReader("[\n {\n \"clientPersonId\": \"CLIENT-000123\",\n \"individual\": {\n \"firstName\": \"Jonas\",\n \"lastName\": \"Jonaitis\",\n \"personCode\": \"39001010000\"\n },\n \"debts\": [\n {\n \"agreementNumber\": \"CR-2024-000123\",\n \"agreementDate\": \"2024-03-15\",\n \"repaymentDate\": \"2029-03-15\",\n \"debtKind\": \"Consumer credit\",\n \"debtAmount\": 15000,\n \"reportableDebtAmount\": 9800.5,\n \"repaymentType\": \"Periodic payments in equal amounts\",\n \"interestRate\": 7.5\n },\n {\n \"agreementNumber\": \"CR-2022-000777\",\n \"agreementDate\": \"2022-06-01\",\n \"repaymentDate\": \"2042-06-01\",\n \"debtKind\": \"Mortgage loan\",\n \"debtAmount\": 20000,\n \"reportableDebtAmount\": 15000,\n \"repaymentType\": \"Periodic payments in equal amounts\",\n \"jointLiability\": 2,\n \"interestRate\": 3.2\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000124\",\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 \"debts\": [\n {\n \"agreementNumber\": \"CR-2025-000901\",\n \"agreementDate\": \"2025-01-10\",\n \"repaymentDate\": \"2027-01-10\",\n \"debtKind\": \"Line of credit\",\n \"debtAmount\": 5000,\n \"reportableDebtAmount\": 4200,\n \"repaymentType\": \"End of term single payment\",\n \"interestRate\": 9.9\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000125\",\n \"individual\": {\n \"firstName\": \"Ona\",\n \"lastName\": \"Onaite\",\n \"personCode\": \"48002020001\"\n },\n \"debts\": [\n {\n \"agreementNumber\": \"CR-2023-000555\",\n \"agreementDate\": \"2023-09-01\",\n \"repaymentDate\": \"2028-09-01\",\n \"debtKind\": \"Consumer credit\",\n \"debtAmount\": 1200,\n \"reportableDebtAmount\": 800,\n \"repaymentType\": \"Periodic payments in equal amounts\",\n \"interestRate\": 8.4\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}/skis/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 \"debts\": [\n {\n \"agreementNumber\": \"CR-2024-000123\",\n \"agreementDate\": \"2024-03-15\",\n \"repaymentDate\": \"2029-03-15\",\n \"debtKind\": \"Consumer credit\",\n \"debtAmount\": 15000,\n \"reportableDebtAmount\": 9800.5,\n \"repaymentType\": \"Periodic payments in equal amounts\",\n \"interestRate\": 7.5\n },\n {\n \"agreementNumber\": \"CR-2022-000777\",\n \"agreementDate\": \"2022-06-01\",\n \"repaymentDate\": \"2042-06-01\",\n \"debtKind\": \"Mortgage loan\",\n \"debtAmount\": 20000,\n \"reportableDebtAmount\": 15000,\n \"repaymentType\": \"Periodic payments in equal amounts\",\n \"jointLiability\": 2,\n \"interestRate\": 3.2\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000124\",\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 \"debts\": [\n {\n \"agreementNumber\": \"CR-2025-000901\",\n \"agreementDate\": \"2025-01-10\",\n \"repaymentDate\": \"2027-01-10\",\n \"debtKind\": \"Line of credit\",\n \"debtAmount\": 5000,\n \"reportableDebtAmount\": 4200,\n \"repaymentType\": \"End of term single payment\",\n \"interestRate\": 9.9\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000125\",\n \"individual\": {\n \"firstName\": \"Ona\",\n \"lastName\": \"Onaite\",\n \"personCode\": \"48002020001\"\n },\n \"debts\": [\n {\n \"agreementNumber\": \"CR-2023-000555\",\n \"agreementDate\": \"2023-09-01\",\n \"repaymentDate\": \"2028-09-01\",\n \"debtKind\": \"Consumer credit\",\n \"debtAmount\": 1200,\n \"reportableDebtAmount\": 800,\n \"repaymentType\": \"Periodic payments in equal amounts\",\n \"interestRate\": 8.4\n }\n ]\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/skis/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 \"debts\": [\n {\n \"agreementNumber\": \"CR-2024-000123\",\n \"agreementDate\": \"2024-03-15\",\n \"repaymentDate\": \"2029-03-15\",\n \"debtKind\": \"Consumer credit\",\n \"debtAmount\": 15000,\n \"reportableDebtAmount\": 9800.5,\n \"repaymentType\": \"Periodic payments in equal amounts\",\n \"interestRate\": 7.5\n },\n {\n \"agreementNumber\": \"CR-2022-000777\",\n \"agreementDate\": \"2022-06-01\",\n \"repaymentDate\": \"2042-06-01\",\n \"debtKind\": \"Mortgage loan\",\n \"debtAmount\": 20000,\n \"reportableDebtAmount\": 15000,\n \"repaymentType\": \"Periodic payments in equal amounts\",\n \"jointLiability\": 2,\n \"interestRate\": 3.2\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000124\",\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 \"debts\": [\n {\n \"agreementNumber\": \"CR-2025-000901\",\n \"agreementDate\": \"2025-01-10\",\n \"repaymentDate\": \"2027-01-10\",\n \"debtKind\": \"Line of credit\",\n \"debtAmount\": 5000,\n \"reportableDebtAmount\": 4200,\n \"repaymentType\": \"End of term single payment\",\n \"interestRate\": 9.9\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000125\",\n \"individual\": {\n \"firstName\": \"Ona\",\n \"lastName\": \"Onaite\",\n \"personCode\": \"48002020001\"\n },\n \"debts\": [\n {\n \"agreementNumber\": \"CR-2023-000555\",\n \"agreementDate\": \"2023-09-01\",\n \"repaymentDate\": \"2028-09-01\",\n \"debtKind\": \"Consumer credit\",\n \"debtAmount\": 1200,\n \"reportableDebtAmount\": 800,\n \"repaymentType\": \"Periodic payments in equal amounts\",\n \"interestRate\": 8.4\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": [
"debts[0]"
],
"message": "repaymentDate must be after agreementDate."
}
]
}
][
{
"status": "FAILED",
"clientPersonId": "CLIENT-000123",
"errors": [
{
"fields": [
"individual"
],
"message": "Provide exactly one of personCode or otherIdentification."
}
]
}
]Push SKIS persons
Add a batch of persons to a SKIS submission.
curl --request POST \
--url https://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/skis/persons \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"clientPersonId": "CLIENT-000123",
"individual": {
"firstName": "Jonas",
"lastName": "Jonaitis",
"personCode": "39001010000"
},
"debts": [
{
"agreementNumber": "CR-2024-000123",
"agreementDate": "2024-03-15",
"repaymentDate": "2029-03-15",
"debtKind": "Consumer credit",
"debtAmount": 15000,
"reportableDebtAmount": 9800.5,
"repaymentType": "Periodic payments in equal amounts",
"interestRate": 7.5
},
{
"agreementNumber": "CR-2022-000777",
"agreementDate": "2022-06-01",
"repaymentDate": "2042-06-01",
"debtKind": "Mortgage loan",
"debtAmount": 20000,
"reportableDebtAmount": 15000,
"repaymentType": "Periodic payments in equal amounts",
"jointLiability": 2,
"interestRate": 3.2
}
]
},
{
"clientPersonId": "CLIENT-000124",
"individual": {
"firstName": "Karl",
"lastName": "Kalnins",
"otherIdentification": {
"identificationNumber": "LV123456-78901",
"type": "DOCUMENT_NUMBER",
"issuedBy": "LV",
"documentType": "LT_ID_CARD",
"birthDate": "1986-03-22"
}
},
"debts": [
{
"agreementNumber": "CR-2025-000901",
"agreementDate": "2025-01-10",
"repaymentDate": "2027-01-10",
"debtKind": "Line of credit",
"debtAmount": 5000,
"reportableDebtAmount": 4200,
"repaymentType": "End of term single payment",
"interestRate": 9.9
}
]
},
{
"clientPersonId": "CLIENT-000125",
"individual": {
"firstName": "Ona",
"lastName": "Onaite",
"personCode": "48002020001"
},
"debts": [
{
"agreementNumber": "CR-2023-000555",
"agreementDate": "2023-09-01",
"repaymentDate": "2028-09-01",
"debtKind": "Consumer credit",
"debtAmount": 1200,
"reportableDebtAmount": 800,
"repaymentType": "Periodic payments in equal amounts",
"interestRate": 8.4
}
]
}
]
'import requests
url = "https://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/skis/persons"
payload = [
{
"clientPersonId": "CLIENT-000123",
"individual": {
"firstName": "Jonas",
"lastName": "Jonaitis",
"personCode": "39001010000"
},
"debts": [
{
"agreementNumber": "CR-2024-000123",
"agreementDate": "2024-03-15",
"repaymentDate": "2029-03-15",
"debtKind": "Consumer credit",
"debtAmount": 15000,
"reportableDebtAmount": 9800.5,
"repaymentType": "Periodic payments in equal amounts",
"interestRate": 7.5
},
{
"agreementNumber": "CR-2022-000777",
"agreementDate": "2022-06-01",
"repaymentDate": "2042-06-01",
"debtKind": "Mortgage loan",
"debtAmount": 20000,
"reportableDebtAmount": 15000,
"repaymentType": "Periodic payments in equal amounts",
"jointLiability": 2,
"interestRate": 3.2
}
]
},
{
"clientPersonId": "CLIENT-000124",
"individual": {
"firstName": "Karl",
"lastName": "Kalnins",
"otherIdentification": {
"identificationNumber": "LV123456-78901",
"type": "DOCUMENT_NUMBER",
"issuedBy": "LV",
"documentType": "LT_ID_CARD",
"birthDate": "1986-03-22"
}
},
"debts": [
{
"agreementNumber": "CR-2025-000901",
"agreementDate": "2025-01-10",
"repaymentDate": "2027-01-10",
"debtKind": "Line of credit",
"debtAmount": 5000,
"reportableDebtAmount": 4200,
"repaymentType": "End of term single payment",
"interestRate": 9.9
}
]
},
{
"clientPersonId": "CLIENT-000125",
"individual": {
"firstName": "Ona",
"lastName": "Onaite",
"personCode": "48002020001"
},
"debts": [
{
"agreementNumber": "CR-2023-000555",
"agreementDate": "2023-09-01",
"repaymentDate": "2028-09-01",
"debtKind": "Consumer credit",
"debtAmount": 1200,
"reportableDebtAmount": 800,
"repaymentType": "Periodic payments in equal amounts",
"interestRate": 8.4
}
]
}
]
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'},
debts: [
{
agreementNumber: 'CR-2024-000123',
agreementDate: '2024-03-15',
repaymentDate: '2029-03-15',
debtKind: 'Consumer credit',
debtAmount: 15000,
reportableDebtAmount: 9800.5,
repaymentType: 'Periodic payments in equal amounts',
interestRate: 7.5
},
{
agreementNumber: 'CR-2022-000777',
agreementDate: '2022-06-01',
repaymentDate: '2042-06-01',
debtKind: 'Mortgage loan',
debtAmount: 20000,
reportableDebtAmount: 15000,
repaymentType: 'Periodic payments in equal amounts',
jointLiability: 2,
interestRate: 3.2
}
]
},
{
clientPersonId: 'CLIENT-000124',
individual: {
firstName: 'Karl',
lastName: 'Kalnins',
otherIdentification: {
identificationNumber: 'LV123456-78901',
type: 'DOCUMENT_NUMBER',
issuedBy: 'LV',
documentType: 'LT_ID_CARD',
birthDate: '1986-03-22'
}
},
debts: [
{
agreementNumber: 'CR-2025-000901',
agreementDate: '2025-01-10',
repaymentDate: '2027-01-10',
debtKind: 'Line of credit',
debtAmount: 5000,
reportableDebtAmount: 4200,
repaymentType: 'End of term single payment',
interestRate: 9.9
}
]
},
{
clientPersonId: 'CLIENT-000125',
individual: {firstName: 'Ona', lastName: 'Onaite', personCode: '48002020001'},
debts: [
{
agreementNumber: 'CR-2023-000555',
agreementDate: '2023-09-01',
repaymentDate: '2028-09-01',
debtKind: 'Consumer credit',
debtAmount: 1200,
reportableDebtAmount: 800,
repaymentType: 'Periodic payments in equal amounts',
interestRate: 8.4
}
]
}
])
};
fetch('https://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/skis/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}/skis/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'
],
'debts' => [
[
'agreementNumber' => 'CR-2024-000123',
'agreementDate' => '2024-03-15',
'repaymentDate' => '2029-03-15',
'debtKind' => 'Consumer credit',
'debtAmount' => 15000,
'reportableDebtAmount' => 9800.5,
'repaymentType' => 'Periodic payments in equal amounts',
'interestRate' => 7.5
],
[
'agreementNumber' => 'CR-2022-000777',
'agreementDate' => '2022-06-01',
'repaymentDate' => '2042-06-01',
'debtKind' => 'Mortgage loan',
'debtAmount' => 20000,
'reportableDebtAmount' => 15000,
'repaymentType' => 'Periodic payments in equal amounts',
'jointLiability' => 2,
'interestRate' => 3.2
]
]
],
[
'clientPersonId' => 'CLIENT-000124',
'individual' => [
'firstName' => 'Karl',
'lastName' => 'Kalnins',
'otherIdentification' => [
'identificationNumber' => 'LV123456-78901',
'type' => 'DOCUMENT_NUMBER',
'issuedBy' => 'LV',
'documentType' => 'LT_ID_CARD',
'birthDate' => '1986-03-22'
]
],
'debts' => [
[
'agreementNumber' => 'CR-2025-000901',
'agreementDate' => '2025-01-10',
'repaymentDate' => '2027-01-10',
'debtKind' => 'Line of credit',
'debtAmount' => 5000,
'reportableDebtAmount' => 4200,
'repaymentType' => 'End of term single payment',
'interestRate' => 9.9
]
]
],
[
'clientPersonId' => 'CLIENT-000125',
'individual' => [
'firstName' => 'Ona',
'lastName' => 'Onaite',
'personCode' => '48002020001'
],
'debts' => [
[
'agreementNumber' => 'CR-2023-000555',
'agreementDate' => '2023-09-01',
'repaymentDate' => '2028-09-01',
'debtKind' => 'Consumer credit',
'debtAmount' => 1200,
'reportableDebtAmount' => 800,
'repaymentType' => 'Periodic payments in equal amounts',
'interestRate' => 8.4
]
]
]
]),
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}/skis/persons"
payload := strings.NewReader("[\n {\n \"clientPersonId\": \"CLIENT-000123\",\n \"individual\": {\n \"firstName\": \"Jonas\",\n \"lastName\": \"Jonaitis\",\n \"personCode\": \"39001010000\"\n },\n \"debts\": [\n {\n \"agreementNumber\": \"CR-2024-000123\",\n \"agreementDate\": \"2024-03-15\",\n \"repaymentDate\": \"2029-03-15\",\n \"debtKind\": \"Consumer credit\",\n \"debtAmount\": 15000,\n \"reportableDebtAmount\": 9800.5,\n \"repaymentType\": \"Periodic payments in equal amounts\",\n \"interestRate\": 7.5\n },\n {\n \"agreementNumber\": \"CR-2022-000777\",\n \"agreementDate\": \"2022-06-01\",\n \"repaymentDate\": \"2042-06-01\",\n \"debtKind\": \"Mortgage loan\",\n \"debtAmount\": 20000,\n \"reportableDebtAmount\": 15000,\n \"repaymentType\": \"Periodic payments in equal amounts\",\n \"jointLiability\": 2,\n \"interestRate\": 3.2\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000124\",\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 \"debts\": [\n {\n \"agreementNumber\": \"CR-2025-000901\",\n \"agreementDate\": \"2025-01-10\",\n \"repaymentDate\": \"2027-01-10\",\n \"debtKind\": \"Line of credit\",\n \"debtAmount\": 5000,\n \"reportableDebtAmount\": 4200,\n \"repaymentType\": \"End of term single payment\",\n \"interestRate\": 9.9\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000125\",\n \"individual\": {\n \"firstName\": \"Ona\",\n \"lastName\": \"Onaite\",\n \"personCode\": \"48002020001\"\n },\n \"debts\": [\n {\n \"agreementNumber\": \"CR-2023-000555\",\n \"agreementDate\": \"2023-09-01\",\n \"repaymentDate\": \"2028-09-01\",\n \"debtKind\": \"Consumer credit\",\n \"debtAmount\": 1200,\n \"reportableDebtAmount\": 800,\n \"repaymentType\": \"Periodic payments in equal amounts\",\n \"interestRate\": 8.4\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}/skis/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 \"debts\": [\n {\n \"agreementNumber\": \"CR-2024-000123\",\n \"agreementDate\": \"2024-03-15\",\n \"repaymentDate\": \"2029-03-15\",\n \"debtKind\": \"Consumer credit\",\n \"debtAmount\": 15000,\n \"reportableDebtAmount\": 9800.5,\n \"repaymentType\": \"Periodic payments in equal amounts\",\n \"interestRate\": 7.5\n },\n {\n \"agreementNumber\": \"CR-2022-000777\",\n \"agreementDate\": \"2022-06-01\",\n \"repaymentDate\": \"2042-06-01\",\n \"debtKind\": \"Mortgage loan\",\n \"debtAmount\": 20000,\n \"reportableDebtAmount\": 15000,\n \"repaymentType\": \"Periodic payments in equal amounts\",\n \"jointLiability\": 2,\n \"interestRate\": 3.2\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000124\",\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 \"debts\": [\n {\n \"agreementNumber\": \"CR-2025-000901\",\n \"agreementDate\": \"2025-01-10\",\n \"repaymentDate\": \"2027-01-10\",\n \"debtKind\": \"Line of credit\",\n \"debtAmount\": 5000,\n \"reportableDebtAmount\": 4200,\n \"repaymentType\": \"End of term single payment\",\n \"interestRate\": 9.9\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000125\",\n \"individual\": {\n \"firstName\": \"Ona\",\n \"lastName\": \"Onaite\",\n \"personCode\": \"48002020001\"\n },\n \"debts\": [\n {\n \"agreementNumber\": \"CR-2023-000555\",\n \"agreementDate\": \"2023-09-01\",\n \"repaymentDate\": \"2028-09-01\",\n \"debtKind\": \"Consumer credit\",\n \"debtAmount\": 1200,\n \"reportableDebtAmount\": 800,\n \"repaymentType\": \"Periodic payments in equal amounts\",\n \"interestRate\": 8.4\n }\n ]\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rrc.dev.finventi.com/reports/mai55/v1/submissions/{submissionId}/skis/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 \"debts\": [\n {\n \"agreementNumber\": \"CR-2024-000123\",\n \"agreementDate\": \"2024-03-15\",\n \"repaymentDate\": \"2029-03-15\",\n \"debtKind\": \"Consumer credit\",\n \"debtAmount\": 15000,\n \"reportableDebtAmount\": 9800.5,\n \"repaymentType\": \"Periodic payments in equal amounts\",\n \"interestRate\": 7.5\n },\n {\n \"agreementNumber\": \"CR-2022-000777\",\n \"agreementDate\": \"2022-06-01\",\n \"repaymentDate\": \"2042-06-01\",\n \"debtKind\": \"Mortgage loan\",\n \"debtAmount\": 20000,\n \"reportableDebtAmount\": 15000,\n \"repaymentType\": \"Periodic payments in equal amounts\",\n \"jointLiability\": 2,\n \"interestRate\": 3.2\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000124\",\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 \"debts\": [\n {\n \"agreementNumber\": \"CR-2025-000901\",\n \"agreementDate\": \"2025-01-10\",\n \"repaymentDate\": \"2027-01-10\",\n \"debtKind\": \"Line of credit\",\n \"debtAmount\": 5000,\n \"reportableDebtAmount\": 4200,\n \"repaymentType\": \"End of term single payment\",\n \"interestRate\": 9.9\n }\n ]\n },\n {\n \"clientPersonId\": \"CLIENT-000125\",\n \"individual\": {\n \"firstName\": \"Ona\",\n \"lastName\": \"Onaite\",\n \"personCode\": \"48002020001\"\n },\n \"debts\": [\n {\n \"agreementNumber\": \"CR-2023-000555\",\n \"agreementDate\": \"2023-09-01\",\n \"repaymentDate\": \"2028-09-01\",\n \"debtKind\": \"Consumer credit\",\n \"debtAmount\": 1200,\n \"reportableDebtAmount\": 800,\n \"repaymentType\": \"Periodic payments in equal amounts\",\n \"interestRate\": 8.4\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": [
"debts[0]"
],
"message": "repaymentDate must be after agreementDate."
}
]
}
][
{
"status": "FAILED",
"clientPersonId": "CLIENT-000123",
"errors": [
{
"fields": [
"individual"
],
"message": "Provide exactly one of personCode or otherIdentification."
}
]
}
]clientPersonId, echoed back in the result, with every debt they owe 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.
255Path Parameters
Body
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.
255"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 the person's debts. The total the person owes at the end of the reporting year is reported as the sum of their reportableDebtAmount, so it is derived from this list rather than sent.
1 - 1000 elementsShow child attributes
Show child attributes
Response
All persons saved