Skip to main content
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

detection session results and queues the file for processing. For ZIP files, provide an array of file confirmations with individual source/period assignments for each extracted file. Note: Despite the route definition showing :id parameter, the implementation uses sessionId from the request body.

Code Examples

const response = await fetch('https://api.royalti.io/file/confirm-detection', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "sessionId": "sample-sessionId",
    "royaltySource": "sample-royaltySource",
    "accountingPeriod": "2024-01-21",
    "schema": {},
    "parameters": {},
    "fileConfirmations": [
      {
        "fileName": "sample-fileName",
        "royaltySource": "sample-royaltySource",
        "accountingPeriod": "2024-01-21"
      }
    ]
  })
});

const data = await response.json();
console.log(data);