Uploads a royalty file and associated metadata for processing.
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/file/royalty \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'royaltySource=<string>' \
--form accountingPeriod=2023-12-25 \
--form salePeriod=2023-12-25 \
--form uploadType=royalty \
--form 'originalname=<string>' \
--form 'mimetype=<string>' \
--form file=@example-file
{
"success": true,
"message": "File uploaded successfully",
"data": {
"id": "file-uuid-123",
"status": "pending",
"name": "export.csv"
}
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
File uploaded successfully
The response is of type object
.
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/file/royalty \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'royaltySource=<string>' \
--form accountingPeriod=2023-12-25 \
--form salePeriod=2023-12-25 \
--form uploadType=royalty \
--form 'originalname=<string>' \
--form 'mimetype=<string>' \
--form file=@example-file
{
"success": true,
"message": "File uploaded successfully",
"data": {
"id": "file-uuid-123",
"status": "pending",
"name": "export.csv"
}
}