curl --request POST \
--url https://api.royalti.io/webhook/royalty/file-update/webhook \
--header 'Content-Type: application/json' \
--data '
{
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"tenant": 123
}
'{
"message": "File status updated successfully"
}Receives status updates for royalty file processing from Google Cloud Functions or external processing systems.
curl --request POST \
--url https://api.royalti.io/webhook/royalty/file-update/webhook \
--header 'Content-Type: application/json' \
--data '
{
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"tenant": 123
}
'{
"message": "File status updated successfully"
}royalti-x-hash header containing HMAC signature.
Workflow:
const response = await fetch('https://api.royalti.io/webhook/royalty/file-update/webhook', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"tenant": 123
})
});
const data = await response.json();
console.log(data);