POST
/
file
/
royalty
Upload Royalty File
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"
  }
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data

Response

200
application/json

File uploaded successfully

The response is of type object.