curl --request POST \
--url https://api.royalti.io/file/confirm-detection/{sessionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"royaltySource": "merlin_snap",
"accountingPeriod": "2024-03-01",
"salePeriod": "2024-01-01"
}
'{
"success": true,
"message": "File detection confirmed"
}Confirms the detection/validation of a file after upload. This endpoint processes
curl --request POST \
--url https://api.royalti.io/file/confirm-detection/{sessionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"royaltySource": "merlin_snap",
"accountingPeriod": "2024-03-01",
"salePeriod": "2024-01-01"
}
'{
"success": true,
"message": "File detection confirmed"
}salePeriod (when sales occurred)
and accountingPeriod (when royalties are reported).
const response = await fetch('https://api.royalti.io/file/confirm-detection/example-id', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"royaltySource": "sample-royaltySource",
"accountingPeriod": "2024-01-21",
"salePeriod": "2024-01-21",
"schema": {},
"parameters": {},
"fileConfirmations": [
{
"fileName": "sample-fileName",
"royaltySource": "sample-royaltySource",
"accountingPeriod": "2024-01-21",
"salePeriod": "2024-01-21"
}
]
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Detection session ID from file upload
Confirmed royalty source name (for single files)
Confirmed accounting period (for single files, or both single and dual-period sources)
Sale period for dual-period sources (when sales occurred)
Confirmed schema mapping (optional)
Additional processing parameters
Individual file confirmations for ZIP files
Show child attributes