Create source document
POST/v1/source-document
Upload one or more files to create a source document that will be automatically submitted for invoice extraction processing. Supports PDF files, ZIP archives, and multiple file uploads.
Processing Flow:
- Files are uploaded to S3 customer bucket
- ZIP files are automatically extracted
- Source document is created with status "processing"
- PDF files are queued for AWS Textract processing
- Processing occurs asynchronously in background
File Support:
- PDF files (.pdf): Automatically processed for invoice extraction
- ZIP archives (.zip): Extracted, PDF files inside are processed
- Other files: Stored as attachments, not processed
- Multiple files: Upload up to 20 files in a single request
Limits:
- Max file size: 50 MB per file
- Max files per request: 20
Request
Responses
- 200
- 400
- 401
- 403
- 500
Source document created and processing started successfully
Bad request - validation error
Unauthorized - invalid or missing API key
Forbidden - insufficient permissions
Internal server error - processing failure