This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Body
application/json
Response
Webhook processed successfully
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/webhook/royalty/file-update/webhook \
--header 'Content-Type: application/json' \
--data '{
"fileId": "file_123456",
"status": "completed",
"recordsProcessed": 15420,
"totalAmount": 12450.75,
"errors": []
}'This response does not have an example.Receives status updates for royalty file processing from Google Cloud Functions or external processing systems.
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/webhook/royalty/file-update/webhook \
--header 'Content-Type: application/json' \
--data '{
"fileId": "file_123456",
"status": "completed",
"recordsProcessed": 15420,
"totalAmount": 12450.75,
"errors": []
}'This response does not have an example.const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/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);
Webhook processed successfully