> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r4technology.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Track Package

> Get tracking information and items for a specific package using an encoded package ID



## OpenAPI

````yaml GET /tracking/package
openapi: 3.1.0
info:
  title: R4 API
  description: API for integrating dry cleaning location services and order tracking
  version: 1.0.0
servers:
  - url: https://dev.api.r4technology.io
security:
  - basicAuth: []
paths:
  /tracking/package:
    get:
      description: >-
        Get tracking information and items for a specific package using an
        encoded package ID
      parameters:
        - name: package_id
          in: query
          description: The encoded package ID combining return_order_id and spot_order_key
          required: true
          schema:
            type: string
            example: 550e8400e29b41d4a716446655440000_02-010005
      responses:
        '200':
          description: Tracking information for the package
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PackageTrackingResponse'
              example:
                package_id: 550e8400e29b41d4a716446655440000_02-010005
                return_order_id: 550e8400-e29b-41d4-a716-446655440000
                current_status: hub dropoff
                tracking_updates:
                  - status: detail
                    timestamp: '2025-03-15T14:23:17Z'
                    description: Package scanned and received at a dropoff point
                  - status: hub dropoff
                    timestamp: '2025-03-16T09:12:48Z'
                    description: Package arrived at consolidation hub
                total_updates: 2
                items:
                  - id: abc123
                    sku: SHIRT-BLU-LG
                    title: Blue Shirt
                    description: Classic blue button-down shirt
                    variant_description: Large
                    quantity: 1
                    image: https://example.com/shirt.jpg
        '400':
          description: Missing or invalid package ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No line items found for the given package ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    PackageTrackingResponse:
      type: object
      properties:
        package_id:
          description: The encoded package ID that was looked up
          type: string
        return_order_id:
          description: The decoded return order UUID
          type: string
        current_status:
          description: The most recent tracking status for this package
          type: string
        tracking_updates:
          description: Array of tracking updates in chronological order
          type: array
          items:
            $ref: '#/components/schemas/TrackingUpdate'
        total_updates:
          description: Total number of tracking updates
          type: integer
        items:
          description: Array of items in this package
          type: array
          items:
            $ref: '#/components/schemas/TrackingItem'
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
    TrackingUpdate:
      type: object
      properties:
        return_order_id:
          description: The return order ID for this tracking update
          type: string
        status:
          description: Status code for this update
          type: string
        timestamp:
          description: ISO 8601 timestamp of the update
          type: string
          format: date-time
        description:
          description: Human-readable description of the status
          type: string
    TrackingItem:
      type: object
      properties:
        id:
          description: Line item identifier
          type: string
        sku:
          description: Product SKU
          type: string
        title:
          description: Product title
          type: string
        description:
          description: Product description
          type: string
        variant_description:
          description: Product variant description
          type: string
        quantity:
          description: Quantity of this item in the package
          type: integer
        image:
          description: URL to the product image
          type: string
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````