MBT Company
← All pages in this section

FILE_TYPE_UNSUPPORTED

Status: 415 Unsupported Media Type

What it means

The type of file is not accepted. Documents can be PDF, JPG, PNG, HEIC, XML, DOC, DOCX, ODT, ODS or RTF, and archives can be ZIP, 7z or RAR.

What to do

Convert the file to an accepted type and upload it again. A file with several invoices must be split into one file per invoice.

Example of the answer

The API answers with this JSON (title and detail change with the situation and the language):

{
  "type": "https://docs.mbtcompany.eu/errors/file-type-unsupported",
  "title": "Unsupported Media Type",
  "status": 415,
  "detail": "The type of file is not accepted. Documents can be PDF, JPG, PNG, HEIC, XML, DOC, DOCX, ODT, ODS or RTF, and archives can be ZIP, 7z or RAR.",
  "code": "FILE_TYPE_UNSUPPORTED"
}