Skip to main content
POST
/
file
/
createroyalty
Generate Royalty Report File
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/file/createroyalty \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "success": true,
  "message": "Royalty report file generated",
  "data": {
    "name": "f-2025-07-08.csv",
    "status": "generated",
    "id": "file-uuid-123"
  }
}
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/file/createroyalty', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({})
});

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

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json · object

Response

Royalty report file generated

success
boolean
default:true
message
string
data
object