Get File Upload URL
Generates a pre-signed URL for uploading a file to the server with optional auto-detection.
Description
Auto-Detection Feature:- Set
autoDetect: trueto enable automatic source and period detection - Provide
fileSample(base64-encoded) for pre-upload analysis - Use
autoProcessIfConfident: trueto skip manual confirmation when confidence is high - Set
forceManualConfirmation: trueto always require manual review
- For ZIP files, the client can extract one CSV from the archive and send it as
fileSample - This enables full content-based source detection (header matching, schema detection)
- If source confidence is low,
sourceCreatorEligiblewill be set in the response - Without
fileSample, ZIP files fall back to filename-only detection
fileMetaData: Required - contains uploadType, originalname, mimetype, sizeroyaltySource: Optional if autoDetect is enabledaccountingPeriod: Optional if autoDetect is enabledsalePeriod: Optional sales periodautoDetect: Enable automatic source/period detection (default: true)fileSample: Base64-encoded file sample for analysis (for ZIPs: extracted CSV content)autoProcessIfConfident: Auto-process if detection confidence is highforceManualConfirmation: Force manual review regardless of confidenceisZip: Indicates ZIP file containing multiple files
- Required role:
useror higher
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Body
Source of the royalty data (optional if autoDetect is true)
The accounting period (YYYY-MM-DD) (optional if autoDetect is true)
The sales period (YYYY-MM-DD)
Enable automatic detection of royalty source and period from file content
Base64-encoded sample of file content for pre-upload analysis (optional)
Automatically process file if detection confidence meets thresholds
Force manual confirmation even if auto-detection confidence is high
Indicates if the file is a ZIP archive containing multiple royalty files