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

# List Declarations

> List Import or Export Declarations created for one Shipment. Each item is a summary and omits businessData and customsOutcome.



## OpenAPI

````yaml /openapi/public-v1.json get /public/v1/shipments/{shipmentId}/declarations
openapi: 3.0.0
info:
  title: Eaze Customs Public API
  version: '1.0'
  description: >-
    Customer API for Shipments, Import and Export Declarations, NCTS Departure
    and Arrival, RTO, and documents. Configure webhook endpoints in the Eaze
    Customs Portal. Authenticate with an Eaze Customs API credential. Staging —
    For Integration Testing: https://staging.api.eazecustoms.com. All routes in
    this specification start with /public/v1.
servers:
  - url: https://staging.api.eazecustoms.com
    description: >-
      Staging — For Integration Testing. Do not append /public/v1. That prefix
      is already part of each path.
security:
  - bearer: []
paths:
  /public/v1/shipments/{shipmentId}/declarations:
    get:
      summary: List Declarations
      description: >-
        List Import or Export Declarations created for one Shipment. Each item
        is a summary and omits businessData and customsOutcome.
      operationId: PublicShipments_listDeclarations
      parameters:
        - name: X-Eaze-Client-Ref
          in: header
          description: >-
            Required. Send the clientRef returned by List Clients. Do not send
            this header on Get Credential Details or List Clients.
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 100
            example: ACME-AMS
          example: ACME-AMS
        - name: shipmentId
          required: true
          in: path
          schema:
            type: string
        - name: limit
          required: false
          in: query
          x-nestjs_zod-parent-additional-properties: false
          schema:
            minimum: 1
            maximum: 100
            default: 20
            type: integer
          description: >-
            Maximum number of items to return. Use a whole number from 1 to 100.
            The default is 20.
        - name: cursor
          required: false
          in: query
          x-nestjs_zod-parent-additional-properties: false
          schema:
            minLength: 1
            maxLength: 2048
            type: string
          description: >-
            Page token from the previous response. Send it unchanged. Leave it
            out to start from the first page. A cursor expires, and it only
            works with the same filters.
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicDeclarationPageDto'
              example:
                data:
                  - 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
                pagination:
                  limit: 20
                  hasMore: false
                  nextCursor: null
        '400':
          description: E0001 — malformed or invalid request.
          headers:
            X-Request-Id:
              description: >-
                Globally unique request UUID; identical to requestId in the
                error body and structured logs.
              schema:
                type: string
                format: uuid
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
              example:
                errorCode: E0001
                message: Invalid request parameters
                errors:
                  - field: shipmentType
                    message: 'Invalid option: expected one of "IMPORT"|"EXPORT"'
                requestId: 550e8400-e29b-41d4-a716-446655440000
        '401':
          description: >-
            E0002 — missing, invalid, expired or revoked Eaze Customs API
            credential.
          headers:
            X-Request-Id:
              description: >-
                Globally unique request UUID; identical to requestId in the
                error body and structured logs.
              schema:
                type: string
                format: uuid
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
              example:
                errorCode: E0002
                message: >-
                  Missing, invalid, expired or revoked Eaze Customs API
                  credential
                errors: []
                requestId: 550e8400-e29b-41d4-a716-446655440000
        '403':
          description: E0003 — credential, module or client authorization denied.
          headers:
            X-Request-Id:
              description: >-
                Globally unique request UUID; identical to requestId in the
                error body and structured logs.
              schema:
                type: string
                format: uuid
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
              example:
                errorCode: E0003
                message: The import module is not enabled for this credential
                errors: []
                requestId: 550e8400-e29b-41d4-a716-446655440000
        '404':
          description: E0004 — authorized resource not found.
          headers:
            X-Request-Id:
              description: >-
                Globally unique request UUID; identical to requestId in the
                error body and structured logs.
              schema:
                type: string
                format: uuid
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
              example:
                errorCode: E0004
                message: Shipment not found
                errors: []
                requestId: 550e8400-e29b-41d4-a716-446655440000
        '429':
          description: >-
            E0008 — Public API rate limit exceeded; retry after the indicated
            delay.
          headers:
            X-Request-Id:
              description: >-
                Globally unique request UUID; identical to requestId in the
                error body and structured logs.
              schema:
                type: string
                format: uuid
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
              example:
                errorCode: E0008
                message: Public API rate limit exceeded
                errors: []
                requestId: 550e8400-e29b-41d4-a716-446655440000
        '500':
          description: >-
            E0009 — unexpected server error; report requestId if the problem
            persists.
          headers:
            X-Request-Id:
              description: >-
                Globally unique request UUID; identical to requestId in the
                error body and structured logs.
              schema:
                type: string
                format: uuid
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
              example:
                errorCode: E0009
                message: Unexpected server error
                errors: []
                requestId: 550e8400-e29b-41d4-a716-446655440000
      security:
        - bearer: []
components:
  schemas:
    PublicDeclarationPageDto:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/PublicDeclarationDto'
          description: Declarations on this page.
        pagination:
          $ref: '#/components/schemas/PublicCursorPaginationDto'
          description: >-
            Page size, whether another page is available, and the cursor for
            that page.
      required:
        - data
        - pagination
    PublicApiError:
      type: object
      required:
        - errorCode
        - message
        - errors
        - requestId
      properties:
        errorCode:
          type: string
          example: E0001
        message:
          type: string
          example: Invalid request parameters
        errors:
          type: array
          items:
            $ref: '#/components/schemas/PublicApiValidationIssue'
        requestId:
          type: string
          format: uuid
          example: 550e8400-e29b-41d4-a716-446655440000
    PublicDeclarationDto:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Public Declaration ID. Use it for goods items and documents.
        shipmentId:
          type: string
          format: uuid
          description: Public Shipment ID this declaration belongs to.
        shipmentType:
          type: string
          enum:
            - IMPORT
            - EXPORT
          description: IMPORT or EXPORT, taken from the shipment.
        lrn:
          type: string
          description: Local Reference Number assigned by Eaze Customs.
        mrn:
          type: string
          nullable: true
          description: >-
            Movement Reference Number assigned by Customs. Null until Customs
            assigns one.
        commercialReference:
          type: string
          description: Your commercial reference for this declaration.
        customsStatus:
          type: string
          nullable: true
          description: >-
            Current declaration status, such as CREATED, RELEASED, or COMPLETED.
            See the status guide for the meaning of each value.
        controlTypes:
          type: array
          items:
            type: string
          description: >-
            Customs controls on this declaration. PHYSICAL_CONTROL is a physical
            check. DOC_CONTROL is a document check. Empty when no control is
            selected.
        progress:
          $ref: '#/components/schemas/PublicDeclarationProgressDto'
          description: Progress code and lifecycle stage of this declaration.
        summary:
          $ref: '#/components/schemas/PublicDeclarationSummaryDto'
          description: Procedure, countries, invoice value, mass, and goods item count.
        timestamps:
          $ref: '#/components/schemas/PublicDeclarationTimestampsDto'
          description: >-
            When the declaration was created, sent to Customs, accepted,
            cleared, and exited.
      required:
        - id
        - shipmentId
        - shipmentType
        - lrn
        - mrn
        - commercialReference
        - customsStatus
        - controlTypes
        - progress
        - summary
        - timestamps
    PublicCursorPaginationDto:
      type: object
      properties:
        limit:
          type: number
          minimum: 1
          maximum: 100
          example: 20
          description: Maximum number of items returned in this page.
        hasMore:
          type: boolean
          description: True when another page is available. Stop when this is false.
        nextCursor:
          type: string
          nullable: true
          description: >-
            Pass this value unchanged as the cursor query parameter. It expires.
            The default lifetime is one hour.
      required:
        - limit
        - hasMore
    PublicApiValidationIssue:
      type: object
      required:
        - message
      properties:
        field:
          type: string
          example: filename
        code:
          type: string
          example: invalid_format
        message:
          type: string
          example: Filename contains unsupported characters
    PublicDeclarationProgressDto:
      type: object
      properties:
        code:
          type: string
          nullable: true
          description: Finer progress code for this declaration.
        lifecycle:
          type: string
          nullable: true
          enum:
            - new
            - inClearance
            - control
            - exception
            - completed
          description: >-
            Stage of the declaration: new, inClearance, control, exception, or
            completed.
      required:
        - code
        - lifecycle
    PublicDeclarationSummaryDto:
      type: object
      properties:
        procedureType:
          type: string
          nullable: true
          description: Customs procedure, such as H1, H7, or B1.
        declarationType:
          type: string
          nullable: true
          description: Declaration type code, such as IM or EX.
        additionalDeclarationType:
          type: string
          nullable: true
          description: Additional declaration type, such as A for a standard declaration.
        countryOfDispatch:
          type: string
          nullable: true
          description: Two-letter country code where the goods were sent from.
        countryOfDestination:
          type: string
          nullable: true
          description: Two-letter country code of the destination.
        totalInvoicePrice:
          type: string
          nullable: true
          description: >-
            Total invoice value. A decimal number sent as text, such as
            "1250.00".
        invoiceCurrency:
          type: string
          nullable: true
          description: Currency of the invoice total, such as EUR.
        grossMass:
          type: string
          nullable: true
          description: Total gross mass. A decimal number sent as text, such as "42.500".
        goodsItems:
          type: number
          description: Number of goods items on this declaration.
      required:
        - procedureType
        - declarationType
        - additionalDeclarationType
        - countryOfDispatch
        - countryOfDestination
        - totalInvoicePrice
        - invoiceCurrency
        - grossMass
        - goodsItems
    PublicDeclarationTimestampsDto:
      type: object
      properties:
        createdAt:
          type: string
          nullable: true
          format: date-time
          description: >-
            When the declaration was created. Date and time in ISO 8601 format.
            Example: 2026-11-17T10:30:00Z.
        updatedAt:
          type: string
          nullable: true
          format: date-time
          description: >-
            When the declaration was last changed. Date and time in ISO 8601
            format. Example: 2026-11-17T10:30:00Z.
        customsSubmittedAt:
          type: string
          nullable: true
          format: date-time
          description: >-
            When the declaration was sent to Customs. Date and time in ISO 8601
            format. Example: 2026-11-17T10:30:00Z.
        acceptedAt:
          type: string
          nullable: true
          format: date-time
          description: >-
            When Customs accepted the declaration. Date and time in ISO 8601
            format. Example: 2026-11-17T10:30:00Z.
        clearedAt:
          type: string
          nullable: true
          format: date-time
          description: >-
            When Customs cleared the declaration. Date and time in ISO 8601
            format. Example: 2026-11-17T10:30:00Z.
        exitedAt:
          type: string
          nullable: true
          format: date-time
          description: >-
            When the goods exited. Date and time in ISO 8601 format. Example:
            2026-11-17T10:30:00Z.
      required:
        - createdAt
        - updatedAt
        - customsSubmittedAt
        - acceptedAt
        - clearedAt
        - exitedAt
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: EZ_<credential-id>_<secret>
      type: http
      description: >-
        Send Authorization: Bearer followed by the full Eaze Customs API
        credential. The credential looks like EZ_<credential-id>_<secret>. It is
        shown only when Eaze Customs creates or rotates it.

````

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