> ## 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 Goods Items

> List the Goods Items on one Import or Export Declaration.



## OpenAPI

````yaml /openapi/public-v1.json get /public/v1/declarations/{declarationId}/goods-items
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/declarations/{declarationId}/goods-items:
    get:
      summary: List Goods Items
      description: List the Goods Items on one Import or Export Declaration.
      operationId: PublicDeclarations_listGoodsItems
      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: declarationId
          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/PublicGoodsItemPageDto'
              example:
                data:
                  - id: 66666666-6666-4666-8666-666666666666
                    declarationId: 33333333-3333-4333-8333-333333333333
                    itemNumber: 1
                    description: Cotton shirts
                    commodityCode: '6205200090'
                    originCountry: CN
                    preferentialOriginCountry: null
                    commercialReference: PO-44821-1
                    quantities:
                      declared: '20'
                      supplementary: null
                      supplementaryUnit: null
                    weights:
                      net: '18.000'
                      gross: '20.000'
                    values:
                      invoice: '400.00'
                      invoiceCurrency: EUR
                      statistical: null
                      customs: null
                      declaredCustoms: null
                      transportCost: null
                      transportCostCurrency: null
                      insuranceCost: null
                      insuranceCostCurrency: null
                    procedure:
                      current: '40'
                      previous: '00'
                      additional: null
                    timestamps:
                      createdAt: '2026-11-17T09:12:00.000Z'
                      updatedAt: '2026-11-17T09:12:00.000Z'
                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:
    PublicGoodsItemPageDto:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/PublicGoodsItemDto'
          description: Goods items 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
    PublicGoodsItemDto:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Public Goods Item ID.
        declarationId:
          type: string
          format: uuid
          description: Public Declaration ID this goods item belongs to.
        itemNumber:
          type: number
          minimum: 1
          description: Position of this goods item on the declaration, starting at 1.
        description:
          type: string
          description: Description of the goods.
        commodityCode:
          type: string
          nullable: true
          description: Commodity code for the goods.
        originCountry:
          type: string
          nullable: true
          description: Two-letter country code of origin.
        preferentialOriginCountry:
          type: string
          nullable: true
          description: Two-letter country code used for a preferential origin claim.
        commercialReference:
          type: string
          nullable: true
          description: Your commercial reference for this goods item.
        quantities:
          $ref: '#/components/schemas/PublicGoodsItemQuantityDto'
          description: Declared quantity and any supplementary quantity.
        weights:
          $ref: '#/components/schemas/PublicGoodsItemWeightDto'
          description: Net and gross weight of this goods item.
        values:
          $ref: '#/components/schemas/PublicGoodsItemValuesDto'
          description: Invoice, statistical, customs, transport, and insurance values.
        procedure:
          $ref: '#/components/schemas/PublicGoodsItemProcedureDto'
          description: Current, previous, and additional procedure codes.
        timestamps:
          $ref: '#/components/schemas/PublicGoodsItemTimestampsDto'
          description: When this goods item was created and last changed.
      required:
        - id
        - declarationId
        - itemNumber
        - description
        - commodityCode
        - originCountry
        - preferentialOriginCountry
        - commercialReference
        - quantities
        - weights
        - values
        - procedure
        - 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
    PublicGoodsItemQuantityDto:
      type: object
      properties:
        declared:
          type: string
          nullable: true
          description: Declared quantity. A decimal number sent as text.
        supplementary:
          type: string
          nullable: true
          description: Supplementary quantity. A decimal number sent as text.
        supplementaryUnit:
          type: string
          nullable: true
          description: Unit of the supplementary quantity.
      required:
        - declared
        - supplementary
        - supplementaryUnit
    PublicGoodsItemWeightDto:
      type: object
      properties:
        net:
          type: string
          nullable: true
          description: Net weight. A decimal number sent as text.
        gross:
          type: string
          nullable: true
          description: Gross weight. A decimal number sent as text.
      required:
        - net
        - gross
    PublicGoodsItemValuesDto:
      type: object
      properties:
        invoice:
          type: string
          description: Invoice value of this item. A decimal number sent as text.
        invoiceCurrency:
          type: string
          nullable: true
          description: Currency of the invoice value, such as EUR.
        statistical:
          type: string
          nullable: true
          description: Statistical value. A decimal number sent as text.
        customs:
          type: string
          nullable: true
          description: Customs value. A decimal number sent as text.
        declaredCustoms:
          type: string
          nullable: true
          description: Customs value you declared. A decimal number sent as text.
        transportCost:
          type: string
          nullable: true
          description: Transport cost for this item. A decimal number sent as text.
        transportCostCurrency:
          type: string
          nullable: true
          description: Currency of the transport cost.
        insuranceCost:
          type: string
          nullable: true
          description: Insurance cost for this item. A decimal number sent as text.
        insuranceCostCurrency:
          type: string
          nullable: true
          description: Currency of the insurance cost.
      required:
        - invoice
        - invoiceCurrency
        - statistical
        - customs
        - declaredCustoms
        - transportCost
        - transportCostCurrency
        - insuranceCost
        - insuranceCostCurrency
    PublicGoodsItemProcedureDto:
      type: object
      properties:
        current:
          type: string
          nullable: true
          description: Requested procedure code for this item.
        previous:
          type: string
          nullable: true
          description: Previous procedure code for this item.
        additional:
          type: string
          nullable: true
          description: Additional procedure codes for this item.
      required:
        - current
        - previous
        - additional
    PublicGoodsItemTimestampsDto:
      type: object
      properties:
        createdAt:
          type: string
          nullable: true
          format: date-time
          description: >-
            When this goods item 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 this goods item was last changed. Date and time in ISO 8601
            format. Example: 2026-11-17T10:30:00Z.
      required:
        - createdAt
        - updatedAt
  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.