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

# Create declaration template

> Create a new declaration template containing default customs field values.

Create a new declaration template containing default customs field values. The template is linked to a template group.

### Request payload

<ParamField body="declarationTemplateGroupId" type="integer" required>
  The ID of the template group this template belongs to.
</ParamField>

<ParamField body="procedureType" type="string" required>
  Default customs procedure code. Allowed values: `H1`, `H2`, `H3`, `H4`, `H5`, `H6`, `H7`, `I1`, `I2`, `I2A`, `I2B`, `B1`, `B2`, `B3`, `B4`, `C1`, `C2`, `D1`, `D2`, `D3`, `D4`.
</ParamField>

<ParamField body="declarationType" type="string">
  Declaration type. Example: `declarationEUGoods`.
</ParamField>

<ParamField body="additionalDeclarationType" type="string">
  Additional declaration type. Allowed values: `STANDARD`, `SIMPLIFIED`.
</ParamField>

<ParamField body="declarationOffice" type="string">
  Default customs office code (e.g. `NL000432`).
</ParamField>

<ParamField body="countryOfDispatch" type="string">
  Country of dispatch ISO code (e.g. `CN`).
</ParamField>

<ParamField body="countryOfDestination" type="string">
  Country of destination ISO code (e.g. `NL`).
</ParamField>

<ParamField body="incoterm" type="string">
  Default Incoterm code. Allowed values: `EXW`, `FCA`, `FAS`, `FOB`, `CFR`, `CIF`, `CPT`, `CIP`, `DAP`, `DPU`, `DDP`, `XXX`.
</ParamField>

<ParamField body="incotermLocation" type="string">
  Default Incoterm location (e.g. `Hoofddorp`).
</ParamField>

<ParamField body="PreviousDocuments" type="array">
  Default previous documents to include on declarations.
</ParamField>

```json JSON Payload theme={null}
{
  "declarationTemplateGroupId": 1,
  "procedureType": "H1",
  "declarationType": "declarationEUGoods",
  "additionalDeclarationType": "STANDARD",
  "declarationOffice": "NL000432",
  "countryOfDispatch": "CN",
  "countryOfDestination": "NL",
  "incoterm": "DAP",
  "incotermLocation": "Hoofddorp",
  "PreviousDocuments": [
    {
      "typeCode": "N853",
      "description": "Previous Doc Example",
      "documentCategory": 0
    }
  ]
}
```

<ResponseExample>
  ```json 201 Created theme={null}
  {
    "id": 7,
    "declarationTemplateGroupId": 1,
    "procedureType": "H1",
    "declarationType": "declarationEUGoods",
    "declarationOffice": "NL000432",
    "createdAt": "2026-06-22T10:00:00.000Z"
  }
  ```
</ResponseExample>
