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

# Order Tracking

> Get tracking information for an order by order ID



## OpenAPI

````yaml GET /tracking
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:
    get:
      description: Get tracking information for an order by order ID
      parameters:
        - name: return_order_id
          in: query
          description: The return order ID to track
          required: true
          schema:
            type: string
            default: ZG12345678
      responses:
        '200':
          description: Tracking information for the order
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrackingResponse'
              example:
                return_order_id: ZG12345678
                current_status: return closed
                tracking_updates:
                  - status: detail
                    timestamp: '2025-03-15T14:23:17Z'
                    description: Package scanned and received at a dropoff point
                  - status: sub pickup
                    timestamp: '2025-03-15T16:45:32Z'
                    description: Package picked up from dropoff location
                  - status: hub dropoff
                    timestamp: '2025-03-16T09:12:48Z'
                    description: Package arrived at consolidation hub
                  - status: return closed
                    timestamp: '2025-03-16T14:28:15Z'
                    description: Package left consolidation hub and return process complete
                total_updates: 4
        '400':
          description: Invalid order ID or order not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    TrackingResponse:
      type: object
      properties:
        return_order_id:
          description: The return order ID being tracked
          type: string
        current_status:
          description: Current status of the order
          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
    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
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````