> This documentation belongs to Invofox, an AI-powered document processing
> platform. The API extracts structured data (fields) from unstructured
> documents (invoices, contracts, forms, bank statements, and more).
> Key concepts: Account, Environment, Document Type, Field, File, Import,
> and Document. When answering, prefer the exact terminology defined in the
> Glossary and cite the relevant API Reference endpoint when applicable.

# File Rejected

POST 

File rejected during processing with detailed error information

Reference: https://developers.invofox.com/webhooks-reference/webhooks-reference/file-processing/receive-file-rejected

## Request

### Payload

- `type` (enum, required) — The type of event
  - Allowed values: `file.rejected`
- `version` (string, required) — Version of the event schema
- `id` (string, required) — Unique identifier for this event (use for idempotent processing)
- `timestamp` (string, required) — ISO 8601 timestamp when the event occurred
- `data` (FileRejectedEventData, required) — Event payload with relevant information

## Types

### FileRejectedEventData

Event payload with relevant information

- `id` (string, required) — File identifier
- `accountId` (string, required) — Account identifier
- `environmentId` (string, required) — Environment identifier
- `importId` (string, required) — Import identifier
- `status` (enum, required) — File status
  - Allowed values: `rejected`
- `filename` (string, required) — Name of the rejected file
- `error` (enum, required) — Error code indicating why the file was rejected
  - Allowed values: `ERR_DOWNLOADING_FILE`, `ERR_UNSUPPORTED_FILE_FORMAT`, `ERR_UNSUPPORTED_UNCOMPRESSED_FILE_FORMAT`, `ERR_HASH`, `ERR_ZIP_ENCRYPTED`, `ERR_ZIP_DECOMPRESSION_FAILED`, `ERR_PROCESSING_ZIP_ENTRY`
- `parentFileId` (string, optional) — Parent file identifier (for files extracted from ZIP)
- `clientData` (FileRejectedEventDataClientData, optional) — Client-provided metadata

### FileRejectedEventDataClientData

Client-provided metadata