Skip to main content
POST
/
v1
/
declarations
/
transit
Submit departure declaration
curl --request POST \
  --url https://devapi.eazecustoms.com/staging/v1/declarations/transit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "<string>",
  "companyId": 123,
  "procedureType": "<string>",
  "declarationType": "<string>",
  "additionalDeclarationType": "<string>",
  "commercialReference": "<string>",
  "departureOffice": "<string>",
  "destinationOffice": "<string>",
  "countryOfDispatch": "<string>",
  "countryOfDestination": "<string>",
  "security": "<string>",
  "totalWeight": 123,
  "goodsLocationType": "<string>",
  "goodsLocationAddressType": "<string>",
  "goodsLocationAddress": {},
  "loadingCountry": "<string>",
  "loadingLocation": "<string>",
  "loadingUNLocode": "<string>",
  "unloadingCountry": "<string>",
  "unloadingLocation": "<string>",
  "unloadingUNLocode": "<string>",
  "Principal": {},
  "Consignor": {},
  "Consignee": {},
  "TransportMeans": [
    {}
  ],
  "DeclarationGuarantees": [
    {}
  ],
  "Authorisations": [
    {}
  ],
  "DeclarationItems": [
    {}
  ]
}
'
{
  "declarationId": 104,
  "status": "processing"
}
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

type
string
required
The type of declaration. Must be set to DEPARTURE.
companyId
integer
required
The unique ID of the company submitting the declaration.
procedureType
string
required
The transit procedure type code. Allowed values: D1, D2, D3, D4.
declarationType
string
required
The transit declaration type. Allowed values: mixedTransit, tir, externalTransit, internalTransit, internalTransitFiscal, internalTransitSanMarino.
additionalDeclarationType
string
required
The additional declaration type (e.g. STANDARD).
commercialReference
string
required
Commercial reference identifier.
departureOffice
string
required
Office of departure code (e.g. NL000432).
destinationOffice
string
required
Office of destination code (e.g. NL000433).
countryOfDispatch
string
required
The country code where goods are dispatched (e.g. NL).
countryOfDestination
string
required
The country code of the destination (e.g. DE).
security
string
required
Security indicator code.
totalWeight
number
required
Total gross mass of the declaration in kilograms.
goodsLocationType
string
required
The type identifier for the location of the goods.
goodsLocationAddressType
string
required
The type identifier for the address layout of the goods location.
goodsLocationAddress
object
required
The physical address where the goods are located.
loadingCountry
string
required
Country code of the loading location.
loadingLocation
string
required
Name of the loading location.
loadingUNLocode
string
required
UN/LOCODE for the loading location.
unloadingCountry
string
Country code of the unloading location.
unloadingLocation
string
Name of the unloading location.
unloadingUNLocode
string
UN/LOCODE for the unloading location.
Principal
object
required
The principal party details.
Consignor
object
required
The consignor details.
Consignee
object
required
The consignee details.
TransportMeans
array
List of departure transport means.
DeclarationGuarantees
array
required
List of guarantees for the transit declaration.
Authorisations
array
List of authorisations reference documents.
DeclarationItems
array
required
List of items in this transit declaration.

Examples

{
  "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"
        }
      ]
    }
  ]
}
{
  "declarationId": 104,
  "status": "processing"
}