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

# Import and Export

> How a Shipment becomes Import or Export Declarations, and what you can read back.

## What you can do

After a clearance Shipment exists, you import a manifest. Eaze Customs creates one or more Customs Declarations and their goods items.

You can list and read those Declarations. You cannot create, change, cancel, or submit a Declaration through the Public API. Customs submission stays in the Eaze Customs portal.

## Before you start

* An Import Shipment requires the `import` module.
* An Export Shipment requires the `export` module.
* You need the public Shipment ID from [Create Shipment](https://docs.eazecustoms.com/api-reference/shipments/create-shipment.md) or [List Shipments](https://docs.eazecustoms.com/api-reference/shipments/list-shipments.md).

A Declaration is the Customs file for one procedure. Its goods items are the commodity lines. The local reference number (LRN) is the reference Eaze Customs uses before Customs assigns a movement reference number (MRN). The MRN is assigned by Customs after registration. It is null until then.

## Steps

```mermaid theme={null}
flowchart LR
  shipment["Shipment"] --> declaration["Declaration"]
  declaration --> items["Goods items"]
  declaration --> documents["Documents"]
```

**1. Confirm the Shipment**

[Get Shipment](https://docs.eazecustoms.com/api-reference/shipments/get-shipment.md) and check `shipmentType` and `enabledServices`. Manifest import is available when clearance is enabled.

**2. Import the manifest**

Follow [Manifest & Declaration Templates](https://docs.eazecustoms.com/implementation/templates.md) and [Manifest Import](https://docs.eazecustoms.com/implementation/manifest-import.md). Wait until the Operation status is `succeeded`.

**3. Read the Declarations**

Call [List Declarations](https://docs.eazecustoms.com/api-reference/declarations/list-declarations.md) with the Shipment ID. Call [Get Declaration](https://docs.eazecustoms.com/api-reference/declarations/get-declaration.md) with a Declaration ID from that list. Get Declaration adds `businessData` and `customsOutcome`. The list stays a summary.

**4. Read the goods items**

Call [List Goods Items](https://docs.eazecustoms.com/api-reference/declarations/list-goods-items.md) with the Declaration ID. Item numbers, commodity codes, weights, and values come from the imported file and any selected Declaration Templates.

There is no separate Export write API. Export uses the same Shipment, template, import, and read endpoints with `shipmentType: EXPORT`. There is no Export webhook. Import release and completion webhooks are described in [Webhook Events](https://docs.eazecustoms.com/webhooks/events.md). Configure them in the portal and verify the signature before you use the notification. See [Set Up Webhooks](https://docs.eazecustoms.com/webhooks/setup.md) and [Verify Signatures](https://docs.eazecustoms.com/webhooks/verify-signatures.md).

## Working example

```bash theme={null}
curl 'https://staging.api.eazecustoms.com/public/v1/shipments/22222222-2222-4222-8222-222222222222/declarations' \
  --header 'Authorization: Bearer EZ_11111111-1111-4111-8111-111111111111_exampleSecretValueNotReal' \
  --header 'X-Eaze-Client-Ref: ACME-AMS'
```

```json theme={null}
{
  "data": [
    {
      "id": "33333333-3333-4333-8333-333333333333",
      "shipmentId": "22222222-2222-4222-8222-222222222222",
      "shipmentType": "IMPORT",
      "lrn": "26NL00000000001421",
      "mrn": null,
      "commercialReference": "PO-44821",
      "customsStatus": "CREATED",
      "controlTypes": [],
      "progress": { "code": null, "lifecycle": "new" },
      "summary": {
        "procedureType": "H1",
        "declarationType": "IM",
        "additionalDeclarationType": "A",
        "countryOfDispatch": "CN",
        "countryOfDestination": "NL",
        "totalInvoicePrice": "1250.00",
        "invoiceCurrency": "EUR",
        "grossMass": "42.500",
        "goodsItems": 2
      }
    }
  ],
  "pagination": { "limit": 20, "hasMore": false, "nextCursor": null }
}
```

`customsStatus` uses the status name, such as `CREATED` or `RELEASED`. `RELEASED` means Customs released the goods. `COMPLETED` means the declaration process is finished. They are not the same. The full list is on [Statuses](https://docs.eazecustoms.com/implementation/statuses.md).

Get Declaration returns the same summary plus `businessData` and `customsOutcome`. Amounts are decimal strings. A party that is not on the Declaration is `null`.

```bash theme={null}
curl 'https://staging.api.eazecustoms.com/public/v1/declarations/33333333-3333-4333-8333-333333333333' \
  --header 'Authorization: Bearer EZ_11111111-1111-4111-8111-111111111111_exampleSecretValueNotReal' \
  --header 'X-Eaze-Client-Ref: ACME-AMS'
```

```json theme={null}
{
  "id": "33333333-3333-4333-8333-333333333333",
  "shipmentId": "22222222-2222-4222-8222-222222222222",
  "shipmentType": "IMPORT",
  "lrn": "26NL00000000044821",
  "mrn": null,
  "commercialReference": "PO-44821",
  "customsStatus": "CREATED",
  "controlTypes": [],
  "progress": { "code": null, "lifecycle": "new" },
  "summary": {
    "procedureType": "H1",
    "declarationType": "IM",
    "additionalDeclarationType": "A",
    "countryOfDispatch": "CN",
    "countryOfDestination": "NL",
    "totalInvoicePrice": "1250.00",
    "invoiceCurrency": "EUR",
    "grossMass": "42.500",
    "goodsItems": 2
  },
  "timestamps": {
    "createdAt": "2026-11-17T09:12:00.000Z",
    "updatedAt": "2026-11-17T09:12:00.000Z",
    "customsSubmittedAt": null,
    "acceptedAt": null,
    "clearedAt": null,
    "exitedAt": null
  },
  "businessData": {
    "representation": "DIRECT",
    "parties": {
      "consignee": {
        "name": "Buyer BV",
        "eori": "NL123456789",
        "address": {
          "street": "Harbour 1",
          "city": "Rotterdam",
          "state": null,
          "postcode": "3011AA",
          "country": "NL"
        }
      },
      "consignor": null,
      "declarant": null,
      "representative": null,
      "carrier": null,
      "importer": {
        "name": "Buyer BV",
        "eori": "NL123456789",
        "address": {
          "street": "Harbour 1",
          "city": "Rotterdam",
          "state": null,
          "postcode": "3011AA",
          "country": "NL"
        }
      },
      "exporter": null,
      "buyer": null,
      "seller": null,
      "payer": null,
      "vatPayer": null,
      "receivingPoint": null,
      "guarantor": null,
      "surety": null
    },
    "countries": {
      "dispatch": "CN",
      "destination": "NL",
      "border": "NL",
      "routing": [{ "sequenceNumber": 1, "country": "BE" }]
    },
    "offices": {
      "declaration": "NL000432",
      "supervising": "NL000456",
      "export": null,
      "exit": null
    },
    "locations": {
      "goods": { "type": "B", "qualifier": "U", "details": { "unlocode": "NLRTM" } },
      "warehouse": { "type": null, "identifier": null }
    },
    "transport": {
      "containerIndicator": false,
      "equipment": [],
      "inland": {
        "mode": "3",
        "identificationType": "30",
        "identification": "TRUCK-1",
        "nationality": "NL"
      },
      "border": {
        "mode": null,
        "identificationType": null,
        "identification": null,
        "nationality": null
      }
    },
    "transaction": {
      "nature": "11",
      "paymentMethod": "A",
      "vatPaymentMode": null,
      "incoterm": "CIF",
      "incotermLocation": "Rotterdam"
    },
    "costs": {
      "freight": { "amount": "10.00", "currency": "EUR", "paymentMethod": "A" },
      "insurance": { "amount": null, "currency": null },
      "adjustment": { "amount": null, "currency": null }
    },
    "security": {
      "code": "NONE",
      "specificCircumstances": null,
      "presentationAt": null,
      "mutualRecognitionParties": []
    },
    "guarantee": {
      "type": null,
      "reference": null,
      "otherReference": null,
      "office": null,
      "amount": null,
      "currency": null
    }
  },
  "customsOutcome": { "provisionalRelease": false, "provisionalTax": false }
}
```

`representation` is `DIRECT`, `INDIRECT`, `NONE`, or `null`. `customsOutcome.provisionalRelease` and `provisionalTax` are booleans. Export uses the same object. Its offices use `export` and `exit` when those values are stored.

## Statuses and errors

| Situation | What to do |
| - | - |
| The Declaration list is empty | The import has not succeeded yet, or the Shipment has no clearance declarations. Read the Operation. |
| HTTP 404 | The Shipment or Declaration ID is not visible for this client. |
| HTTP 403 | The credential does not include the `import` or `export` module for this direction. |

Documents that Customs or Eaze Customs generates later are listed separately. A release status does not mean a PDF is ready. See [Documents](https://docs.eazecustoms.com/implementation/documents.md).

Next: [Manifest & Declaration Templates](https://docs.eazecustoms.com/implementation/templates.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.