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

# Fix an export declaration

> Update fields on an export declaration that has validation errors.

Update fields on a declaration that has validation errors (`status: invalid`). Only declarations in `processing`, `invalid`, or `ready` status can be patched.

### Path Parameters

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

### Request Payload

<ParamField body="exporter" type="object">
  Updated exporter details.
</ParamField>

<ParamField body="DeclarationItems" type="array">
  Updated declaration items.
</ParamField>

```json JSON Payload theme={null}
{
  "exporter": {
    "name": "EZC B.V. (Updated Name)"
  },
  "DeclarationItems": [
    {
      "itemId": 8,
      "netPrice": 9800
    }
  ]
}
```

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "declarationId": 43,
    "status": "processing"
  }
  ```
</ResponseExample>
