openapi: 3.0.1
info:
  title: ACI Parcel Tracking API
  description: API for tracking parcels
  version: 1.0.0
servers:
  - url: https://api.acilogistix.com/tracking/v1
paths:
  /trackparcel/{trackingNumber}:
    get:
      tags: []
      summary: Track Parcel
      operationId: Run
      parameters:
        - name: env
          in: query
          description: 'Environment type (possible values: prod, dev, sandbox)'
          required: true
          schema:
            type: string
        - name: trackingNumber
          in: path
          description: Tracking number of the parcel
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The OK response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/response'
        '400':
          description: The bad request response
      security:
        - apiKey: []
components:
  schemas:
    eventTracks:
      type: object
      properties:
        trackingNumber:
          type: string
        overLabelTrackingNo:
          type: string
        currentEventSummary:
          type: string
        lastMileProvider:
          type: boolean
        tracks:
          type: array
          items:
            $ref: '#/components/schemas/track'
        vpods:
          type: array
          items:
            $ref: '#/components/schemas/vpod'
    response:
      type: object
      properties:
        logistics_tracks:
          type: array
          items:
            $ref: '#/components/schemas/eventTracks'
        errorMessage:
          type: string
    track:
      type: object
      properties:
        eventDescription:
          type: string
        eventDate:
          type: string
          format: date-time
          nullable: true
        eventCity:
          type: string
        eventState:
          type: string
        eventZip:
          type: string
        custodyCategory:
          type: string
    vpod:
      type: object
      properties:
        imageType:
          type: string
        imageUrl:
          type: string
  securitySchemes:
    apiKey:
      type: apiKey
      name: aci-apikey
      in: header
