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

# Get Declaration

> Retrieve one Import or Export Declaration, including parties, transport, locations, costs, guarantee references, Customs status, and the LRN and MRN when available.



## OpenAPI

````yaml /openapi/public-v1.json get /public/v1/declarations/{declarationId}
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}:
    get:
      summary: Get Declaration
      description: >-
        Retrieve one Import or Export Declaration, including parties, transport,
        locations, costs, guarantee references, Customs status, and the LRN and
        MRN when available.
      operationId: PublicDeclarations_findOne
      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
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicDeclarationDetailDto'
              example:
                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
        '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:
    PublicDeclarationDetailDto:
      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.
        businessData:
          allOf:
            - $ref: '#/components/schemas/PublicDeclarationBusinessDataDto'
          description: >-
            Parties, countries, offices, locations, transport, transaction,
            costs, security, and guarantee references stored on the Declaration.
            A missing party is null. Amounts are decimal strings.
        customsOutcome:
          allOf:
            - $ref: '#/components/schemas/PublicDeclarationCustomsOutcomeDto'
          description: provisionalRelease and provisionalTax for the current Declaration.
      required:
        - id
        - shipmentId
        - shipmentType
        - lrn
        - mrn
        - commercialReference
        - customsStatus
        - controlTypes
        - progress
        - summary
        - timestamps
        - businessData
        - customsOutcome
    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
    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
    PublicDeclarationBusinessDataDto:
      type: object
      additionalProperties: false
      description: >-
        Parties, route, offices, locations, transport, commercial terms, costs,
        security, and guarantee stored on the declaration.
      properties:
        representation:
          type: string
          nullable: true
          enum:
            - DIRECT
            - INDIRECT
            - NONE
          description: >-
            Who files with Customs. DIRECT means the party files in its own
            name. INDIRECT means a representative files in their own name. NONE
            means no representative is used.
        parties:
          type: object
          additionalProperties: false
          description: >-
            Parties named on the declaration. A role is null when that party is
            not stored.
          properties:
            consignee:
              nullable: true
              description: Party that receives the goods.
              allOf:
                - $ref: '#/components/schemas/PublicPartyDto'
            consignor:
              nullable: true
              description: Party that sends the goods.
              allOf:
                - $ref: '#/components/schemas/PublicPartyDto'
            declarant:
              nullable: true
              description: Party that files the declaration.
              allOf:
                - $ref: '#/components/schemas/PublicPartyDto'
            representative:
              nullable: true
              description: Party that represents the declarant.
              allOf:
                - $ref: '#/components/schemas/PublicPartyDto'
            carrier:
              nullable: true
              description: Party that transports the goods.
              allOf:
                - $ref: '#/components/schemas/PublicPartyDto'
            importer:
              nullable: true
              description: Party that brings the goods into the country.
              allOf:
                - $ref: '#/components/schemas/PublicPartyDto'
            exporter:
              nullable: true
              description: Party that sends the goods out of the country.
              allOf:
                - $ref: '#/components/schemas/PublicPartyDto'
            buyer:
              nullable: true
              description: Party that buys the goods.
              allOf:
                - $ref: '#/components/schemas/PublicPartyDto'
            seller:
              nullable: true
              description: Party that sells the goods.
              allOf:
                - $ref: '#/components/schemas/PublicPartyDto'
            payer:
              nullable: true
              description: Party that pays the customs debt.
              allOf:
                - $ref: '#/components/schemas/PublicPartyDto'
            vatPayer:
              nullable: true
              description: Party that pays the VAT.
              allOf:
                - $ref: '#/components/schemas/PublicPartyDto'
            receivingPoint:
              nullable: true
              description: Place or party that takes delivery of the goods.
              allOf:
                - $ref: '#/components/schemas/PublicPartyDto'
            guarantor:
              nullable: true
              description: Party that provides the customs guarantee.
              allOf:
                - $ref: '#/components/schemas/PublicPartyDto'
            surety:
              nullable: true
              description: Party that stands as surety for the guarantee.
              allOf:
                - $ref: '#/components/schemas/PublicPartyDto'
          required:
            - consignee
            - consignor
            - declarant
            - representative
            - carrier
            - importer
            - exporter
            - buyer
            - seller
            - payer
            - vatPayer
            - receivingPoint
            - guarantor
            - surety
        countries:
          type: object
          additionalProperties: false
          description: >-
            Countries of dispatch, destination, border crossing, and the route
            between them.
          properties:
            dispatch:
              type: string
              nullable: true
              description: >-
                Two-letter country code where the goods were dispatched, such as
                CN.
            destination:
              type: string
              nullable: true
              description: Two-letter country code of the destination, such as NL.
            border:
              type: string
              nullable: true
              description: Two-letter country code of the border crossing.
            routing:
              type: array
              description: Countries the goods pass through, in order.
              items:
                type: object
                additionalProperties: false
                description: One country on the route of the goods.
                properties:
                  sequenceNumber:
                    type: integer
                    nullable: true
                    description: Position of this country in the route.
                  country:
                    type: string
                    description: Two-letter country code, such as BE.
                required:
                  - country
          required:
            - dispatch
            - destination
            - border
            - routing
        offices:
          type: object
          additionalProperties: false
          description: Customs offices responsible for this declaration.
          properties:
            declaration:
              type: string
              nullable: true
              description: >-
                Customs office where the declaration is lodged, such as
                NL000432.
            supervising:
              type: string
              nullable: true
              description: Customs office that supervises the procedure.
            export:
              type: string
              nullable: true
              description: Customs office of export.
            exit:
              type: string
              nullable: true
              description: Customs office where the goods leave the customs territory.
          required:
            - declaration
            - supervising
            - export
            - exit
        locations:
          type: object
          additionalProperties: false
          description: Where the goods are held and, when used, the customs warehouse.
          properties:
            goods:
              type: object
              additionalProperties: false
              description: Place where the goods are located.
              properties:
                type:
                  type: string
                  nullable: true
                  description: >-
                    Kind of place where the goods are held. One character, such
                    as B for an authorized place.
                qualifier:
                  type: string
                  nullable: true
                  description: >-
                    What the location details identify. One character, such as U
                    for a UN/LOCODE.
                details:
                  nullable: true
                  description: Identifiers and address stored for this goods location.
                  allOf:
                    - $ref: '#/components/schemas/PublicGoodsLocationDetailsDto'
              required:
                - type
                - qualifier
                - details
            warehouse:
              type: object
              additionalProperties: false
              description: Customs warehouse linked to the declaration.
              properties:
                type:
                  type: string
                  nullable: true
                  description: Type of customs warehouse.
                identifier:
                  type: string
                  nullable: true
                  description: Identifier of the customs warehouse.
              required:
                - type
                - identifier
          required:
            - goods
            - warehouse
        transport:
          type: object
          additionalProperties: false
          description: >-
            Container, equipment, and inland and border transport for the
            declaration.
          properties:
            containerIndicator:
              type: boolean
              description: True when the goods travel in a container.
            equipment:
              type: array
              description: Containers or other equipment used for the goods.
              items:
                type: object
                additionalProperties: false
                description: >-
                  One piece of transport equipment and the seals and goods items
                  attached to it.
                properties:
                  sequenceNumber:
                    type: integer
                    nullable: true
                    description: Position of this equipment in the list.
                  equipmentType:
                    type: string
                    nullable: true
                    enum:
                      - CONTAINER
                      - TRAILER
                      - OTHER
                    description: 'Kind of equipment: CONTAINER, TRAILER, or OTHER.'
                  containerIdentificationNumber:
                    type: string
                    description: Container or equipment identification number.
                  sealsAffixedQuantity:
                    type: integer
                    nullable: true
                    description: How many seals are attached to this equipment.
                  seals:
                    type: array
                    description: Seals attached to this equipment.
                    items:
                      type: object
                      additionalProperties: false
                      description: One seal on the equipment.
                      properties:
                        sequenceNumber:
                          type: integer
                          nullable: true
                          description: Position of this seal.
                        identifier:
                          type: string
                          description: Seal number.
                      required:
                        - identifier
                    nullable: true
                  goodsReferences:
                    type: array
                    description: Goods items carried in this equipment.
                    items:
                      type: object
                      additionalProperties: false
                      description: Link from this equipment to one goods item.
                      properties:
                        sequenceNumber:
                          type: integer
                          nullable: true
                          description: Position of this link.
                        goodsItemNumber:
                          type: integer
                          description: Number of the goods item carried in this equipment.
                      required:
                        - goodsItemNumber
                    nullable: true
                required:
                  - containerIdentificationNumber
            inland:
              type: object
              additionalProperties: false
              description: >-
                Transport that brings the goods inland to the place of unloading
                or loading.
              properties:
                mode:
                  type: string
                  nullable: true
                  description: Mode of transport code, such as 3 for road.
                identificationType:
                  type: string
                  nullable: true
                  description: >-
                    Code that says what kind of identification follows, such as
                    30 for a vehicle registration.
                identification:
                  type: string
                  nullable: true
                  description: >-
                    Identification of the vehicle or conveyance, such as a
                    registration number.
                nationality:
                  type: string
                  nullable: true
                  description: Two-letter country code of the vehicle or conveyance.
              required:
                - mode
                - identificationType
                - identification
                - nationality
            border:
              type: object
              additionalProperties: false
              description: Transport that crosses the border.
              properties:
                mode:
                  type: string
                  nullable: true
                  description: Mode of transport code, such as 3 for road.
                identificationType:
                  type: string
                  nullable: true
                  description: >-
                    Code that says what kind of identification follows, such as
                    30 for a vehicle registration.
                identification:
                  type: string
                  nullable: true
                  description: >-
                    Identification of the vehicle or conveyance, such as a
                    registration number.
                nationality:
                  type: string
                  nullable: true
                  description: Two-letter country code of the vehicle or conveyance.
              required:
                - mode
                - identificationType
                - identification
                - nationality
          required:
            - containerIndicator
            - equipment
            - inland
            - border
        transaction:
          type: object
          additionalProperties: false
          description: Commercial terms of the declaration.
          properties:
            nature:
              type: string
              nullable: true
              description: Nature of the transaction, such as 11 for a sale.
            paymentMethod:
              type: string
              nullable: true
              description: How the commercial transaction is paid.
            vatPaymentMode:
              type: string
              nullable: true
              description: How VAT is paid for this declaration.
            incoterm:
              type: string
              nullable: true
              description: >-
                Incoterm that sets who pays for transport and insurance, such as
                CIF.
            incotermLocation:
              type: string
              nullable: true
              description: Place named in the incoterm, such as Rotterdam.
          required:
            - nature
            - paymentMethod
            - vatPaymentMode
            - incoterm
            - incotermLocation
        costs:
          type: object
          additionalProperties: false
          description: >-
            Freight, insurance, and adjustment amounts that affect the customs
            value.
          properties:
            freight:
              type: object
              additionalProperties: false
              description: Freight charged for the shipment.
              properties:
                amount:
                  type: string
                  nullable: true
                  description: >-
                    Amount of this cost. A decimal number sent as text, such as
                    "12.50".
                currency:
                  type: string
                  nullable: true
                  description: Currency of the amount, such as EUR.
                paymentMethod:
                  type: string
                  nullable: true
                  description: Code for how this cost is paid, such as A.
              required:
                - amount
                - currency
                - paymentMethod
            insurance:
              type: object
              additionalProperties: false
              description: Insurance cost for the goods.
              properties:
                amount:
                  type: string
                  nullable: true
                  description: >-
                    Amount of this cost. A decimal number sent as text, such as
                    "12.50".
                currency:
                  type: string
                  nullable: true
                  description: Currency of the amount, such as EUR.
              required:
                - amount
                - currency
            adjustment:
              type: object
              additionalProperties: false
              description: Other adjustment to the customs value.
              properties:
                amount:
                  type: string
                  nullable: true
                  description: >-
                    Amount of this cost. A decimal number sent as text, such as
                    "12.50".
                currency:
                  type: string
                  nullable: true
                  description: Currency of the amount, such as EUR.
              required:
                - amount
                - currency
          required:
            - freight
            - insurance
            - adjustment
        security:
          type: object
          additionalProperties: false
          description: Safety and security data and additional supply-chain parties.
          properties:
            code:
              type: string
              nullable: true
              description: Security code stored on the declaration.
            specificCircumstances:
              type: string
              nullable: true
              description: Code for a specific security circumstance.
            presentationAt:
              type: string
              format: date-time
              nullable: true
              description: >-
                When the goods are presented to Customs. Date and time in ISO
                8601 format. Example: 2026-11-17T10:30:00Z.
            mutualRecognitionParties:
              type: array
              description: >-
                Additional supply-chain parties recognised for safety and
                security.
              items:
                type: object
                additionalProperties: false
                description: One additional supply-chain party.
                properties:
                  identification:
                    type: string
                    description: EORI or other identification number of this party.
                  role:
                    type: string
                    description: Role of this party in the supply chain.
                  sequence:
                    type: integer
                    nullable: true
                    description: Position of this party in the list.
                required:
                  - identification
                  - role
          required:
            - code
            - specificCircumstances
            - presentationAt
            - mutualRecognitionParties
        guarantee:
          type: object
          additionalProperties: false
          description: Guarantee reference stored on the declaration.
          properties:
            type:
              type: string
              nullable: true
              description: Guarantee type code.
            reference:
              type: string
              nullable: true
              description: Main guarantee reference.
            otherReference:
              type: string
              nullable: true
              description: Second guarantee reference, when one is stored.
            office:
              type: string
              nullable: true
              description: Customs office that holds this guarantee.
            amount:
              type: string
              nullable: true
              description: >-
                Guaranteed amount. A decimal number sent as text, such as
                "12.50".
            currency:
              type: string
              nullable: true
              description: Currency of the guaranteed amount, such as EUR.
          required:
            - type
            - reference
            - otherReference
            - office
            - amount
            - currency
      required:
        - representation
        - parties
        - countries
        - offices
        - locations
        - transport
        - transaction
        - costs
        - security
        - guarantee
    PublicDeclarationCustomsOutcomeDto:
      type: object
      additionalProperties: false
      description: Provisional decisions Customs has recorded for this declaration.
      properties:
        provisionalRelease:
          type: boolean
          description: True when Customs has granted a provisional release.
        provisionalTax:
          type: boolean
          description: True when the declaration has a provisional tax assessment.
      required:
        - provisionalRelease
        - provisionalTax
    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
    PublicPartyDto:
      type: object
      additionalProperties: false
      description: Name, EORI, and address of a party on a declaration.
      properties:
        name:
          type: string
          nullable: true
          description: Legal or trading name of this party.
        eori:
          type: string
          nullable: true
          description: EORI number of this party.
        address:
          type: object
          additionalProperties: false
          description: Postal address of this party.
          properties:
            street:
              type: string
              nullable: true
              description: Street and house number.
            city:
              type: string
              nullable: true
              description: City or town.
            state:
              type: string
              nullable: true
              description: State, province, or region.
            postcode:
              type: string
              nullable: true
              description: Postal code.
            country:
              type: string
              nullable: true
              description: Two-letter country code, such as NL.
          required:
            - street
            - city
            - state
            - postcode
            - country
      required:
        - name
        - eori
        - address
    PublicGoodsLocationDetailsDto:
      type: object
      additionalProperties: false
      description: Identifiers and address for a goods location.
      properties:
        unlocode:
          type: string
          nullable: true
          description: UN/LOCODE of the location, such as NLRTM.
        gnssLatitude:
          type: string
          nullable: true
          description: Latitude of the location.
        gnssLongitude:
          type: string
          nullable: true
          description: Longitude of the location.
        GNSS:
          type: array
          nullable: true
          minItems: 2
          maxItems: 2
          items:
            type: string
            description: One coordinate. Latitude is first and longitude is second.
          description: Latitude and longitude as two text values, latitude first.
        customsOffice:
          type: string
          nullable: true
          description: >-
            Customs office for this location. Two letters and six digits, such
            as NL000432.
        eori:
          type: string
          nullable: true
          description: EORI number of the operator at this location.
        authorizationNo:
          type: string
          nullable: true
          description: Authorization number of the place where the goods are held.
        economicOperator:
          type: string
          nullable: true
          description: Identifier of the economic operator responsible for this location.
        ContactPerson:
          nullable: true
          description: Person to contact at this location.
          allOf:
            - type: object
              additionalProperties: false
              description: Person to contact at this location.
              properties:
                name:
                  type: string
                  description: Name of the contact person.
                phoneNumber:
                  type: string
                  description: Phone number of the contact person.
                eMailAddress:
                  type: string
                  nullable: true
                  description: Email address of the contact person.
              required:
                - name
                - phoneNumber
        Address:
          nullable: true
          description: Postal address of the goods location.
          allOf:
            - type: object
              additionalProperties: false
              description: Postal address of the goods location.
              properties:
                houseNo:
                  type: string
                  nullable: true
                  description: House number.
                street:
                  type: string
                  nullable: true
                  description: Street name.
                city:
                  type: string
                  nullable: true
                  description: City or town.
                stateRegion:
                  type: string
                  nullable: true
                  description: State or region.
                countryCode:
                  type: string
                  nullable: true
                  description: Two-letter country code.
                postCode:
                  type: string
                  nullable: true
                  description: Postal code.
  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.