Vic.ai Attachments API
Attachments are original invoice documents that can be processed by Vic.ai. ## Supported content types - `application/msword` - `application/pdf` - `application/vnd.ms-word.document.macroEnabled.12` - `application/vnd.ms-word.template.macroEnabled.12` - `application/vnd.openxmlformats-officedocument.wordprocessingml.document` - `application/vnd.openxmlformats-officedocument.wordprocessingml.template` - `image/tiff` - `text/xml` **(See note below about supported EDI formats)** - `image/jpg` - `image/jpeg` - `image/png` - `image/gif` - `application/vnd.ms-excel` - `application/vnd.ms-excel.addin.macroenabled.12` - `application/vnd.ms-excel.sheet.binary.macroenabled.12` - `application/vnd.ms-excel.sheet.macroenabled.12` - `application/vnd.ms-excel.template.macroenabled.12` - `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` - `application/vnd.openxmlformats-officedocument.spreadsheetml.template` ### Supported EDI formats: #### PEPPOL BIS Billing v3 Supported embedded attachment MIME codes: - `application/pdf` - `image/jpeg` - `image/png` - `image/tiff` The API will ignore other attachment types. #### X12 EDI 810 X12 ingestion is opt-in — contact Vic.ai support to enable it for your organization. Raw X12 EDI 810 invoice files (version 4010) are accepted — upload the file as your supplier sends it (a `.edi` or `.x12` file beginning with an `ISA` segment), with no conversion. An interchange may contain several invoices; each transaction set becomes its own invoice, and Vic.ai renders an image for each so it is processed like any other invoice. Because processing happens asynchronously, the upload response confirms only that the file was received. Use `GET /v0/attachments/{id}` to check whether processing completed and to retrieve the ids of the invoices that were created.