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

> Check the result of background work, such as Shipment Manifest Import or NCTS Departure Import.

- **HTTP 202:** The import request was accepted, but processing is not yet complete.
- **Check the final result:** Use the Operation status and errors to confirm whether the import succeeded. Progress reaching 100% does not necessarily mean success.



## OpenAPI

````yaml /openapi/public-v1.json get /public/v1/operations/{operationId}
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/operations/{operationId}:
    get:
      summary: Get Operation
      description: >-
        Check the result of background work, such as Shipment Manifest Import or
        NCTS Departure Import.


        - **HTTP 202:** The import request was accepted, but processing is not
        yet complete.

        - **Check the final result:** Use the Operation status and errors to
        confirm whether the import succeeded. Progress reaching 100% does not
        necessarily mean success.
      operationId: PublicOperations_getOperation
      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: operationId
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicOperationDto'
              example:
                id: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
                type: shipment.details.import
                status: succeeded
                progress: 100
                resource:
                  type: shipment
                  id: 22222222-2222-4222-8222-222222222222
                result:
                  mode: initial
                  declarationsCreated: 1
                  goodsItemsCreated: 2
                error: null
                attemptCount: 1
                createdAt: '2026-11-17T09:10:00.000Z'
                startedAt: '2026-11-17T09:10:02.000Z'
                completedAt: '2026-11-17T09:10:20.000Z'
                updatedAt: '2026-11-17T09:10:20.000Z'
        '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:
    PublicOperationDto:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Public Operation ID. Use it to read this operation again.
        type:
          type: string
          example: ncts.details.import
          description: >-
            Kind of background job, such as shipment.details.import or
            ncts.details.import.
        status:
          type: string
          enum:
            - queued
            - running
            - requires_review
            - succeeded
            - partially_succeeded
            - failed
            - canceled
          description: >-
            queued and running are still in progress. succeeded,
            partially_succeeded, failed, requires_review, and canceled are
            finished. Read error as well as status.
        progress:
          type: number
          minimum: 0
          maximum: 100
          description: >-
            Whole number from 0 to 100. A value of 100 means processing
            finished, not that the business result succeeded.
        resource:
          nullable: true
          allOf:
            - $ref: '#/components/schemas/PublicOperationResourceDto'
          description: Shipment or transit declaration this operation is working on.
        result:
          nullable: true
          description: >-
            Business result of a finished operation. It stays null until the
            operation completes successfully. Read the fields that match the
            operation type.
          oneOf:
            - $ref: '#/components/schemas/PublicShipmentManifestImportResultDto'
            - $ref: '#/components/schemas/PublicNctsDetailsImportResultDto'
        error:
          nullable: true
          allOf:
            - $ref: '#/components/schemas/PublicOperationErrorDto'
          description: >-
            Present when the operation did not succeed. retryable tells you
            whether the same request can be tried again.
        attemptCount:
          type: number
          minimum: 0
          description: How many times this operation has been tried.
        createdAt:
          format: date-time
          type: string
          description: >-
            When this operation was created. Date and time in ISO 8601 format.
            Example: 2026-11-17T10:30:00Z.
        startedAt:
          type: string
          nullable: true
          format: date-time
          description: >-
            When processing started. Date and time in ISO 8601 format. Example:
            2026-11-17T10:30:00Z.
        completedAt:
          type: string
          nullable: true
          format: date-time
          description: >-
            When processing finished. Date and time in ISO 8601 format. Example:
            2026-11-17T10:30:00Z.
        updatedAt:
          format: date-time
          type: string
          description: >-
            When this operation was last changed. Date and time in ISO 8601
            format. Example: 2026-11-17T10:30:00Z.
      required:
        - id
        - type
        - status
        - progress
        - attemptCount
        - createdAt
        - updatedAt
    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
    PublicOperationResourceDto:
      type: object
      properties:
        type:
          type: string
          description: Kind of resource, such as shipment or transit_declaration.
        id:
          type: string
          description: Public ID of the shipment or transit declaration.
      required:
        - type
        - id
    PublicShipmentManifestImportResultDto:
      type: object
      additionalProperties: false
      description: Result of a finished shipment manifest import.
      properties:
        mode:
          type: string
          enum:
            - initial
          description: >-
            Import mode. initial means the manifest was imported into an empty
            shipment.
        declarationsCreated:
          type: integer
          description: Number of declarations created from the manifest.
        goodsItemsCreated:
          type: integer
          description: Number of goods items created from the manifest.
      required:
        - mode
        - declarationsCreated
        - goodsItemsCreated
    PublicNctsDetailsImportResultDto:
      type: object
      additionalProperties: false
      description: Result of a finished NCTS departure details import.
      properties:
        mode:
          type: string
          enum:
            - replace_all
          description: >-
            Import mode. replace_all means the import replaced the house
            consignments and goods items.
        housesCreated:
          type: integer
          description: Number of house consignments created from the file.
        itemsImported:
          type: integer
          description: Number of goods items imported from the file.
        totalWeight:
          type: number
          description: Total gross weight of the imported goods.
        validationErrors:
          type: integer
          description: Number of validation problems found while reading the file.
        validationQueued:
          type: boolean
          description: True when declaration validation was queued after the import.
      required:
        - mode
        - housesCreated
        - itemsImported
        - totalWeight
        - validationErrors
        - validationQueued
    PublicOperationErrorDto:
      type: object
      properties:
        code:
          type: string
          description: >-
            Machine-readable result code, such as manifest_invalid or
            import_file_invalid.
        detail:
          type: string
          nullable: true
          description: >-
            Plain-language explanation. For a mismatched Manifest Template, this
            text names the selected template and, when exactly one other
            authorized template matches the file, names that alternative. The
            alternative is not applied automatically. There are no separate
            suggestion fields.
        retryable:
          type: boolean
          description: >-
            True when the same request can be tried again later. False when you
            must correct the file or the request and start a new upload.
      required:
        - code
        - retryable
    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
  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.