> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eazecustoms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Submit import documents

> Send documents customs asked for while an import declaration is under control.

Send documents customs asked for while an import declaration is under control (`status: under_control`).

Files are base64-encoded in the body. Match each file to a requested document with `code` (e.g. `N935`). Max 9 files per submission.

### Path Parameters

<ParamField path="id" type="number" required>
  The unique declaration ID.
</ParamField>

### Request Payload

<ParamField body="documents" type="array" required>
  List of documents to submit. Each document requires `filename`, `contentBase64` (base64-encoded file content), and `code`.
</ParamField>

```json JSON Payload theme={null}
{
  "documents": [
    {
      "code": "N935",
      "filename": "invoice_KL0888.pdf",
      "contentBase64": "JVBERi0xLjQKJcfsj6y...",
      "description": "Commercial Invoice"
    }
  ]
}
```

<ResponseExample>
  ```json 201 Created theme={null}
  {
    "declarationId": 42,
    "submitted": true,
    "documentsSubmitted": 1,
    "message": "Documents submitted to customs"
  }
  ```

  ```json 400 Bad Request theme={null}
  {
    "statusCode": 400,
    "message": "Declaration not under control or no documents requested",
    "error": "Bad Request"
  }
  ```
</ResponseExample>
