> ## 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.

# Cancel an import declaration

> Cancel an import declaration.

Cancel an import declaration. If it has not yet been submitted to customs, it is cancelled immediately. If already submitted, a cancellation request is sent to customs.

### Path Parameters

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

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "declarationId": 42,
    "canceled": true
  }
  ```

  ```json 404 Not Found theme={null}
  {
    "statusCode": 404,
    "message": "Declaration not found or not accessible.",
    "error": "Not Found"
  }
  ```
</ResponseExample>
