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

> Check whether your uploaded file is ready to use. Review its status before starting the import. Start the import only when the status is available.



## OpenAPI

````yaml /openapi/public-v1.json get /public/v1/uploads/{uploadId}
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/uploads/{uploadId}:
    get:
      summary: Get Upload
      description: >-
        Check whether your uploaded file is ready to use. Review its status
        before starting the import. Start the import only when the status is
        available.
      operationId: PublicUploads_getStatus
      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: uploadId
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicUploadStatusDto'
              example:
                id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
                purpose: shipment_manifest
                status: available
                filename: manifest.csv
                contentType: text/csv
                byteLength: 73
                sha256: >-
                  4ea9a34e9b058915cb420a3b6f18fee40a6b877b0f330e33b5497c1fc0370a4d
                scanRequired: false
                readyForImport: true
                rejectionCode: null
                expiresAt: '2026-11-17T09:25:00.000Z'
                verifiedAt: '2026-11-17T09:08:00.000Z'
                scannedAt: '2026-11-17T09:08:01.000Z'
                availableAt: '2026-11-17T09:08:01.000Z'
                rejectedAt: 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:
    PublicUploadStatusDto:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Public Upload ID. Send it when you import the file.
        purpose:
          type: string
          enum:
            - ncts_items
            - shipment_manifest
          description: >-
            shipment_manifest for a shipment file. ncts_items for an NCTS
            departure goods file.
        status:
          type: string
          enum:
            - pending
            - quarantined
            - available
            - rejected
            - expired
            - deleted
          description: >-
            pending and quarantined are still being checked. available means you
            can import the file. rejected, expired, and deleted need a new
            upload.
        filename:
          type: string
          description: Name of the uploaded file.
        contentType:
          type: string
          enum:
            - text/csv
            - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
          description: Media type of the uploaded file.
        byteLength:
          type: number
          minimum: 1
          maximum: 20971520
          description: Size of the uploaded file in bytes.
        sha256:
          type: string
          pattern: ^[0-9a-f]{64}$
          description: SHA-256 fingerprint of the uploaded file.
        scanRequired:
          type: boolean
          description: >-
            Legacy field. True only while file checking is still pending. It
            does not mean an antivirus scan.
        readyForImport:
          type: boolean
          description: True only when status is available.
        rejectionCode:
          type: string
          nullable: true
          description: Why the upload was rejected.
        expiresAt:
          type: string
          format: date-time
          description: >-
            When this upload session expires. Date and time in ISO 8601 format.
            Example: 2026-11-17T10:30:00Z.
        verifiedAt:
          type: string
          nullable: true
          format: date-time
          description: >-
            When the file size and fingerprint were checked. Date and time in
            ISO 8601 format. Example: 2026-11-17T10:30:00Z.
        scannedAt:
          type: string
          nullable: true
          format: date-time
          description: >-
            Time the configured file-safety assessment completed; this does not
            assert an antivirus scan. Date and time in ISO 8601 format. Example:
            2026-11-17T10:30:00Z.
        availableAt:
          type: string
          nullable: true
          format: date-time
          description: >-
            When the file became ready to import. Date and time in ISO 8601
            format. Example: 2026-11-17T10:30:00Z.
        rejectedAt:
          type: string
          nullable: true
          format: date-time
          description: >-
            When the file was rejected. Date and time in ISO 8601 format.
            Example: 2026-11-17T10:30:00Z.
      required:
        - id
        - purpose
        - status
        - filename
        - contentType
        - byteLength
        - sha256
        - scanRequired
        - readyForImport
        - expiresAt
    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
    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.