> ## 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 departure declaration

> Submit a transit departure declaration (type: DEPARTURE).

Submit a transit departure declaration to Union Transit. You can choose to send either a minimal payload or a detailed payload depending on your authorization and requirements.

### Request Body

<ParamField body="type" type="string" required>
  The type of declaration. Must be set to `DEPARTURE`.
</ParamField>

<ParamField body="companyId" type="integer" required>
  The unique ID of the company submitting the declaration.
</ParamField>

<ParamField body="procedureType" type="string" required>
  The transit procedure type code. Allowed values: `D1`, `D2`, `D3`, `D4`.
</ParamField>

<ParamField body="declarationType" type="string" required>
  The transit declaration type. Allowed values: `mixedTransit`, `tir`, `externalTransit`, `internalTransit`, `internalTransitFiscal`, `internalTransitSanMarino`.
</ParamField>

<ParamField body="additionalDeclarationType" type="string" required>
  The additional declaration type (e.g. `STANDARD`).
</ParamField>

<ParamField body="commercialReference" type="string" required>
  Commercial reference identifier.
</ParamField>

<ParamField body="departureOffice" type="string" required>
  Office of departure code (e.g. `NL000432`).
</ParamField>

<ParamField body="destinationOffice" type="string" required>
  Office of destination code (e.g. `NL000433`).
</ParamField>

<ParamField body="countryOfDispatch" type="string" required>
  The country code where goods are dispatched (e.g. `NL`).
</ParamField>

<ParamField body="countryOfDestination" type="string" required>
  The country code of the destination (e.g. `DE`).
</ParamField>

<ParamField body="security" type="string" required>
  Security indicator code.
</ParamField>

<ParamField body="totalWeight" type="number" required>
  Total gross mass of the declaration in kilograms.
</ParamField>

<ParamField body="goodsLocationType" type="string" required>
  The type identifier for the location of the goods.
</ParamField>

<ParamField body="goodsLocationAddressType" type="string" required>
  The type identifier for the address layout of the goods location.
</ParamField>

<ParamField body="goodsLocationAddress" type="object" required>
  The physical address where the goods are located.
</ParamField>

<ParamField body="loadingCountry" type="string" required>
  Country code of the loading location.
</ParamField>

<ParamField body="loadingLocation" type="string" required>
  Name of the loading location.
</ParamField>

<ParamField body="loadingUNLocode" type="string" required>
  UN/LOCODE for the loading location.
</ParamField>

<ParamField body="unloadingCountry" type="string">
  Country code of the unloading location.
</ParamField>

<ParamField body="unloadingLocation" type="string">
  Name of the unloading location.
</ParamField>

<ParamField body="unloadingUNLocode" type="string">
  UN/LOCODE for the unloading location.
</ParamField>

<ParamField body="Principal" type="object" required>
  The principal party details.
</ParamField>

<ParamField body="Consignor" type="object" required>
  The consignor details.
</ParamField>

<ParamField body="Consignee" type="object" required>
  The consignee details.
</ParamField>

<ParamField body="TransportMeans" type="array">
  List of departure transport means.
</ParamField>

<ParamField body="DeclarationGuarantees" type="array" required>
  List of guarantees for the transit declaration.
</ParamField>

<ParamField body="Authorisations" type="array">
  List of authorisations reference documents.
</ParamField>

<ParamField body="DeclarationItems" type="array" required>
  List of items in this transit declaration.
</ParamField>

### Examples

<CodeGroup>
  ```json Minimal Payload theme={null}
  {
    "type": "DEPARTURE",
    "companyId": 1,
    "procedureType": "D1",
    "declarationType": "externalTransit",
    "additionalDeclarationType": "STANDARD",
    "commercialReference": "TRN-2026-00001",
    "departureOffice": "NL000432",
    "destinationOffice": "NL000433",
    "countryOfDispatch": "NL",
    "countryOfDestination": "DE",
    "security": "0",
    "totalWeight": 1000,
    "goodsLocationType": "A",
    "goodsLocationAddressType": "Z",
    "goodsLocationAddress": {
      "Address": {
        "street": "Main St 1",
        "city": "Rotterdam",
        "postCode": "3011AA",
        "countryCode": "NL"
      }
    },
    "loadingCountry": "NL",
    "loadingLocation": "Rotterdam Port",
    "loadingUNLocode": "NLRTM",
    "Principal": {
      "name": "EZC B.V.",
      "eoriNo": "NL123456789",
      "countryCode": "NL"
    },
    "Consignor": {
      "name": "Exporter Ltd",
      "eoriNo": "NL987654321",
      "countryCode": "NL"
    },
    "Consignee": {
      "name": "Importer GmbH",
      "countryCode": "DE",
      "city": "Berlin",
      "street": "Berliner Str 1",
      "postcode": "10115"
    },
    "DeclarationGuarantees": [
      {
        "guaranteeType": "0",
        "guaranteeReferenceNumber": "25NL000000000000001",
        "guaranteeAmount": 50000,
        "currencyCode": "EUR",
        "accessCode": "1234"
      }
    ],
    "DeclarationItems": [
      {
        "description": "Cotton T-shirts",
        "commodityCode": "62034211",
        "originCountry": "CN",
        "quantity": 100,
        "grossMass": 1000,
        "netWeight": 950,
        "netPrice": 25000,
        "currency": "EUR",
        "packaging": [
          {
            "sequenceNumber": 1,
            "typeOfPackages": "BX",
            "quantity": 10,
            "shippingMarks": "ABC123"
          }
        ]
      }
    ]
  }
  ```

  ```json Detailed Payload theme={null}
  {
    "type": "DEPARTURE",
    "companyId": 1,
    "procedureType": "D1",
    "declarationType": "externalTransit",
    "additionalDeclarationType": "STANDARD",
    "commercialReference": "TRN-2026-00001",
    "departureOffice": "NL000432",
    "destinationOffice": "NL000433",
    "countryOfDispatch": "NL",
    "countryOfDestination": "DE",
    "security": "0",
    "totalWeight": 2500,
    "goodsLocationType": "A",
    "goodsLocationAddressType": "Z",
    "goodsLocationAddress": {
      "Address": {
        "street": "Main St 1",
        "city": "Rotterdam",
        "postCode": "3011AA",
        "countryCode": "NL"
      }
    },
    "loadingCountry": "NL",
    "loadingLocation": "Rotterdam Port",
    "loadingUNLocode": "NLRTM",
    "unloadingCountry": "DE",
    "unloadingLocation": "Berlin",
    "unloadingUNLocode": "DEBER",
    "Principal": {
      "name": "EZC B.V.",
      "eoriNo": "NL123456789",
      "countryCode": "NL"
    },
    "Consignor": {
      "name": "Exporter Ltd",
      "eoriNo": "NL987654321",
      "countryCode": "NL"
    },
    "Consignee": {
      "name": "Importer GmbH",
      "countryCode": "DE",
      "city": "Berlin",
      "street": "Berliner Str 1",
      "postcode": "10115"
    },
    "TransportMeans": [
      {
        "sequenceNumber": 1,
        "mode": "DEPARTURE",
        "transportType": "30",
        "identificationNumber": "TRUCK-001",
        "nationality": "NL"
      }
    ],
    "DeclarationGuarantees": [
      {
        "guaranteeType": "0",
        "guaranteeReferenceNumber": "25NL000000000000001",
        "guaranteeAmount": 50000,
        "currencyCode": "EUR",
        "accessCode": "1234"
      }
    ],
    "Authorisations": [
      {
        "documentCategory": "Authorisation",
        "typeCode": "C522",
        "description": "NLACENL000567-2025-D-FAJ159847"
      }
    ],
    "DeclarationItems": [
      {
        "description": "Cotton T-shirts",
        "commodityCode": "62034211",
        "originCountry": "CN",
        "quantity": 100,
        "grossMass": 1000,
        "netWeight": 950,
        "netPrice": 15000,
        "currency": "EUR",
        "packaging": [
          {
            "sequenceNumber": 1,
            "typeOfPackages": "BX",
            "quantity": 10,
            "shippingMarks": "ABC123"
          }
        ]
      },
      {
        "description": "Denim Jeans",
        "commodityCode": "62034231",
        "originCountry": "BD",
        "quantity": 80,
        "grossMass": 800,
        "netWeight": 760,
        "netPrice": 12000,
        "currency": "EUR",
        "packaging": [
          {
            "sequenceNumber": 1,
            "typeOfPackages": "BX",
            "quantity": 8,
            "shippingMarks": "DEF456"
          }
        ]
      },
      {
        "description": "Wool Sweaters",
        "commodityCode": "61101110",
        "originCountry": "IN",
        "quantity": 50,
        "grossMass": 700,
        "netWeight": 650,
        "netPrice": 8000,
        "currency": "EUR",
        "packaging": [
          {
            "sequenceNumber": 1,
            "typeOfPackages": "CT",
            "quantity": 5,
            "shippingMarks": "GHI789"
          }
        ]
      }
    ]
  }
  ```
</CodeGroup>

<ResponseExample>
  ```json 201 Created theme={null}
  {
    "declarationId": 104,
    "status": "processing"
  }
  ```
</ResponseExample>
