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

# Get order parts

> Retrieve the parts list for an order, including part numbers, quantities, prices, and delivery status.



## OpenAPI

````yaml /connectors/openapi/reit-openapi.json get /api/orders/{order_id}/parts
openapi: 3.1.0
info:
  title: PlanSo Connector
  description: >

    ## PlanSo Order Management Integration


    This connector provides a REST API for the PlanSo workshop management
    system, enabling order synchronization and queries.


    ### Features


    - **Order Sync**: Automatic background synchronization from PlanSo to local
    SQLite database

    - **Rich Queries**: Search orders by plate, person, phone, email, status,
    damage type, and date ranges

    - **Parts Tracking**: View parts lists with order/delivery status

    - **CRUD Operations**: Create, update, and delete orders in PlanSo


    ### Sync Architecture


    The connector maintains a local SQLite database that mirrors PlanSo data:


    1. **Background Sync**: Runs automatically during business hours
    (configurable)

    2. **Manual Sync**: Trigger via `/api/sync` endpoint

    3. **Incremental Updates**: Only fetches changed orders when possible


    ### Data Model


    - **Orders**: Repair projects with customer, vehicle, and scheduling info

    - **Parts**: Individual parts linked to orders with ordering/delivery status

    - **Extended Data**: Damaged areas, documents, images (optional sync)


    ### Authentication


    All endpoints (except `/health` and `/ready`) require an `X-API-Key` header.
    Requests may also be restricted by IP whitelist.
  contact:
    name: AICO Engineering
    url: https://aicoflow.com/
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://reit.connectors.aicoflow.com
    description: Production
  - url: http://localhost:8102
    description: Local development
security:
  - ApiKeyAuth: []
tags:
  - name: Authentication
    description: PlanSo session management. Login and maintain authenticated sessions.
  - name: Sync
    description: >-
      Data synchronization operations. Trigger manual syncs and monitor sync
      status.
  - name: Orders
    description: Order management. Query, create, update, and delete repair orders.
  - name: Parts
    description: Parts information. View parts lists and status for orders.
  - name: Health
    description: Service health and readiness checks.
paths:
  /api/orders/{order_id}/parts:
    get:
      tags:
        - Parts
      summary: Get order parts
      description: >-
        Retrieve the parts list for an order, including part numbers,
        quantities, prices, and delivery status.
      operationId: get_order_parts_api_orders__order_id__parts_get
      parameters:
        - name: order_id
          in: path
          required: true
          schema:
            type: integer
            title: Order Id
      responses:
        '200':
          description: List of parts with status information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PartsResponse:
      properties:
        success:
          type: boolean
          title: Success
        parts:
          items:
            $ref: '#/components/schemas/PartModel'
          type: array
          title: Parts
        total:
          type: integer
          title: Total
        message:
          type: string
          title: Message
          default: ''
      type: object
      required:
        - success
        - parts
        - total
      title: PartsResponse
      description: Parts list response.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PartModel:
      properties:
        order_id:
          type: integer
          title: Order Id
        part_no:
          anyOf:
            - type: string
            - type: 'null'
          title: Part No
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        lead_no:
          anyOf:
            - type: string
            - type: 'null'
          title: Lead No
        order_no:
          anyOf:
            - type: string
            - type: 'null'
          title: Order No
        row_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Row Id
        part_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Part Id
        qty:
          anyOf:
            - type: number
            - type: 'null'
          title: Qty
        price_each:
          anyOf:
            - type: number
            - type: 'null'
          title: Price Each
        price_total:
          anyOf:
            - type: number
            - type: 'null'
          title: Price Total
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        status_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Status Code
        status_icon:
          anyOf:
            - type: string
            - type: 'null'
          title: Status Icon
        order_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Order Date
        delivery_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Delivery Date
        eta_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Eta Date
        is_missing:
          type: integer
          title: Is Missing
          default: 0
        is_to_order:
          type: integer
          title: Is To Order
          default: 0
        is_ordered:
          type: integer
          title: Is Ordered
          default: 0
        is_delivered:
          type: integer
          title: Is Delivered
          default: 0
        is_backorder:
          type: integer
          title: Is Backorder
          default: 0
        is_mandatory:
          type: integer
          title: Is Mandatory
          default: 0
        is_price_checked:
          type: integer
          title: Is Price Checked
          default: 0
      type: object
      required:
        - order_id
      title: PartModel
      description: Part record for an order.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````