Skip to main content
POST
/
webhook
/
royalty
/
file-update
/
webhook
Royalty file status update webhook
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.
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

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);

Body

application/json
fileId
string
required
Example:

"file_123456"

status
enum<string>
required
Available options:
processing,
completed,
failed
Example:

"completed"

recordsProcessed
integer
Example:

15420

totalAmount
number
Example:

12450.75

errors
string[]
Example:
[]

Response

Webhook processed successfully