curl --request POST \
--url https://api.casparser.in/v1/rta-sync/reconcile \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"reference": "distributor_123",
"current": {
"schema_version": "rta-sync.v1",
"key_version": "rta-key.v1",
"batch_key": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"reference": "jan-2026-mfd-001",
"files": [
{
"file_index": 0,
"filename": "kfintech-feed.csv",
"provider": "kfintech",
"report_code": "MFSD221",
"report_family": "transaction_investor_master",
"detection_confidence": "strong",
"source_sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"mapping_version": "rta-sync-2026-08",
"source_schema": "kfintech_format1",
"data_sets": [
{
"object_type": "investor",
"record_count": 1,
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
],
"records": [
{
"record_type": "investor",
"record_key": "<string>",
"provenance": {
"source_rows": [
{
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
}
],
"source_fields": {}
},
"relations": [
{
"record_key": "<string>"
}
],
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
],
"pan": "<string>",
"source_record_key": "<string>",
"investor_name": "<string>",
"email": "<string>",
"mobile": "<string>",
"kyc_status": "<string>",
"broker_code": "<string>",
"sub_broker_code": "<string>",
"euin": "<string>"
}
]
}
],
"rejected_rows": [
{
"source_row": {
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
},
"code": "MISSING_REQUIRED_FIELD",
"message": "<string>",
"source_fields": {},
"fields": [
"<string>"
]
}
],
"summary": {
"source_rows": 1000,
"output_records": 998,
"rejected_rows": 2,
"warning_count": 4
},
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
]
}
],
"summary": {
"source_rows": 1000,
"output_records": 998,
"rejected_rows": 2,
"warning_count": 4,
"input_files": 1
},
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
]
},
"previous": {
"schema_version": "rta-sync.v1",
"key_version": "rta-key.v1",
"batch_key": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"reference": "jan-2026-mfd-001",
"files": [
{
"file_index": 0,
"filename": "kfintech-feed.csv",
"provider": "kfintech",
"report_code": "MFSD221",
"report_family": "transaction_investor_master",
"detection_confidence": "strong",
"source_sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"mapping_version": "rta-sync-2026-08",
"source_schema": "kfintech_format1",
"data_sets": [
{
"object_type": "investor",
"record_count": 1,
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
],
"records": [
{
"record_type": "investor",
"record_key": "<string>",
"provenance": {
"source_rows": [
{
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
}
],
"source_fields": {}
},
"relations": [
{
"record_key": "<string>"
}
],
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
],
"pan": "<string>",
"source_record_key": "<string>",
"investor_name": "<string>",
"email": "<string>",
"mobile": "<string>",
"kyc_status": "<string>",
"broker_code": "<string>",
"sub_broker_code": "<string>",
"euin": "<string>"
}
]
}
],
"rejected_rows": [
{
"source_row": {
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
},
"code": "MISSING_REQUIRED_FIELD",
"message": "<string>",
"source_fields": {},
"fields": [
"<string>"
]
}
],
"summary": {
"source_rows": 1000,
"output_records": 998,
"rejected_rows": 2,
"warning_count": 4
},
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
]
}
],
"summary": {
"source_rows": 1000,
"output_records": 998,
"rejected_rows": 2,
"warning_count": 4,
"input_files": 1
},
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
]
},
"scope": {
"mode": "snapshot",
"providers": [],
"report_families": [
"<string>"
],
"current": {
"complete": true,
"as_of_date": "2023-12-25"
},
"previous": {
"complete": true,
"as_of_date": "2023-12-25"
}
},
"mapping_policy": "require_same",
"object_types": []
}
'import requests
url = "https://api.casparser.in/v1/rta-sync/reconcile"
payload = {
"reference": "distributor_123",
"current": {
"schema_version": "rta-sync.v1",
"key_version": "rta-key.v1",
"batch_key": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"reference": "jan-2026-mfd-001",
"files": [
{
"file_index": 0,
"filename": "kfintech-feed.csv",
"provider": "kfintech",
"report_code": "MFSD221",
"report_family": "transaction_investor_master",
"detection_confidence": "strong",
"source_sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"mapping_version": "rta-sync-2026-08",
"source_schema": "kfintech_format1",
"data_sets": [
{
"object_type": "investor",
"record_count": 1,
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": ["transaction_id"]
}
],
"records": [
{
"record_type": "investor",
"record_key": "<string>",
"provenance": {
"source_rows": [
{
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
}
],
"source_fields": {}
},
"relations": [{ "record_key": "<string>" }],
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": ["transaction_id"]
}
],
"pan": "<string>",
"source_record_key": "<string>",
"investor_name": "<string>",
"email": "<string>",
"mobile": "<string>",
"kyc_status": "<string>",
"broker_code": "<string>",
"sub_broker_code": "<string>",
"euin": "<string>"
}
]
}
],
"rejected_rows": [
{
"source_row": {
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
},
"code": "MISSING_REQUIRED_FIELD",
"message": "<string>",
"source_fields": {},
"fields": ["<string>"]
}
],
"summary": {
"source_rows": 1000,
"output_records": 998,
"rejected_rows": 2,
"warning_count": 4
},
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": ["transaction_id"]
}
]
}
],
"summary": {
"source_rows": 1000,
"output_records": 998,
"rejected_rows": 2,
"warning_count": 4,
"input_files": 1
},
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": ["transaction_id"]
}
]
},
"previous": {
"schema_version": "rta-sync.v1",
"key_version": "rta-key.v1",
"batch_key": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"reference": "jan-2026-mfd-001",
"files": [
{
"file_index": 0,
"filename": "kfintech-feed.csv",
"provider": "kfintech",
"report_code": "MFSD221",
"report_family": "transaction_investor_master",
"detection_confidence": "strong",
"source_sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"mapping_version": "rta-sync-2026-08",
"source_schema": "kfintech_format1",
"data_sets": [
{
"object_type": "investor",
"record_count": 1,
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": ["transaction_id"]
}
],
"records": [
{
"record_type": "investor",
"record_key": "<string>",
"provenance": {
"source_rows": [
{
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
}
],
"source_fields": {}
},
"relations": [{ "record_key": "<string>" }],
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": ["transaction_id"]
}
],
"pan": "<string>",
"source_record_key": "<string>",
"investor_name": "<string>",
"email": "<string>",
"mobile": "<string>",
"kyc_status": "<string>",
"broker_code": "<string>",
"sub_broker_code": "<string>",
"euin": "<string>"
}
]
}
],
"rejected_rows": [
{
"source_row": {
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
},
"code": "MISSING_REQUIRED_FIELD",
"message": "<string>",
"source_fields": {},
"fields": ["<string>"]
}
],
"summary": {
"source_rows": 1000,
"output_records": 998,
"rejected_rows": 2,
"warning_count": 4
},
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": ["transaction_id"]
}
]
}
],
"summary": {
"source_rows": 1000,
"output_records": 998,
"rejected_rows": 2,
"warning_count": 4,
"input_files": 1
},
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": ["transaction_id"]
}
]
},
"scope": {
"mode": "snapshot",
"providers": [],
"report_families": ["<string>"],
"current": {
"complete": True,
"as_of_date": "2023-12-25"
},
"previous": {
"complete": True,
"as_of_date": "2023-12-25"
}
},
"mapping_policy": "require_same",
"object_types": []
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
reference: 'distributor_123',
current: {
schema_version: 'rta-sync.v1',
key_version: 'rta-key.v1',
batch_key: 'sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef',
reference: 'jan-2026-mfd-001',
files: [
{
file_index: 0,
filename: 'kfintech-feed.csv',
provider: 'kfintech',
report_code: 'MFSD221',
report_family: 'transaction_investor_master',
detection_confidence: 'strong',
source_sha256: '0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef',
mapping_version: 'rta-sync-2026-08',
source_schema: 'kfintech_format1',
data_sets: [
{
object_type: 'investor',
record_count: 1,
warnings: [
{
code: 'MISSING_TRANSACTION_ID',
message: 'The source row has no provider transaction ID; record identity may be weak.',
row_number: 42,
fields: ['transaction_id']
}
],
records: [
{
record_type: 'investor',
record_key: '<string>',
provenance: {
source_rows: [{row_number: 2, sheet: '<string>', source_row_key: '<string>'}],
source_fields: {}
},
relations: [{record_key: '<string>'}],
warnings: [
{
code: 'MISSING_TRANSACTION_ID',
message: 'The source row has no provider transaction ID; record identity may be weak.',
row_number: 42,
fields: ['transaction_id']
}
],
pan: '<string>',
source_record_key: '<string>',
investor_name: '<string>',
email: '<string>',
mobile: '<string>',
kyc_status: '<string>',
broker_code: '<string>',
sub_broker_code: '<string>',
euin: '<string>'
}
]
}
],
rejected_rows: [
{
source_row: {row_number: 2, sheet: '<string>', source_row_key: '<string>'},
code: 'MISSING_REQUIRED_FIELD',
message: '<string>',
source_fields: {},
fields: ['<string>']
}
],
summary: {source_rows: 1000, output_records: 998, rejected_rows: 2, warning_count: 4},
warnings: [
{
code: 'MISSING_TRANSACTION_ID',
message: 'The source row has no provider transaction ID; record identity may be weak.',
row_number: 42,
fields: ['transaction_id']
}
]
}
],
summary: {
source_rows: 1000,
output_records: 998,
rejected_rows: 2,
warning_count: 4,
input_files: 1
},
warnings: [
{
code: 'MISSING_TRANSACTION_ID',
message: 'The source row has no provider transaction ID; record identity may be weak.',
row_number: 42,
fields: ['transaction_id']
}
]
},
previous: {
schema_version: 'rta-sync.v1',
key_version: 'rta-key.v1',
batch_key: 'sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef',
reference: 'jan-2026-mfd-001',
files: [
{
file_index: 0,
filename: 'kfintech-feed.csv',
provider: 'kfintech',
report_code: 'MFSD221',
report_family: 'transaction_investor_master',
detection_confidence: 'strong',
source_sha256: '0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef',
mapping_version: 'rta-sync-2026-08',
source_schema: 'kfintech_format1',
data_sets: [
{
object_type: 'investor',
record_count: 1,
warnings: [
{
code: 'MISSING_TRANSACTION_ID',
message: 'The source row has no provider transaction ID; record identity may be weak.',
row_number: 42,
fields: ['transaction_id']
}
],
records: [
{
record_type: 'investor',
record_key: '<string>',
provenance: {
source_rows: [{row_number: 2, sheet: '<string>', source_row_key: '<string>'}],
source_fields: {}
},
relations: [{record_key: '<string>'}],
warnings: [
{
code: 'MISSING_TRANSACTION_ID',
message: 'The source row has no provider transaction ID; record identity may be weak.',
row_number: 42,
fields: ['transaction_id']
}
],
pan: '<string>',
source_record_key: '<string>',
investor_name: '<string>',
email: '<string>',
mobile: '<string>',
kyc_status: '<string>',
broker_code: '<string>',
sub_broker_code: '<string>',
euin: '<string>'
}
]
}
],
rejected_rows: [
{
source_row: {row_number: 2, sheet: '<string>', source_row_key: '<string>'},
code: 'MISSING_REQUIRED_FIELD',
message: '<string>',
source_fields: {},
fields: ['<string>']
}
],
summary: {source_rows: 1000, output_records: 998, rejected_rows: 2, warning_count: 4},
warnings: [
{
code: 'MISSING_TRANSACTION_ID',
message: 'The source row has no provider transaction ID; record identity may be weak.',
row_number: 42,
fields: ['transaction_id']
}
]
}
],
summary: {
source_rows: 1000,
output_records: 998,
rejected_rows: 2,
warning_count: 4,
input_files: 1
},
warnings: [
{
code: 'MISSING_TRANSACTION_ID',
message: 'The source row has no provider transaction ID; record identity may be weak.',
row_number: 42,
fields: ['transaction_id']
}
]
},
scope: {
mode: 'snapshot',
providers: [],
report_families: ['<string>'],
current: {complete: true, as_of_date: '2023-12-25'},
previous: {complete: true, as_of_date: '2023-12-25'}
},
mapping_policy: 'require_same',
object_types: []
})
};
fetch('https://api.casparser.in/v1/rta-sync/reconcile', 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.casparser.in/v1/rta-sync/reconcile",
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([
'reference' => 'distributor_123',
'current' => [
'schema_version' => 'rta-sync.v1',
'key_version' => 'rta-key.v1',
'batch_key' => 'sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef',
'reference' => 'jan-2026-mfd-001',
'files' => [
[
'file_index' => 0,
'filename' => 'kfintech-feed.csv',
'provider' => 'kfintech',
'report_code' => 'MFSD221',
'report_family' => 'transaction_investor_master',
'detection_confidence' => 'strong',
'source_sha256' => '0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef',
'mapping_version' => 'rta-sync-2026-08',
'source_schema' => 'kfintech_format1',
'data_sets' => [
[
'object_type' => 'investor',
'record_count' => 1,
'warnings' => [
[
'code' => 'MISSING_TRANSACTION_ID',
'message' => 'The source row has no provider transaction ID; record identity may be weak.',
'row_number' => 42,
'fields' => [
'transaction_id'
]
]
],
'records' => [
[
'record_type' => 'investor',
'record_key' => '<string>',
'provenance' => [
'source_rows' => [
[
'row_number' => 2,
'sheet' => '<string>',
'source_row_key' => '<string>'
]
],
'source_fields' => [
]
],
'relations' => [
[
'record_key' => '<string>'
]
],
'warnings' => [
[
'code' => 'MISSING_TRANSACTION_ID',
'message' => 'The source row has no provider transaction ID; record identity may be weak.',
'row_number' => 42,
'fields' => [
'transaction_id'
]
]
],
'pan' => '<string>',
'source_record_key' => '<string>',
'investor_name' => '<string>',
'email' => '<string>',
'mobile' => '<string>',
'kyc_status' => '<string>',
'broker_code' => '<string>',
'sub_broker_code' => '<string>',
'euin' => '<string>'
]
]
]
],
'rejected_rows' => [
[
'source_row' => [
'row_number' => 2,
'sheet' => '<string>',
'source_row_key' => '<string>'
],
'code' => 'MISSING_REQUIRED_FIELD',
'message' => '<string>',
'source_fields' => [
],
'fields' => [
'<string>'
]
]
],
'summary' => [
'source_rows' => 1000,
'output_records' => 998,
'rejected_rows' => 2,
'warning_count' => 4
],
'warnings' => [
[
'code' => 'MISSING_TRANSACTION_ID',
'message' => 'The source row has no provider transaction ID; record identity may be weak.',
'row_number' => 42,
'fields' => [
'transaction_id'
]
]
]
]
],
'summary' => [
'source_rows' => 1000,
'output_records' => 998,
'rejected_rows' => 2,
'warning_count' => 4,
'input_files' => 1
],
'warnings' => [
[
'code' => 'MISSING_TRANSACTION_ID',
'message' => 'The source row has no provider transaction ID; record identity may be weak.',
'row_number' => 42,
'fields' => [
'transaction_id'
]
]
]
],
'previous' => [
'schema_version' => 'rta-sync.v1',
'key_version' => 'rta-key.v1',
'batch_key' => 'sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef',
'reference' => 'jan-2026-mfd-001',
'files' => [
[
'file_index' => 0,
'filename' => 'kfintech-feed.csv',
'provider' => 'kfintech',
'report_code' => 'MFSD221',
'report_family' => 'transaction_investor_master',
'detection_confidence' => 'strong',
'source_sha256' => '0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef',
'mapping_version' => 'rta-sync-2026-08',
'source_schema' => 'kfintech_format1',
'data_sets' => [
[
'object_type' => 'investor',
'record_count' => 1,
'warnings' => [
[
'code' => 'MISSING_TRANSACTION_ID',
'message' => 'The source row has no provider transaction ID; record identity may be weak.',
'row_number' => 42,
'fields' => [
'transaction_id'
]
]
],
'records' => [
[
'record_type' => 'investor',
'record_key' => '<string>',
'provenance' => [
'source_rows' => [
[
'row_number' => 2,
'sheet' => '<string>',
'source_row_key' => '<string>'
]
],
'source_fields' => [
]
],
'relations' => [
[
'record_key' => '<string>'
]
],
'warnings' => [
[
'code' => 'MISSING_TRANSACTION_ID',
'message' => 'The source row has no provider transaction ID; record identity may be weak.',
'row_number' => 42,
'fields' => [
'transaction_id'
]
]
],
'pan' => '<string>',
'source_record_key' => '<string>',
'investor_name' => '<string>',
'email' => '<string>',
'mobile' => '<string>',
'kyc_status' => '<string>',
'broker_code' => '<string>',
'sub_broker_code' => '<string>',
'euin' => '<string>'
]
]
]
],
'rejected_rows' => [
[
'source_row' => [
'row_number' => 2,
'sheet' => '<string>',
'source_row_key' => '<string>'
],
'code' => 'MISSING_REQUIRED_FIELD',
'message' => '<string>',
'source_fields' => [
],
'fields' => [
'<string>'
]
]
],
'summary' => [
'source_rows' => 1000,
'output_records' => 998,
'rejected_rows' => 2,
'warning_count' => 4
],
'warnings' => [
[
'code' => 'MISSING_TRANSACTION_ID',
'message' => 'The source row has no provider transaction ID; record identity may be weak.',
'row_number' => 42,
'fields' => [
'transaction_id'
]
]
]
]
],
'summary' => [
'source_rows' => 1000,
'output_records' => 998,
'rejected_rows' => 2,
'warning_count' => 4,
'input_files' => 1
],
'warnings' => [
[
'code' => 'MISSING_TRANSACTION_ID',
'message' => 'The source row has no provider transaction ID; record identity may be weak.',
'row_number' => 42,
'fields' => [
'transaction_id'
]
]
]
],
'scope' => [
'mode' => 'snapshot',
'providers' => [
],
'report_families' => [
'<string>'
],
'current' => [
'complete' => true,
'as_of_date' => '2023-12-25'
],
'previous' => [
'complete' => true,
'as_of_date' => '2023-12-25'
]
],
'mapping_policy' => 'require_same',
'object_types' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.casparser.in/v1/rta-sync/reconcile"
payload := strings.NewReader("{\n \"reference\": \"distributor_123\",\n \"current\": {\n \"schema_version\": \"rta-sync.v1\",\n \"key_version\": \"rta-key.v1\",\n \"batch_key\": \"sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"reference\": \"jan-2026-mfd-001\",\n \"files\": [\n {\n \"file_index\": 0,\n \"filename\": \"kfintech-feed.csv\",\n \"provider\": \"kfintech\",\n \"report_code\": \"MFSD221\",\n \"report_family\": \"transaction_investor_master\",\n \"detection_confidence\": \"strong\",\n \"source_sha256\": \"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"mapping_version\": \"rta-sync-2026-08\",\n \"source_schema\": \"kfintech_format1\",\n \"data_sets\": [\n {\n \"object_type\": \"investor\",\n \"record_count\": 1,\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"records\": [\n {\n \"record_type\": \"investor\",\n \"record_key\": \"<string>\",\n \"provenance\": {\n \"source_rows\": [\n {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n }\n ],\n \"source_fields\": {}\n },\n \"relations\": [\n {\n \"record_key\": \"<string>\"\n }\n ],\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"pan\": \"<string>\",\n \"source_record_key\": \"<string>\",\n \"investor_name\": \"<string>\",\n \"email\": \"<string>\",\n \"mobile\": \"<string>\",\n \"kyc_status\": \"<string>\",\n \"broker_code\": \"<string>\",\n \"sub_broker_code\": \"<string>\",\n \"euin\": \"<string>\"\n }\n ]\n }\n ],\n \"rejected_rows\": [\n {\n \"source_row\": {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n },\n \"code\": \"MISSING_REQUIRED_FIELD\",\n \"message\": \"<string>\",\n \"source_fields\": {},\n \"fields\": [\n \"<string>\"\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4,\n \"input_files\": 1\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n },\n \"previous\": {\n \"schema_version\": \"rta-sync.v1\",\n \"key_version\": \"rta-key.v1\",\n \"batch_key\": \"sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"reference\": \"jan-2026-mfd-001\",\n \"files\": [\n {\n \"file_index\": 0,\n \"filename\": \"kfintech-feed.csv\",\n \"provider\": \"kfintech\",\n \"report_code\": \"MFSD221\",\n \"report_family\": \"transaction_investor_master\",\n \"detection_confidence\": \"strong\",\n \"source_sha256\": \"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"mapping_version\": \"rta-sync-2026-08\",\n \"source_schema\": \"kfintech_format1\",\n \"data_sets\": [\n {\n \"object_type\": \"investor\",\n \"record_count\": 1,\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"records\": [\n {\n \"record_type\": \"investor\",\n \"record_key\": \"<string>\",\n \"provenance\": {\n \"source_rows\": [\n {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n }\n ],\n \"source_fields\": {}\n },\n \"relations\": [\n {\n \"record_key\": \"<string>\"\n }\n ],\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"pan\": \"<string>\",\n \"source_record_key\": \"<string>\",\n \"investor_name\": \"<string>\",\n \"email\": \"<string>\",\n \"mobile\": \"<string>\",\n \"kyc_status\": \"<string>\",\n \"broker_code\": \"<string>\",\n \"sub_broker_code\": \"<string>\",\n \"euin\": \"<string>\"\n }\n ]\n }\n ],\n \"rejected_rows\": [\n {\n \"source_row\": {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n },\n \"code\": \"MISSING_REQUIRED_FIELD\",\n \"message\": \"<string>\",\n \"source_fields\": {},\n \"fields\": [\n \"<string>\"\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4,\n \"input_files\": 1\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n },\n \"scope\": {\n \"mode\": \"snapshot\",\n \"providers\": [],\n \"report_families\": [\n \"<string>\"\n ],\n \"current\": {\n \"complete\": true,\n \"as_of_date\": \"2023-12-25\"\n },\n \"previous\": {\n \"complete\": true,\n \"as_of_date\": \"2023-12-25\"\n }\n },\n \"mapping_policy\": \"require_same\",\n \"object_types\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.casparser.in/v1/rta-sync/reconcile")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reference\": \"distributor_123\",\n \"current\": {\n \"schema_version\": \"rta-sync.v1\",\n \"key_version\": \"rta-key.v1\",\n \"batch_key\": \"sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"reference\": \"jan-2026-mfd-001\",\n \"files\": [\n {\n \"file_index\": 0,\n \"filename\": \"kfintech-feed.csv\",\n \"provider\": \"kfintech\",\n \"report_code\": \"MFSD221\",\n \"report_family\": \"transaction_investor_master\",\n \"detection_confidence\": \"strong\",\n \"source_sha256\": \"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"mapping_version\": \"rta-sync-2026-08\",\n \"source_schema\": \"kfintech_format1\",\n \"data_sets\": [\n {\n \"object_type\": \"investor\",\n \"record_count\": 1,\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"records\": [\n {\n \"record_type\": \"investor\",\n \"record_key\": \"<string>\",\n \"provenance\": {\n \"source_rows\": [\n {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n }\n ],\n \"source_fields\": {}\n },\n \"relations\": [\n {\n \"record_key\": \"<string>\"\n }\n ],\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"pan\": \"<string>\",\n \"source_record_key\": \"<string>\",\n \"investor_name\": \"<string>\",\n \"email\": \"<string>\",\n \"mobile\": \"<string>\",\n \"kyc_status\": \"<string>\",\n \"broker_code\": \"<string>\",\n \"sub_broker_code\": \"<string>\",\n \"euin\": \"<string>\"\n }\n ]\n }\n ],\n \"rejected_rows\": [\n {\n \"source_row\": {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n },\n \"code\": \"MISSING_REQUIRED_FIELD\",\n \"message\": \"<string>\",\n \"source_fields\": {},\n \"fields\": [\n \"<string>\"\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4,\n \"input_files\": 1\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n },\n \"previous\": {\n \"schema_version\": \"rta-sync.v1\",\n \"key_version\": \"rta-key.v1\",\n \"batch_key\": \"sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"reference\": \"jan-2026-mfd-001\",\n \"files\": [\n {\n \"file_index\": 0,\n \"filename\": \"kfintech-feed.csv\",\n \"provider\": \"kfintech\",\n \"report_code\": \"MFSD221\",\n \"report_family\": \"transaction_investor_master\",\n \"detection_confidence\": \"strong\",\n \"source_sha256\": \"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"mapping_version\": \"rta-sync-2026-08\",\n \"source_schema\": \"kfintech_format1\",\n \"data_sets\": [\n {\n \"object_type\": \"investor\",\n \"record_count\": 1,\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"records\": [\n {\n \"record_type\": \"investor\",\n \"record_key\": \"<string>\",\n \"provenance\": {\n \"source_rows\": [\n {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n }\n ],\n \"source_fields\": {}\n },\n \"relations\": [\n {\n \"record_key\": \"<string>\"\n }\n ],\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"pan\": \"<string>\",\n \"source_record_key\": \"<string>\",\n \"investor_name\": \"<string>\",\n \"email\": \"<string>\",\n \"mobile\": \"<string>\",\n \"kyc_status\": \"<string>\",\n \"broker_code\": \"<string>\",\n \"sub_broker_code\": \"<string>\",\n \"euin\": \"<string>\"\n }\n ]\n }\n ],\n \"rejected_rows\": [\n {\n \"source_row\": {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n },\n \"code\": \"MISSING_REQUIRED_FIELD\",\n \"message\": \"<string>\",\n \"source_fields\": {},\n \"fields\": [\n \"<string>\"\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4,\n \"input_files\": 1\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n },\n \"scope\": {\n \"mode\": \"snapshot\",\n \"providers\": [],\n \"report_families\": [\n \"<string>\"\n ],\n \"current\": {\n \"complete\": true,\n \"as_of_date\": \"2023-12-25\"\n },\n \"previous\": {\n \"complete\": true,\n \"as_of_date\": \"2023-12-25\"\n }\n },\n \"mapping_policy\": \"require_same\",\n \"object_types\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.casparser.in/v1/rta-sync/reconcile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reference\": \"distributor_123\",\n \"current\": {\n \"schema_version\": \"rta-sync.v1\",\n \"key_version\": \"rta-key.v1\",\n \"batch_key\": \"sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"reference\": \"jan-2026-mfd-001\",\n \"files\": [\n {\n \"file_index\": 0,\n \"filename\": \"kfintech-feed.csv\",\n \"provider\": \"kfintech\",\n \"report_code\": \"MFSD221\",\n \"report_family\": \"transaction_investor_master\",\n \"detection_confidence\": \"strong\",\n \"source_sha256\": \"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"mapping_version\": \"rta-sync-2026-08\",\n \"source_schema\": \"kfintech_format1\",\n \"data_sets\": [\n {\n \"object_type\": \"investor\",\n \"record_count\": 1,\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"records\": [\n {\n \"record_type\": \"investor\",\n \"record_key\": \"<string>\",\n \"provenance\": {\n \"source_rows\": [\n {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n }\n ],\n \"source_fields\": {}\n },\n \"relations\": [\n {\n \"record_key\": \"<string>\"\n }\n ],\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"pan\": \"<string>\",\n \"source_record_key\": \"<string>\",\n \"investor_name\": \"<string>\",\n \"email\": \"<string>\",\n \"mobile\": \"<string>\",\n \"kyc_status\": \"<string>\",\n \"broker_code\": \"<string>\",\n \"sub_broker_code\": \"<string>\",\n \"euin\": \"<string>\"\n }\n ]\n }\n ],\n \"rejected_rows\": [\n {\n \"source_row\": {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n },\n \"code\": \"MISSING_REQUIRED_FIELD\",\n \"message\": \"<string>\",\n \"source_fields\": {},\n \"fields\": [\n \"<string>\"\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4,\n \"input_files\": 1\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n },\n \"previous\": {\n \"schema_version\": \"rta-sync.v1\",\n \"key_version\": \"rta-key.v1\",\n \"batch_key\": \"sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"reference\": \"jan-2026-mfd-001\",\n \"files\": [\n {\n \"file_index\": 0,\n \"filename\": \"kfintech-feed.csv\",\n \"provider\": \"kfintech\",\n \"report_code\": \"MFSD221\",\n \"report_family\": \"transaction_investor_master\",\n \"detection_confidence\": \"strong\",\n \"source_sha256\": \"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"mapping_version\": \"rta-sync-2026-08\",\n \"source_schema\": \"kfintech_format1\",\n \"data_sets\": [\n {\n \"object_type\": \"investor\",\n \"record_count\": 1,\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"records\": [\n {\n \"record_type\": \"investor\",\n \"record_key\": \"<string>\",\n \"provenance\": {\n \"source_rows\": [\n {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n }\n ],\n \"source_fields\": {}\n },\n \"relations\": [\n {\n \"record_key\": \"<string>\"\n }\n ],\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"pan\": \"<string>\",\n \"source_record_key\": \"<string>\",\n \"investor_name\": \"<string>\",\n \"email\": \"<string>\",\n \"mobile\": \"<string>\",\n \"kyc_status\": \"<string>\",\n \"broker_code\": \"<string>\",\n \"sub_broker_code\": \"<string>\",\n \"euin\": \"<string>\"\n }\n ]\n }\n ],\n \"rejected_rows\": [\n {\n \"source_row\": {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n },\n \"code\": \"MISSING_REQUIRED_FIELD\",\n \"message\": \"<string>\",\n \"source_fields\": {},\n \"fields\": [\n \"<string>\"\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4,\n \"input_files\": 1\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n },\n \"scope\": {\n \"mode\": \"snapshot\",\n \"providers\": [],\n \"report_families\": [\n \"<string>\"\n ],\n \"current\": {\n \"complete\": true,\n \"as_of_date\": \"2023-12-25\"\n },\n \"previous\": {\n \"complete\": true,\n \"as_of_date\": \"2023-12-25\"\n }\n },\n \"mapping_policy\": \"require_same\",\n \"object_types\": []\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"reference": "distributor_123",
"scope": {
"mode": "snapshot",
"providers": [
"cams"
],
"report_families": [
"<string>"
],
"current": {
"complete": true,
"period": {
"from": "2023-12-25",
"to": "2023-12-25"
},
"as_of_date": "2023-12-25"
},
"previous": {
"complete": true,
"period": {
"from": "2023-12-25",
"to": "2023-12-25"
},
"as_of_date": "2023-12-25"
}
},
"mapping_policy": "require_same",
"results": [
{
"object_type": "investor",
"classification": "changed",
"current_record_key": "kfintech:1227:0:91046479506:2026-01-15",
"previous_record_key": "kfintech:1227:0:91046479506:2026-01-15",
"duplicate_of_record_key": "<string>",
"reversal_of_record_key": "<string>",
"comparison_side": "current",
"unmatched_reason": "<string>",
"changes": [
{
"field": "/amount",
"before": "1000.00",
"after": "1002.50"
}
],
"current_record": {
"record_type": "investor",
"record_key": "<string>",
"identity_quality": "strong",
"provenance": {
"source_rows": [
{
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
}
],
"source_fields": {}
},
"relations": [
{
"type": "reverses",
"record_key": "<string>"
}
],
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
],
"pan": "<string>",
"source_record_key": "<string>",
"investor_name": "<string>",
"email": "<string>",
"mobile": "<string>",
"kyc_status": "<string>",
"broker_code": "<string>",
"sub_broker_code": "<string>",
"euin": "<string>"
},
"previous_record": {
"record_type": "investor",
"record_key": "<string>",
"identity_quality": "strong",
"provenance": {
"source_rows": [
{
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
}
],
"source_fields": {}
},
"relations": [
{
"type": "reverses",
"record_key": "<string>"
}
],
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
],
"pan": "<string>",
"source_record_key": "<string>",
"investor_name": "<string>",
"email": "<string>",
"mobile": "<string>",
"kyc_status": "<string>",
"broker_code": "<string>",
"sub_broker_code": "<string>",
"euin": "<string>"
}
}
],
"summary": {
"total": 1000,
"new_count": 20,
"unchanged_count": 950,
"changed_count": 10,
"duplicate_count": 5,
"reversed_count": 3,
"removed_count": 2,
"unmatched_count": 10
}
}
}{
"status": "failed",
"msg": "Invalid PDF file or password."
}{
"status": "failed",
"msg": "Authentication failed: API key is missing. Please provide a valid API key in the x-api-key header."
}{
"status": "failed",
"msg": "Authentication failed: API quota exceeded or invalid API key. Please check your API key or quota limits."
}{
"status": "failed",
"msg": "Invalid PDF file or password."
}Reconcile normalized RTA batches
Compare a current normalized RTA batch with a previous normalized batch supplied by the caller. The endpoint returns record-level classifications for new, unchanged, changed, duplicate, reversed, removed, and unmatched records. Removed classifications are emitted only for complete snapshot comparisons. It does not retain either batch.
curl --request POST \
--url https://api.casparser.in/v1/rta-sync/reconcile \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"reference": "distributor_123",
"current": {
"schema_version": "rta-sync.v1",
"key_version": "rta-key.v1",
"batch_key": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"reference": "jan-2026-mfd-001",
"files": [
{
"file_index": 0,
"filename": "kfintech-feed.csv",
"provider": "kfintech",
"report_code": "MFSD221",
"report_family": "transaction_investor_master",
"detection_confidence": "strong",
"source_sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"mapping_version": "rta-sync-2026-08",
"source_schema": "kfintech_format1",
"data_sets": [
{
"object_type": "investor",
"record_count": 1,
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
],
"records": [
{
"record_type": "investor",
"record_key": "<string>",
"provenance": {
"source_rows": [
{
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
}
],
"source_fields": {}
},
"relations": [
{
"record_key": "<string>"
}
],
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
],
"pan": "<string>",
"source_record_key": "<string>",
"investor_name": "<string>",
"email": "<string>",
"mobile": "<string>",
"kyc_status": "<string>",
"broker_code": "<string>",
"sub_broker_code": "<string>",
"euin": "<string>"
}
]
}
],
"rejected_rows": [
{
"source_row": {
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
},
"code": "MISSING_REQUIRED_FIELD",
"message": "<string>",
"source_fields": {},
"fields": [
"<string>"
]
}
],
"summary": {
"source_rows": 1000,
"output_records": 998,
"rejected_rows": 2,
"warning_count": 4
},
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
]
}
],
"summary": {
"source_rows": 1000,
"output_records": 998,
"rejected_rows": 2,
"warning_count": 4,
"input_files": 1
},
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
]
},
"previous": {
"schema_version": "rta-sync.v1",
"key_version": "rta-key.v1",
"batch_key": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"reference": "jan-2026-mfd-001",
"files": [
{
"file_index": 0,
"filename": "kfintech-feed.csv",
"provider": "kfintech",
"report_code": "MFSD221",
"report_family": "transaction_investor_master",
"detection_confidence": "strong",
"source_sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"mapping_version": "rta-sync-2026-08",
"source_schema": "kfintech_format1",
"data_sets": [
{
"object_type": "investor",
"record_count": 1,
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
],
"records": [
{
"record_type": "investor",
"record_key": "<string>",
"provenance": {
"source_rows": [
{
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
}
],
"source_fields": {}
},
"relations": [
{
"record_key": "<string>"
}
],
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
],
"pan": "<string>",
"source_record_key": "<string>",
"investor_name": "<string>",
"email": "<string>",
"mobile": "<string>",
"kyc_status": "<string>",
"broker_code": "<string>",
"sub_broker_code": "<string>",
"euin": "<string>"
}
]
}
],
"rejected_rows": [
{
"source_row": {
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
},
"code": "MISSING_REQUIRED_FIELD",
"message": "<string>",
"source_fields": {},
"fields": [
"<string>"
]
}
],
"summary": {
"source_rows": 1000,
"output_records": 998,
"rejected_rows": 2,
"warning_count": 4
},
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
]
}
],
"summary": {
"source_rows": 1000,
"output_records": 998,
"rejected_rows": 2,
"warning_count": 4,
"input_files": 1
},
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
]
},
"scope": {
"mode": "snapshot",
"providers": [],
"report_families": [
"<string>"
],
"current": {
"complete": true,
"as_of_date": "2023-12-25"
},
"previous": {
"complete": true,
"as_of_date": "2023-12-25"
}
},
"mapping_policy": "require_same",
"object_types": []
}
'import requests
url = "https://api.casparser.in/v1/rta-sync/reconcile"
payload = {
"reference": "distributor_123",
"current": {
"schema_version": "rta-sync.v1",
"key_version": "rta-key.v1",
"batch_key": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"reference": "jan-2026-mfd-001",
"files": [
{
"file_index": 0,
"filename": "kfintech-feed.csv",
"provider": "kfintech",
"report_code": "MFSD221",
"report_family": "transaction_investor_master",
"detection_confidence": "strong",
"source_sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"mapping_version": "rta-sync-2026-08",
"source_schema": "kfintech_format1",
"data_sets": [
{
"object_type": "investor",
"record_count": 1,
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": ["transaction_id"]
}
],
"records": [
{
"record_type": "investor",
"record_key": "<string>",
"provenance": {
"source_rows": [
{
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
}
],
"source_fields": {}
},
"relations": [{ "record_key": "<string>" }],
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": ["transaction_id"]
}
],
"pan": "<string>",
"source_record_key": "<string>",
"investor_name": "<string>",
"email": "<string>",
"mobile": "<string>",
"kyc_status": "<string>",
"broker_code": "<string>",
"sub_broker_code": "<string>",
"euin": "<string>"
}
]
}
],
"rejected_rows": [
{
"source_row": {
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
},
"code": "MISSING_REQUIRED_FIELD",
"message": "<string>",
"source_fields": {},
"fields": ["<string>"]
}
],
"summary": {
"source_rows": 1000,
"output_records": 998,
"rejected_rows": 2,
"warning_count": 4
},
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": ["transaction_id"]
}
]
}
],
"summary": {
"source_rows": 1000,
"output_records": 998,
"rejected_rows": 2,
"warning_count": 4,
"input_files": 1
},
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": ["transaction_id"]
}
]
},
"previous": {
"schema_version": "rta-sync.v1",
"key_version": "rta-key.v1",
"batch_key": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"reference": "jan-2026-mfd-001",
"files": [
{
"file_index": 0,
"filename": "kfintech-feed.csv",
"provider": "kfintech",
"report_code": "MFSD221",
"report_family": "transaction_investor_master",
"detection_confidence": "strong",
"source_sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"mapping_version": "rta-sync-2026-08",
"source_schema": "kfintech_format1",
"data_sets": [
{
"object_type": "investor",
"record_count": 1,
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": ["transaction_id"]
}
],
"records": [
{
"record_type": "investor",
"record_key": "<string>",
"provenance": {
"source_rows": [
{
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
}
],
"source_fields": {}
},
"relations": [{ "record_key": "<string>" }],
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": ["transaction_id"]
}
],
"pan": "<string>",
"source_record_key": "<string>",
"investor_name": "<string>",
"email": "<string>",
"mobile": "<string>",
"kyc_status": "<string>",
"broker_code": "<string>",
"sub_broker_code": "<string>",
"euin": "<string>"
}
]
}
],
"rejected_rows": [
{
"source_row": {
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
},
"code": "MISSING_REQUIRED_FIELD",
"message": "<string>",
"source_fields": {},
"fields": ["<string>"]
}
],
"summary": {
"source_rows": 1000,
"output_records": 998,
"rejected_rows": 2,
"warning_count": 4
},
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": ["transaction_id"]
}
]
}
],
"summary": {
"source_rows": 1000,
"output_records": 998,
"rejected_rows": 2,
"warning_count": 4,
"input_files": 1
},
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": ["transaction_id"]
}
]
},
"scope": {
"mode": "snapshot",
"providers": [],
"report_families": ["<string>"],
"current": {
"complete": True,
"as_of_date": "2023-12-25"
},
"previous": {
"complete": True,
"as_of_date": "2023-12-25"
}
},
"mapping_policy": "require_same",
"object_types": []
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
reference: 'distributor_123',
current: {
schema_version: 'rta-sync.v1',
key_version: 'rta-key.v1',
batch_key: 'sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef',
reference: 'jan-2026-mfd-001',
files: [
{
file_index: 0,
filename: 'kfintech-feed.csv',
provider: 'kfintech',
report_code: 'MFSD221',
report_family: 'transaction_investor_master',
detection_confidence: 'strong',
source_sha256: '0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef',
mapping_version: 'rta-sync-2026-08',
source_schema: 'kfintech_format1',
data_sets: [
{
object_type: 'investor',
record_count: 1,
warnings: [
{
code: 'MISSING_TRANSACTION_ID',
message: 'The source row has no provider transaction ID; record identity may be weak.',
row_number: 42,
fields: ['transaction_id']
}
],
records: [
{
record_type: 'investor',
record_key: '<string>',
provenance: {
source_rows: [{row_number: 2, sheet: '<string>', source_row_key: '<string>'}],
source_fields: {}
},
relations: [{record_key: '<string>'}],
warnings: [
{
code: 'MISSING_TRANSACTION_ID',
message: 'The source row has no provider transaction ID; record identity may be weak.',
row_number: 42,
fields: ['transaction_id']
}
],
pan: '<string>',
source_record_key: '<string>',
investor_name: '<string>',
email: '<string>',
mobile: '<string>',
kyc_status: '<string>',
broker_code: '<string>',
sub_broker_code: '<string>',
euin: '<string>'
}
]
}
],
rejected_rows: [
{
source_row: {row_number: 2, sheet: '<string>', source_row_key: '<string>'},
code: 'MISSING_REQUIRED_FIELD',
message: '<string>',
source_fields: {},
fields: ['<string>']
}
],
summary: {source_rows: 1000, output_records: 998, rejected_rows: 2, warning_count: 4},
warnings: [
{
code: 'MISSING_TRANSACTION_ID',
message: 'The source row has no provider transaction ID; record identity may be weak.',
row_number: 42,
fields: ['transaction_id']
}
]
}
],
summary: {
source_rows: 1000,
output_records: 998,
rejected_rows: 2,
warning_count: 4,
input_files: 1
},
warnings: [
{
code: 'MISSING_TRANSACTION_ID',
message: 'The source row has no provider transaction ID; record identity may be weak.',
row_number: 42,
fields: ['transaction_id']
}
]
},
previous: {
schema_version: 'rta-sync.v1',
key_version: 'rta-key.v1',
batch_key: 'sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef',
reference: 'jan-2026-mfd-001',
files: [
{
file_index: 0,
filename: 'kfintech-feed.csv',
provider: 'kfintech',
report_code: 'MFSD221',
report_family: 'transaction_investor_master',
detection_confidence: 'strong',
source_sha256: '0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef',
mapping_version: 'rta-sync-2026-08',
source_schema: 'kfintech_format1',
data_sets: [
{
object_type: 'investor',
record_count: 1,
warnings: [
{
code: 'MISSING_TRANSACTION_ID',
message: 'The source row has no provider transaction ID; record identity may be weak.',
row_number: 42,
fields: ['transaction_id']
}
],
records: [
{
record_type: 'investor',
record_key: '<string>',
provenance: {
source_rows: [{row_number: 2, sheet: '<string>', source_row_key: '<string>'}],
source_fields: {}
},
relations: [{record_key: '<string>'}],
warnings: [
{
code: 'MISSING_TRANSACTION_ID',
message: 'The source row has no provider transaction ID; record identity may be weak.',
row_number: 42,
fields: ['transaction_id']
}
],
pan: '<string>',
source_record_key: '<string>',
investor_name: '<string>',
email: '<string>',
mobile: '<string>',
kyc_status: '<string>',
broker_code: '<string>',
sub_broker_code: '<string>',
euin: '<string>'
}
]
}
],
rejected_rows: [
{
source_row: {row_number: 2, sheet: '<string>', source_row_key: '<string>'},
code: 'MISSING_REQUIRED_FIELD',
message: '<string>',
source_fields: {},
fields: ['<string>']
}
],
summary: {source_rows: 1000, output_records: 998, rejected_rows: 2, warning_count: 4},
warnings: [
{
code: 'MISSING_TRANSACTION_ID',
message: 'The source row has no provider transaction ID; record identity may be weak.',
row_number: 42,
fields: ['transaction_id']
}
]
}
],
summary: {
source_rows: 1000,
output_records: 998,
rejected_rows: 2,
warning_count: 4,
input_files: 1
},
warnings: [
{
code: 'MISSING_TRANSACTION_ID',
message: 'The source row has no provider transaction ID; record identity may be weak.',
row_number: 42,
fields: ['transaction_id']
}
]
},
scope: {
mode: 'snapshot',
providers: [],
report_families: ['<string>'],
current: {complete: true, as_of_date: '2023-12-25'},
previous: {complete: true, as_of_date: '2023-12-25'}
},
mapping_policy: 'require_same',
object_types: []
})
};
fetch('https://api.casparser.in/v1/rta-sync/reconcile', 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.casparser.in/v1/rta-sync/reconcile",
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([
'reference' => 'distributor_123',
'current' => [
'schema_version' => 'rta-sync.v1',
'key_version' => 'rta-key.v1',
'batch_key' => 'sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef',
'reference' => 'jan-2026-mfd-001',
'files' => [
[
'file_index' => 0,
'filename' => 'kfintech-feed.csv',
'provider' => 'kfintech',
'report_code' => 'MFSD221',
'report_family' => 'transaction_investor_master',
'detection_confidence' => 'strong',
'source_sha256' => '0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef',
'mapping_version' => 'rta-sync-2026-08',
'source_schema' => 'kfintech_format1',
'data_sets' => [
[
'object_type' => 'investor',
'record_count' => 1,
'warnings' => [
[
'code' => 'MISSING_TRANSACTION_ID',
'message' => 'The source row has no provider transaction ID; record identity may be weak.',
'row_number' => 42,
'fields' => [
'transaction_id'
]
]
],
'records' => [
[
'record_type' => 'investor',
'record_key' => '<string>',
'provenance' => [
'source_rows' => [
[
'row_number' => 2,
'sheet' => '<string>',
'source_row_key' => '<string>'
]
],
'source_fields' => [
]
],
'relations' => [
[
'record_key' => '<string>'
]
],
'warnings' => [
[
'code' => 'MISSING_TRANSACTION_ID',
'message' => 'The source row has no provider transaction ID; record identity may be weak.',
'row_number' => 42,
'fields' => [
'transaction_id'
]
]
],
'pan' => '<string>',
'source_record_key' => '<string>',
'investor_name' => '<string>',
'email' => '<string>',
'mobile' => '<string>',
'kyc_status' => '<string>',
'broker_code' => '<string>',
'sub_broker_code' => '<string>',
'euin' => '<string>'
]
]
]
],
'rejected_rows' => [
[
'source_row' => [
'row_number' => 2,
'sheet' => '<string>',
'source_row_key' => '<string>'
],
'code' => 'MISSING_REQUIRED_FIELD',
'message' => '<string>',
'source_fields' => [
],
'fields' => [
'<string>'
]
]
],
'summary' => [
'source_rows' => 1000,
'output_records' => 998,
'rejected_rows' => 2,
'warning_count' => 4
],
'warnings' => [
[
'code' => 'MISSING_TRANSACTION_ID',
'message' => 'The source row has no provider transaction ID; record identity may be weak.',
'row_number' => 42,
'fields' => [
'transaction_id'
]
]
]
]
],
'summary' => [
'source_rows' => 1000,
'output_records' => 998,
'rejected_rows' => 2,
'warning_count' => 4,
'input_files' => 1
],
'warnings' => [
[
'code' => 'MISSING_TRANSACTION_ID',
'message' => 'The source row has no provider transaction ID; record identity may be weak.',
'row_number' => 42,
'fields' => [
'transaction_id'
]
]
]
],
'previous' => [
'schema_version' => 'rta-sync.v1',
'key_version' => 'rta-key.v1',
'batch_key' => 'sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef',
'reference' => 'jan-2026-mfd-001',
'files' => [
[
'file_index' => 0,
'filename' => 'kfintech-feed.csv',
'provider' => 'kfintech',
'report_code' => 'MFSD221',
'report_family' => 'transaction_investor_master',
'detection_confidence' => 'strong',
'source_sha256' => '0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef',
'mapping_version' => 'rta-sync-2026-08',
'source_schema' => 'kfintech_format1',
'data_sets' => [
[
'object_type' => 'investor',
'record_count' => 1,
'warnings' => [
[
'code' => 'MISSING_TRANSACTION_ID',
'message' => 'The source row has no provider transaction ID; record identity may be weak.',
'row_number' => 42,
'fields' => [
'transaction_id'
]
]
],
'records' => [
[
'record_type' => 'investor',
'record_key' => '<string>',
'provenance' => [
'source_rows' => [
[
'row_number' => 2,
'sheet' => '<string>',
'source_row_key' => '<string>'
]
],
'source_fields' => [
]
],
'relations' => [
[
'record_key' => '<string>'
]
],
'warnings' => [
[
'code' => 'MISSING_TRANSACTION_ID',
'message' => 'The source row has no provider transaction ID; record identity may be weak.',
'row_number' => 42,
'fields' => [
'transaction_id'
]
]
],
'pan' => '<string>',
'source_record_key' => '<string>',
'investor_name' => '<string>',
'email' => '<string>',
'mobile' => '<string>',
'kyc_status' => '<string>',
'broker_code' => '<string>',
'sub_broker_code' => '<string>',
'euin' => '<string>'
]
]
]
],
'rejected_rows' => [
[
'source_row' => [
'row_number' => 2,
'sheet' => '<string>',
'source_row_key' => '<string>'
],
'code' => 'MISSING_REQUIRED_FIELD',
'message' => '<string>',
'source_fields' => [
],
'fields' => [
'<string>'
]
]
],
'summary' => [
'source_rows' => 1000,
'output_records' => 998,
'rejected_rows' => 2,
'warning_count' => 4
],
'warnings' => [
[
'code' => 'MISSING_TRANSACTION_ID',
'message' => 'The source row has no provider transaction ID; record identity may be weak.',
'row_number' => 42,
'fields' => [
'transaction_id'
]
]
]
]
],
'summary' => [
'source_rows' => 1000,
'output_records' => 998,
'rejected_rows' => 2,
'warning_count' => 4,
'input_files' => 1
],
'warnings' => [
[
'code' => 'MISSING_TRANSACTION_ID',
'message' => 'The source row has no provider transaction ID; record identity may be weak.',
'row_number' => 42,
'fields' => [
'transaction_id'
]
]
]
],
'scope' => [
'mode' => 'snapshot',
'providers' => [
],
'report_families' => [
'<string>'
],
'current' => [
'complete' => true,
'as_of_date' => '2023-12-25'
],
'previous' => [
'complete' => true,
'as_of_date' => '2023-12-25'
]
],
'mapping_policy' => 'require_same',
'object_types' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.casparser.in/v1/rta-sync/reconcile"
payload := strings.NewReader("{\n \"reference\": \"distributor_123\",\n \"current\": {\n \"schema_version\": \"rta-sync.v1\",\n \"key_version\": \"rta-key.v1\",\n \"batch_key\": \"sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"reference\": \"jan-2026-mfd-001\",\n \"files\": [\n {\n \"file_index\": 0,\n \"filename\": \"kfintech-feed.csv\",\n \"provider\": \"kfintech\",\n \"report_code\": \"MFSD221\",\n \"report_family\": \"transaction_investor_master\",\n \"detection_confidence\": \"strong\",\n \"source_sha256\": \"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"mapping_version\": \"rta-sync-2026-08\",\n \"source_schema\": \"kfintech_format1\",\n \"data_sets\": [\n {\n \"object_type\": \"investor\",\n \"record_count\": 1,\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"records\": [\n {\n \"record_type\": \"investor\",\n \"record_key\": \"<string>\",\n \"provenance\": {\n \"source_rows\": [\n {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n }\n ],\n \"source_fields\": {}\n },\n \"relations\": [\n {\n \"record_key\": \"<string>\"\n }\n ],\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"pan\": \"<string>\",\n \"source_record_key\": \"<string>\",\n \"investor_name\": \"<string>\",\n \"email\": \"<string>\",\n \"mobile\": \"<string>\",\n \"kyc_status\": \"<string>\",\n \"broker_code\": \"<string>\",\n \"sub_broker_code\": \"<string>\",\n \"euin\": \"<string>\"\n }\n ]\n }\n ],\n \"rejected_rows\": [\n {\n \"source_row\": {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n },\n \"code\": \"MISSING_REQUIRED_FIELD\",\n \"message\": \"<string>\",\n \"source_fields\": {},\n \"fields\": [\n \"<string>\"\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4,\n \"input_files\": 1\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n },\n \"previous\": {\n \"schema_version\": \"rta-sync.v1\",\n \"key_version\": \"rta-key.v1\",\n \"batch_key\": \"sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"reference\": \"jan-2026-mfd-001\",\n \"files\": [\n {\n \"file_index\": 0,\n \"filename\": \"kfintech-feed.csv\",\n \"provider\": \"kfintech\",\n \"report_code\": \"MFSD221\",\n \"report_family\": \"transaction_investor_master\",\n \"detection_confidence\": \"strong\",\n \"source_sha256\": \"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"mapping_version\": \"rta-sync-2026-08\",\n \"source_schema\": \"kfintech_format1\",\n \"data_sets\": [\n {\n \"object_type\": \"investor\",\n \"record_count\": 1,\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"records\": [\n {\n \"record_type\": \"investor\",\n \"record_key\": \"<string>\",\n \"provenance\": {\n \"source_rows\": [\n {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n }\n ],\n \"source_fields\": {}\n },\n \"relations\": [\n {\n \"record_key\": \"<string>\"\n }\n ],\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"pan\": \"<string>\",\n \"source_record_key\": \"<string>\",\n \"investor_name\": \"<string>\",\n \"email\": \"<string>\",\n \"mobile\": \"<string>\",\n \"kyc_status\": \"<string>\",\n \"broker_code\": \"<string>\",\n \"sub_broker_code\": \"<string>\",\n \"euin\": \"<string>\"\n }\n ]\n }\n ],\n \"rejected_rows\": [\n {\n \"source_row\": {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n },\n \"code\": \"MISSING_REQUIRED_FIELD\",\n \"message\": \"<string>\",\n \"source_fields\": {},\n \"fields\": [\n \"<string>\"\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4,\n \"input_files\": 1\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n },\n \"scope\": {\n \"mode\": \"snapshot\",\n \"providers\": [],\n \"report_families\": [\n \"<string>\"\n ],\n \"current\": {\n \"complete\": true,\n \"as_of_date\": \"2023-12-25\"\n },\n \"previous\": {\n \"complete\": true,\n \"as_of_date\": \"2023-12-25\"\n }\n },\n \"mapping_policy\": \"require_same\",\n \"object_types\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.casparser.in/v1/rta-sync/reconcile")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reference\": \"distributor_123\",\n \"current\": {\n \"schema_version\": \"rta-sync.v1\",\n \"key_version\": \"rta-key.v1\",\n \"batch_key\": \"sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"reference\": \"jan-2026-mfd-001\",\n \"files\": [\n {\n \"file_index\": 0,\n \"filename\": \"kfintech-feed.csv\",\n \"provider\": \"kfintech\",\n \"report_code\": \"MFSD221\",\n \"report_family\": \"transaction_investor_master\",\n \"detection_confidence\": \"strong\",\n \"source_sha256\": \"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"mapping_version\": \"rta-sync-2026-08\",\n \"source_schema\": \"kfintech_format1\",\n \"data_sets\": [\n {\n \"object_type\": \"investor\",\n \"record_count\": 1,\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"records\": [\n {\n \"record_type\": \"investor\",\n \"record_key\": \"<string>\",\n \"provenance\": {\n \"source_rows\": [\n {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n }\n ],\n \"source_fields\": {}\n },\n \"relations\": [\n {\n \"record_key\": \"<string>\"\n }\n ],\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"pan\": \"<string>\",\n \"source_record_key\": \"<string>\",\n \"investor_name\": \"<string>\",\n \"email\": \"<string>\",\n \"mobile\": \"<string>\",\n \"kyc_status\": \"<string>\",\n \"broker_code\": \"<string>\",\n \"sub_broker_code\": \"<string>\",\n \"euin\": \"<string>\"\n }\n ]\n }\n ],\n \"rejected_rows\": [\n {\n \"source_row\": {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n },\n \"code\": \"MISSING_REQUIRED_FIELD\",\n \"message\": \"<string>\",\n \"source_fields\": {},\n \"fields\": [\n \"<string>\"\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4,\n \"input_files\": 1\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n },\n \"previous\": {\n \"schema_version\": \"rta-sync.v1\",\n \"key_version\": \"rta-key.v1\",\n \"batch_key\": \"sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"reference\": \"jan-2026-mfd-001\",\n \"files\": [\n {\n \"file_index\": 0,\n \"filename\": \"kfintech-feed.csv\",\n \"provider\": \"kfintech\",\n \"report_code\": \"MFSD221\",\n \"report_family\": \"transaction_investor_master\",\n \"detection_confidence\": \"strong\",\n \"source_sha256\": \"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"mapping_version\": \"rta-sync-2026-08\",\n \"source_schema\": \"kfintech_format1\",\n \"data_sets\": [\n {\n \"object_type\": \"investor\",\n \"record_count\": 1,\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"records\": [\n {\n \"record_type\": \"investor\",\n \"record_key\": \"<string>\",\n \"provenance\": {\n \"source_rows\": [\n {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n }\n ],\n \"source_fields\": {}\n },\n \"relations\": [\n {\n \"record_key\": \"<string>\"\n }\n ],\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"pan\": \"<string>\",\n \"source_record_key\": \"<string>\",\n \"investor_name\": \"<string>\",\n \"email\": \"<string>\",\n \"mobile\": \"<string>\",\n \"kyc_status\": \"<string>\",\n \"broker_code\": \"<string>\",\n \"sub_broker_code\": \"<string>\",\n \"euin\": \"<string>\"\n }\n ]\n }\n ],\n \"rejected_rows\": [\n {\n \"source_row\": {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n },\n \"code\": \"MISSING_REQUIRED_FIELD\",\n \"message\": \"<string>\",\n \"source_fields\": {},\n \"fields\": [\n \"<string>\"\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4,\n \"input_files\": 1\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n },\n \"scope\": {\n \"mode\": \"snapshot\",\n \"providers\": [],\n \"report_families\": [\n \"<string>\"\n ],\n \"current\": {\n \"complete\": true,\n \"as_of_date\": \"2023-12-25\"\n },\n \"previous\": {\n \"complete\": true,\n \"as_of_date\": \"2023-12-25\"\n }\n },\n \"mapping_policy\": \"require_same\",\n \"object_types\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.casparser.in/v1/rta-sync/reconcile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reference\": \"distributor_123\",\n \"current\": {\n \"schema_version\": \"rta-sync.v1\",\n \"key_version\": \"rta-key.v1\",\n \"batch_key\": \"sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"reference\": \"jan-2026-mfd-001\",\n \"files\": [\n {\n \"file_index\": 0,\n \"filename\": \"kfintech-feed.csv\",\n \"provider\": \"kfintech\",\n \"report_code\": \"MFSD221\",\n \"report_family\": \"transaction_investor_master\",\n \"detection_confidence\": \"strong\",\n \"source_sha256\": \"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"mapping_version\": \"rta-sync-2026-08\",\n \"source_schema\": \"kfintech_format1\",\n \"data_sets\": [\n {\n \"object_type\": \"investor\",\n \"record_count\": 1,\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"records\": [\n {\n \"record_type\": \"investor\",\n \"record_key\": \"<string>\",\n \"provenance\": {\n \"source_rows\": [\n {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n }\n ],\n \"source_fields\": {}\n },\n \"relations\": [\n {\n \"record_key\": \"<string>\"\n }\n ],\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"pan\": \"<string>\",\n \"source_record_key\": \"<string>\",\n \"investor_name\": \"<string>\",\n \"email\": \"<string>\",\n \"mobile\": \"<string>\",\n \"kyc_status\": \"<string>\",\n \"broker_code\": \"<string>\",\n \"sub_broker_code\": \"<string>\",\n \"euin\": \"<string>\"\n }\n ]\n }\n ],\n \"rejected_rows\": [\n {\n \"source_row\": {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n },\n \"code\": \"MISSING_REQUIRED_FIELD\",\n \"message\": \"<string>\",\n \"source_fields\": {},\n \"fields\": [\n \"<string>\"\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4,\n \"input_files\": 1\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n },\n \"previous\": {\n \"schema_version\": \"rta-sync.v1\",\n \"key_version\": \"rta-key.v1\",\n \"batch_key\": \"sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"reference\": \"jan-2026-mfd-001\",\n \"files\": [\n {\n \"file_index\": 0,\n \"filename\": \"kfintech-feed.csv\",\n \"provider\": \"kfintech\",\n \"report_code\": \"MFSD221\",\n \"report_family\": \"transaction_investor_master\",\n \"detection_confidence\": \"strong\",\n \"source_sha256\": \"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\",\n \"mapping_version\": \"rta-sync-2026-08\",\n \"source_schema\": \"kfintech_format1\",\n \"data_sets\": [\n {\n \"object_type\": \"investor\",\n \"record_count\": 1,\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"records\": [\n {\n \"record_type\": \"investor\",\n \"record_key\": \"<string>\",\n \"provenance\": {\n \"source_rows\": [\n {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n }\n ],\n \"source_fields\": {}\n },\n \"relations\": [\n {\n \"record_key\": \"<string>\"\n }\n ],\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ],\n \"pan\": \"<string>\",\n \"source_record_key\": \"<string>\",\n \"investor_name\": \"<string>\",\n \"email\": \"<string>\",\n \"mobile\": \"<string>\",\n \"kyc_status\": \"<string>\",\n \"broker_code\": \"<string>\",\n \"sub_broker_code\": \"<string>\",\n \"euin\": \"<string>\"\n }\n ]\n }\n ],\n \"rejected_rows\": [\n {\n \"source_row\": {\n \"row_number\": 2,\n \"sheet\": \"<string>\",\n \"source_row_key\": \"<string>\"\n },\n \"code\": \"MISSING_REQUIRED_FIELD\",\n \"message\": \"<string>\",\n \"source_fields\": {},\n \"fields\": [\n \"<string>\"\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n }\n ],\n \"summary\": {\n \"source_rows\": 1000,\n \"output_records\": 998,\n \"rejected_rows\": 2,\n \"warning_count\": 4,\n \"input_files\": 1\n },\n \"warnings\": [\n {\n \"code\": \"MISSING_TRANSACTION_ID\",\n \"message\": \"The source row has no provider transaction ID; record identity may be weak.\",\n \"row_number\": 42,\n \"fields\": [\n \"transaction_id\"\n ]\n }\n ]\n },\n \"scope\": {\n \"mode\": \"snapshot\",\n \"providers\": [],\n \"report_families\": [\n \"<string>\"\n ],\n \"current\": {\n \"complete\": true,\n \"as_of_date\": \"2023-12-25\"\n },\n \"previous\": {\n \"complete\": true,\n \"as_of_date\": \"2023-12-25\"\n }\n },\n \"mapping_policy\": \"require_same\",\n \"object_types\": []\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"reference": "distributor_123",
"scope": {
"mode": "snapshot",
"providers": [
"cams"
],
"report_families": [
"<string>"
],
"current": {
"complete": true,
"period": {
"from": "2023-12-25",
"to": "2023-12-25"
},
"as_of_date": "2023-12-25"
},
"previous": {
"complete": true,
"period": {
"from": "2023-12-25",
"to": "2023-12-25"
},
"as_of_date": "2023-12-25"
}
},
"mapping_policy": "require_same",
"results": [
{
"object_type": "investor",
"classification": "changed",
"current_record_key": "kfintech:1227:0:91046479506:2026-01-15",
"previous_record_key": "kfintech:1227:0:91046479506:2026-01-15",
"duplicate_of_record_key": "<string>",
"reversal_of_record_key": "<string>",
"comparison_side": "current",
"unmatched_reason": "<string>",
"changes": [
{
"field": "/amount",
"before": "1000.00",
"after": "1002.50"
}
],
"current_record": {
"record_type": "investor",
"record_key": "<string>",
"identity_quality": "strong",
"provenance": {
"source_rows": [
{
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
}
],
"source_fields": {}
},
"relations": [
{
"type": "reverses",
"record_key": "<string>"
}
],
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
],
"pan": "<string>",
"source_record_key": "<string>",
"investor_name": "<string>",
"email": "<string>",
"mobile": "<string>",
"kyc_status": "<string>",
"broker_code": "<string>",
"sub_broker_code": "<string>",
"euin": "<string>"
},
"previous_record": {
"record_type": "investor",
"record_key": "<string>",
"identity_quality": "strong",
"provenance": {
"source_rows": [
{
"row_number": 2,
"sheet": "<string>",
"source_row_key": "<string>"
}
],
"source_fields": {}
},
"relations": [
{
"type": "reverses",
"record_key": "<string>"
}
],
"warnings": [
{
"code": "MISSING_TRANSACTION_ID",
"message": "The source row has no provider transaction ID; record identity may be weak.",
"row_number": 42,
"fields": [
"transaction_id"
]
}
],
"pan": "<string>",
"source_record_key": "<string>",
"investor_name": "<string>",
"email": "<string>",
"mobile": "<string>",
"kyc_status": "<string>",
"broker_code": "<string>",
"sub_broker_code": "<string>",
"euin": "<string>"
}
}
],
"summary": {
"total": 1000,
"new_count": 20,
"unchanged_count": 950,
"changed_count": 10,
"duplicate_count": 5,
"reversed_count": 3,
"removed_count": 2,
"unmatched_count": 10
}
}
}{
"status": "failed",
"msg": "Invalid PDF file or password."
}{
"status": "failed",
"msg": "Authentication failed: API key is missing. Please provide a valid API key in the x-api-key header."
}{
"status": "failed",
"msg": "Authentication failed: API quota exceeded or invalid API key. Please check your API key or quota limits."
}{
"status": "failed",
"msg": "Invalid PDF file or password."
}Authorizations
Your API key for authentication.
Use sandbox-with-json-responses as Sandbox key.
Headers
Optional caller-supplied request ID. Must start with req_; the same value is returned in the response header.
^req_[A-Za-z0-9]+$"req_myImport123"
Body
Consumer-owned tenant, distributor, or operation reference.
256"distributor_123"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
require_same requires matching schema, key, and mapping versions; allow_compatible accepts versions declared compatible by RTA Sync.
require_same, allow_compatible Optional object types to compare. Defaults to the union of types present in either batch.
1investor, folio, scheme, transaction, position_snapshot, systematic_instruction, nav, corporate_action, exception, brokerage_payout, mandate, settlement_exception, analytics_report Was this page helpful?

