Skip to main content
POST
/
v1
/
declarations
Submit an export declaration
curl --request POST \
  --url https://sandbox-api.easecustoms.com/v1/declarations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "Shipment": {
    "shipmentNo": "<string>",
    "shipmentType": "<string>",
    "remarks": "<string>"
  },
  "commercialReference": "<string>",
  "procedureType": "<string>",
  "declarationType": "<string>",
  "additionalDeclarationType": "<string>",
  "representation": "<string>",
  "declarationOffice": "<string>",
  "goodsLocationType": "<string>",
  "goodsLocationAddressType": "<string>",
  "goodsLocationAddress": {
    "Address": {
      "houseNo": "<string>",
      "street": "<string>",
      "city": "<string>",
      "countryCode": "<string>",
      "postCode": "<string>"
    }
  },
  "countryOfDestination": "<string>",
  "arrivalTransportType": "<string>",
  "arrivalTransportNameType": "<string>",
  "arrivalTransportName": "<string>",
  "borderTransportType": "<string>",
  "invoiceCurrency": "<string>",
  "incoterm": "<string>",
  "incotermLocation": "<string>",
  "Exporter": {
    "name": "<string>",
    "street": "<string>",
    "houseNo": "<string>",
    "city": "<string>",
    "state": "<string>",
    "stateRegion": "<string>",
    "postcode": "<string>",
    "countryCode": "<string>",
    "eoriNo": "<string>",
    "vatNo": "<string>",
    "iossNo": "<string>"
  },
  "Consignee": {
    "name": "<string>",
    "street": "<string>",
    "houseNo": "<string>",
    "city": "<string>",
    "state": "<string>",
    "stateRegion": "<string>",
    "postcode": "<string>",
    "countryCode": "<string>",
    "eoriNo": "<string>",
    "vatNo": "<string>",
    "iossNo": "<string>"
  },
  "SupportingDocuments": [
    {
      "typeCode": "<string>",
      "description": "<string>"
    }
  ],
  "AdditionalInformations": [
    {
      "typeCode": "<string>",
      "description": "<string>"
    }
  ],
  "DeclarationItems": [
    {
      "description": "<string>",
      "commodityCode": "<string>",
      "quantity": 123,
      "grossMass": 123,
      "netWeight": 123,
      "netPrice": 123,
      "currency": "<string>",
      "originCountry": "<string>",
      "supplementaryQuantity": 123,
      "supplementaryQuantityUnit": "<string>",
      "additionalProcedureCodes": "<string>",
      "SupportingDocuments": [
        {}
      ]
    }
  ]
}
'
{
  "declarationId": 43,
  "shipmentId": 16,
  "referenceNumber": "INV-2026-07001",
  "status": "processing",
  "lrn": "NL202600002"
}
Creates and queues a new export customs declaration. Validation runs asynchronously — status will move from processingready once complete.

Request Payload

Shipment
object
required
General shipment metadata mapping to the physical goods in transit.
commercialReference
string
required
Commercial reference identifier (e.g., commercial invoice number).
procedureType
string
required
The standard customs procedure code (shortcode). Commonly used values:
  • B1 — Standard export declaration
  • B2 — Periodic export declaration
  • B3 — Occasional export declaration
  • B4 — Supplementary export declaration
  • C1 — Simplified declaration
  • C2 — Pre-lodged simplified declaration
  • Other codes: H1H7, I1, I2, D1D4.
declarationType
string
required
The type identifier for the declaration (shortcode). Allowed values:
  • declarationExport (shortcode EX) — Export declaration
  • declarationNonEUGoods (shortcode IM) — Standard import declaration from non-EU countries
  • declarationEUGoods (shortcode CO) — Import declaration for EU goods
additionalDeclarationType
string
required
The type code representing the timing and simplification level of the filing (shortcode). Allowed values:
  • STANDARD (code A) — Standard declaration
  • ADVANCE_STANDARD (code D) — Pre-lodged standard declaration
  • SIMPLIFIED_OCCASIONAL (code B) — Simplified occasional declaration
  • ADVANCE_SIMPLIFIED_OCCASIONAL (code E) — Pre-lodged simplified occasional declaration
  • SIMPLIFIED_REGULAR (code C) — Simplified regular declaration
  • ADVANCE_SIMPLIFIED_REGULAR (code F) — Pre-lodged simplified regular declaration
  • SUPPLEMENTARY_PERIODIC_REGULAR (code Y) — Supplementary periodic declaration
  • SUPPLEMENTARY_EIDR (code Z) — Entry in declarant’s records supplementary declaration
representation
string
required
The customs representation mode (shortcode). Allowed values:
  • DirectRepresentation — The customs broker acts in the name of and on behalf of the exporter (broker EORI required)
  • IndirectRepresentation — The customs broker acts in their own name but on behalf of the exporter
  • NoRepresentation — The exporter files directly
declarationOffice
string
required
The 8-digit customs office identifier where the declaration is submitted (e.g. NL000432).
goodsLocationType
string
required
The type code identifying the location category of the goods. Common shortcodes:
  • D — Designated place
  • A — Recognized place
  • B — Approved place
  • C — Competent customs office
goodsLocationAddressType
string
required
The code identifying how the address is specified. Common shortcodes:
  • T — Postal address (Address)
  • U — UN/LOCODE
  • V — Customs office ID
  • W — GPS/GNSS coordinates
  • X — EORI number
  • Y — License/Authorization number
goodsLocationAddress
object
required
Physical location coordinates or postal address where goods are situated.
countryOfDestination
string
required
ISO 2-digit country code of final destination of the export goods (e.g. US).
arrivalTransportType
string
Border crossing transport mode shortcode. Allowed values:
  • 1 — Maritime transport (Sea)
  • 4 — Air transport
  • 3 — Road transport
  • 2 — Rail transport
  • 8 — Inland waterway transport
arrivalTransportNameType
string
The code specifying the type of vehicle identifier. Common values:
  • 10 — IMO ship identification number
  • 40 — Flight number
  • 30 — Road vehicle registration number
arrivalTransportName
string
The actual name or number identifying the vessel, flight, or vehicle (e.g., EVER GIVEN).
borderTransportType
string
Active transport mode crossing the customs border (uses the same transport mode shortcodes as arrivalTransportType).
invoiceCurrency
string
required
3-letter ISO code for the commercial invoice currency (e.g. EUR).
incoterm
string
required
The Incoterm delivery code (shortcode). Allowed values: EXW, FCA, FAS, FOB, CFR, CIF, CPT, CIP, DAP, DPU, DDP, XXX.
incotermLocation
string
The designated location associated with the Incoterm terms (e.g., New York).
Exporter
object
required
The business entity exporting the goods.
Consignee
object
required
The business entity importing the goods.
SupportingDocuments
array
Header-level attachments or referenced certificates.
AdditionalInformations
array
Header-level statements or declarations.
DeclarationItems
array
required
List of items (goods) in the shipment.
JSON Payload
{
  "Shipment": {
    "shipmentNo": "180-43189999",
    "shipmentType": "EXPORT",
    "remarks": "Created via external API full payload"
  },
  "commercialReference": "INV-2026-07001",
  "procedureType": "B1",
  "declarationType": "declarationExport",
  "additionalDeclarationType": "STANDARD",
  "representation": "DirectRepresentation",
  "declarationOffice": "NL000432",
  "goodsLocationType": "D",
  "goodsLocationAddressType": "T",
  "goodsLocationAddress": {
    "Address": {
      "houseNo": "25",
      "street": "Mainstraat",
      "city": "Hoofddorp",
      "countryCode": "NL",
      "postCode": "2132NG"
    }
  },
  "countryOfDestination": "US",
  "arrivalTransportType": "1",
  "arrivalTransportNameType": "10",
  "arrivalTransportName": "EVER GIVEN",
  "borderTransportType": "1",
  "invoiceCurrency": "EUR",
  "incoterm": "DDP",
  "incotermLocation": "New York",
  "Exporter": {
    "name": "EZC B.V.",
    "street": "Hoofdweg 85",
    "city": "Hoofddorp",
    "postcode": "2133LV",
    "countryCode": "NL",
    "eoriNo": "NL100006139B01"
  },
  "Consignee": {
    "name": "US Retail Inc.",
    "street": "500 5th Avenue",
    "city": "New York",
    "postcode": "10110",
    "countryCode": "US",
    "eoriNo": ""
  },
  "SupportingDocuments": [
    {
      "typeCode": "N935",
      "description": "INV-2026-07001"
    }
  ],
  "AdditionalInformations": [
    {
      "typeCode": "30600",
      "description": "Low value goods"
    }
  ],
  "DeclarationItems": [
    {
      "description": "Men's cotton trousers",
      "commodityCode": "6203421100",
      "quantity": 500,
      "grossMass": 250,
      "netWeight": 220,
      "netPrice": 1875,
      "currency": "EUR",
      "originCountry": "NL",
      "supplementaryQuantity": 500,
      "supplementaryQuantityUnit": "NAR",
      "additionalProcedureCodes": "F48",
      "SupportingDocuments": [
        {
          "typeCode": "N935",
          "description": "INV-2026-07001"
        }
      ]
    }
  ]
}
{
  "declarationId": 43,
  "shipmentId": 16,
  "referenceNumber": "INV-2026-07001",
  "status": "processing",
  "lrn": "NL202600002"
}