Upload invoice attachments
POST/v1/invoice-attachments
Files for a later POST /invoice-import (attachments[].document_token). Allowed, read from the bytes: PDF, PNG, JPEG, TIFF, XML and ZIP archives of those (opened under limits: 200 files, 250 MB, no encryption). Other types answer 415 unsupported_file_type, also inside a ZIP, and so does an archive inside the ZIP; a bad ZIP answers 422 zip_rejected; nothing is stored then. Multipart (max 50 files of 50 MB) or a JSON body { upload_ids } from POST /uploads for large files. Idempotency-Key works on the content. An unknown document_token in the import answers 422 unknown_attachment_token.
Request
Responses
- 200
- 400
- 401
- 500
Files uploaded successfully
Bad request - no files provided or file upload error
Unauthorized - invalid API key
Internal server error