SourceDocumentResponse
successboolean
Indicates if the request was successful
Example:
truedata object
sourceDocumentIdinteger
Database ID of the created source document
Example:
12345filesUploadedinteger
Total number of files uploaded (including files extracted from ZIP archives)
Example:
3pdfFilesQueuedinteger
Number of PDF files queued for processing
Example:
2statusstring
Current processing status of the source document
Possible values: [processing]
Example:
processingmessagestring
Human-readable success message
Example:
Source document created and processing starteddetails object
uploadSessionIduuid
Unique identifier for this upload session
Example:
550e8400-e29b-41d4-a716-446655440000uploadReferencestring
Human-readable upload reference for tracking
Example:
API Upload - Sep 30, 2025 at 02:30 PM by api_usercompanyCodestringnullable
Company code if provided in request
Example:
COMP001supplierCodestringnullable
Supplier code if provided in request
Example:
SUPP123totalPdfsinteger
Total number of PDF files found in upload
Example:
2filesProcessedinteger
Number of PDF files successfully queued for processing
Example:
2SourceDocumentResponse
{
"success": true,
"data": {
"sourceDocumentId": 12345,
"filesUploaded": 3,
"pdfFilesQueued": 2,
"status": "processing",
"message": "Source document created and processing started",
"details": {
"uploadSessionId": "550e8400-e29b-41d4-a716-446655440000",
"uploadReference": "API Upload - Sep 30, 2025 at 02:30 PM by api_user",
"companyCode": "COMP001",
"supplierCode": "SUPP123",
"totalPdfs": 2,
"filesProcessed": 2
}
}
}