This endpoint requires authentication. Include your Bearer token in the Authorization header.
Generates a pre-signed URL for uploading a royalty file.
const response = await fetch('https://api.royalti.io/file/getuUloadurl', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"royaltySource": "sample-royaltySource",
"accountingPeriod": "2024-01-21",
"salePeriod": "2024-01-21",
"fileMetaData": {}
})
});
const data = await response.json();
console.log(data);