openapi: 3.0.0
info:
  title: Unified.to DMS API
  version: "1.0"
  description: One API to Rule Them All
  contact:
    email: hello@unified.to
    url: https://unified.to/contact
  termsOfService: https://unified.to/tos
externalDocs:
  description: API Documentation
  url: https://docs.unified.to
tags:
  - name: unifiedapi
    description: Unified.to API
  - name: dms
  - name: vehicle
  - name: vehiclesale
  - name: repairorder
  - name: appointment
  - name: part
  - name: partsale
  - name: opcode
security:
  - jwt: []
servers:
  - url: https://api.unified.to
    description: North American data region
  - url: https://api-eu.unified.to
    description: European data region
  - url: https://api-au.unified.to
    description: Australian data region
components:
  securitySchemes:
    jwt:
      type: apiKey
      name: authorization
      in: header
  requestBodies:
    DmsVehicle:
      required: true
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/DmsVehicle"
          examples:
            dms_vehicle:
              summary: Sample DmsVehicle
              value:
                id: a10a5ef6-f715-4545-b441-37e5b94fcc71
                created_at: "2021-02-03T08:01:58.559Z"
                updated_at: "2023-11-06T20:18:47.595Z"
                is_inventory: true
                vin: C29ZDU474DDR70955
                stock_number: N24959
                year: 2023
                make: Citroën
                model: Silverado
                trim: Base
                model_code: PMU8KI
                description: 2023 Citroën Silverado
                type: SUV
                body_style: Pickup
                condition: NEW
                is_certified: false
                status: OTHER
                odometer: 1
                odometer_unit: MILES
                exterior_color: lavender
                interior_color: Black
                fuel_type: ELECTRIC
                transmission: Manual
                currency: USD
                price_amount: 29926
                msrp_amount: 33100
                internet_price_amount: 29526
                cost_amount: 26498
                received_at: "2021-02-03T08:01:58.559Z"
                warranty_expires_at: "2022-03-28T09:10:09.889Z"
                options:
                  - code: SXE
                    description: Tow package
                    type: DEALER
                    price_amount: 1400
                    cost_amount: 250
                  - code: "458"
                    description: Tow package
                    type: DEALER
                    price_amount: 600
                    cost_amount: 700
                image_urls:
                  - https://picsum.photos/seed/tOUr5K/1358/1877
                is_published: false
                is_active: true
                metadata: []
    DmsVehiclesale:
      required: true
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/DmsVehiclesale"
          examples:
            dms_vehiclesale:
              summary: Sample DmsVehiclesale
              value:
                id: de9e12c4-4ac4-4360-b6b7-bdc6e30209d1
                created_at: "2020-04-02T08:14:56.150Z"
                updated_at: "2025-04-22T03:38:03.267Z"
                number: D84591
                status: SOLD
                type: RETAIL
                finance_type: FINANCE
                vehicles: []
                trade_ins: []
                fees:
                  - name: Documentation fee
                    price_amount: 499
                    cost_amount: 0
                    is_capitalized: true
                  - name: Title and registration
                    price_amount: 392
                    is_capitalized: false
                products:
                  - type: PROTECTION
                    name: Tire & Wheel
                    provider: Renner and Sons
                    price_amount: 3300
                    cost_amount: 1320
                    term_months: 60
                    contract_number: B7JN10GVB7
                  - type: SERVICE_CONTRACT
                    name: Platinum Vehicle Service Contract
                    provider: Frami, Wisozk and Gleichner
                    price_amount: 3700
                    cost_amount: 1115
                    term_months: 72
                    deductible_amount: 100
                    contract_number: VIZU7K3VRU
                taxes:
                  - name: State sales tax
                    rate: 8.25
                    total_amount: 0
                finance:
                  lender_name: Mueller, Yundt and Murray Financial
                  term_months: 72
                  interest_rate: 6.68
                  payment_amount: 339
                  payment_frequency: MONTHLY
                  financed_amount: 0
                  first_payment_at: "2022-08-18T22:41:06.389Z"
                currency: USD
                rebate_amount: 500
                down_payment_amount: 6700
                tax_amount: 0
                total_amount: 7891
                back_gross_amount: 4565
                sold_at: "2022-08-17T07:25:32.102Z"
                source: Website
                metadata: []
    DmsRepairorder:
      required: true
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/DmsRepairorder"
          examples:
            dms_repairorder:
              summary: Sample DmsRepairorder
              value:
                id: c0ffa98e-2bb5-498a-9aab-d1609d5890fd
                created_at: "2022-10-25T15:50:48.007Z"
                updated_at: "2025-12-03T23:09:27.022Z"
                number: "143398"
                status: COMPLETED
                pay_type: WARRANTY
                technician_user_ids: []
                opened_at: "2025-02-12T06:37:48.676Z"
                promised_at: "2025-02-13T14:37:48.676Z"
                completed_at: "2026-11-20T17:18:10.709Z"
                odometer_in: 7776
                odometer_out: 7776
                odometer_unit: MILES
                transport_type: LOANER
                tag_number: "758"
                purchase_order_number: "182743"
                currency: USD
                estimate_amount: 3264
                labor_amount: 1360.4
                parts_amount: 1680.8000000000002
                sublet_amount: 0
                misc_amount: 35
                discount_amount: 0
                tax_amount: 117.66
                total_amount: 3193.86
                balance_amount: 3193.86
                totals:
                  - pay_type: CUSTOMER
                    labor_amount: 232.4
                    parts_amount: 574.1800000000001
                    sublet_amount: 0
                    discount_amount: 0
                    total_amount: 806.58
                  - pay_type: WARRANTY
                    labor_amount: 1128
                    parts_amount: 1106.6200000000001
                    sublet_amount: 0
                    discount_amount: 0
                    total_amount: 2234.62
                jobs:
                  - id: c20dc8af-0efa-4ab9-a2bd-e12f8b67e5af
                    number: A
                    name: Customer concern
                    complaint: Due for service
                    cause: Scheduled maintenance
                    correction: Aufero cumque vicinus aptus assumenda quis aptus.
                    status: COMPLETED
                    pay_type: WARRANTY
                    technician_user_ids: []
                    sold_hours: 3.2
                    actual_hours: 3.6
                    labor_amount: 681.6
                    parts_amount: 0
                    total_amount: 681.6
                    labors:
                      - id: 800abe88-1de1-4788-a885-94b720bea1c4
                        pay_type: WARRANTY
                        technician_user_ids: []
                        sold_hours: 3.2
                        rate_amount: 213
                        total_amount: 681.6
                    parts: []
                  - id: 7670bc57-5248-49fd-9e82-edf9288b557e
                    number: B
                    name: Customer concern
                    complaint: Vibration at highway speed
                    cause: Worn brake pads
                    correction: Somnus avaritia utroque vulnero ullam ancilla.
                    status: COMPLETED
                    pay_type: WARRANTY
                    technician_user_ids: []
                    sold_hours: 3.1
                    actual_hours: 3
                    labor_amount: 446.4
                    parts_amount: 1106.6200000000001
                    total_amount: 1553.02
                    labors:
                      - id: 04569f5a-3dbc-4e7b-94bb-fbf1d5ea93a1
                        pay_type: WARRANTY
                        technician_user_ids: []
                        sold_hours: 3.1
                        rate_amount: 144
                        total_amount: 446.4
                    parts:
                      - id: a05900a3-2d0b-4d72-98d0-b6c37128076e
                        pay_type: WARRANTY
                        quantity: 4
                        quantity_ordered: 4
                        unit_price_amount: 222.61
                        total_amount: 890.44
                      - id: 0c82226e-a7c3-405c-bb82-c74ef7bcf189
                        pay_type: WARRANTY
                        quantity: 2
                        quantity_ordered: 2
                        unit_price_amount: 108.09
                        total_amount: 216.18
                  - id: 64f80a84-8557-48a4-9383-1febc93c1bc8
                    number: C
                    name: Customer concern
                    complaint: Noise when braking
                    cause: Scheduled maintenance
                    correction: Degero theca natus.
                    status: COMPLETED
                    pay_type: CUSTOMER
                    technician_user_ids: []
                    sold_hours: 1.4
                    actual_hours: 1.5
                    labor_amount: 232.4
                    parts_amount: 574.1800000000001
                    total_amount: 806.58
                    labors:
                      - id: a92fc673-0e21-4884-bdcc-ac90a50592ac
                        pay_type: CUSTOMER
                        technician_user_ids: []
                        sold_hours: 1.4
                        rate_amount: 166
                        total_amount: 232.4
                    parts:
                      - id: ec8c38d4-ed4c-44f9-9e21-01e86248a11b
                        pay_type: CUSTOMER
                        quantity: 1
                        quantity_ordered: 1
                        unit_price_amount: 216.02
                        total_amount: 216.02
                      - id: 8915fa45-886e-4170-977e-234efd4e7409
                        pay_type: CUSTOMER
                        quantity: 2
                        quantity_ordered: 2
                        unit_price_amount: 179.08
                        total_amount: 358.16
                metadata: []
    DmsAppointment:
      required: true
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/DmsAppointment"
          examples:
            dms_appointment:
              summary: Sample DmsAppointment
              value:
                id: b13eb602-7d4c-4dc6-bc8d-d1080c50719e
                created_at: "2023-10-16T02:56:45.127Z"
                updated_at: "2025-04-09T23:05:15.185Z"
                number: A541909
                status: CANCELLED
                start_at: "2026-05-13T12:02:44.195Z"
                end_at: "2026-05-13T19:02:44.195Z"
                transport_type: LOANER
                notes: Soluta conitor timidus confero.
                services:
                  - id: 32147568-25bd-4c11-be73-aeec9e7c4fe3
                    name: Customer concern
                    pay_type: WARRANTY
                    technician_user_ids: []
                  - id: aeb8b0fc-57b7-4e1f-9257-5eda82c40609
                    name: Customer concern
                    complaint: Check engine light on
                    pay_type: CUSTOMER
                    technician_user_ids: []
                  - id: ff303f87-42dd-46db-96bd-cc4f4069eae7
                    name: Customer concern
                    complaint: Due for service
                    pay_type: CUSTOMER
                    technician_user_ids: []
                metadata: []
    DmsPart:
      required: true
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/DmsPart"
          examples:
            dms_part:
              summary: Sample DmsPart
              value:
                id: 951b2712-0e61-49ea-8e5f-4be45163a55f
                created_at: "2020-07-02T08:18:03.858Z"
                updated_at: "2023-11-26T23:03:25.723Z"
                part_number: 73992-IM3FI
                description: Cabin filter
                manufacturer_code: TOY
                source_code: "30"
                category: Ignition
                bin_locations:
                  - S18-6
                quantity_on_hand: 15
                quantity_available: 13
                quantity_on_order: 14
                min_stock_quantity: 3
                max_stock_quantity: 21
                pack_quantity: 1
                currency: USD
                cost_amount: 25.26
                list_price_amount: 39.61
                trade_price_amount: 29.05
                last_sold_at: "2020-11-23T14:45:56.903Z"
                metadata: []
    DmsPartsale:
      required: true
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/DmsPartsale"
          examples:
            dms_partsale:
              summary: Sample DmsPartsale
              value:
                id: 518dfe0e-9d7d-4cb6-bcbd-9af092354a82
                created_at: "2023-05-22T03:39:30.335Z"
                updated_at: "2026-04-24T06:33:39.412Z"
                number: P292867
                type: SALE
                status: VOIDED
                pay_type: CUSTOMER
                currency: USD
                subtotal_amount: 981.89
                discount_amount: 0
                freight_amount: 0
                tax_amount: 68.73
                total_amount: 1050.62
                cost_amount: 0
                lines:
                  - id: 7b29450d-e319-4c89-9ce2-4b7fc105d3cc
                    pay_type: CUSTOMER
                    quantity: 5
                    quantity_ordered: 5
                    unit_price_amount: 98.29
                    total_amount: 491.45
                  - id: c6d26952-5334-4ad7-986c-666fd054b40e
                    pay_type: CUSTOMER
                    quantity: 2
                    quantity_ordered: 2
                    unit_price_amount: 120.45
                    total_amount: 240.9
                  - id: 78fdaf7d-62bc-41f0-a349-2116742fa6ae
                    pay_type: CUSTOMER
                    quantity: 3
                    quantity_ordered: 3
                    unit_price_amount: 83.18
                    total_amount: 249.54
                metadata: []
    DmsOpcode:
      required: true
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/DmsOpcode"
          examples:
            dms_opcode:
              summary: Sample DmsOpcode
              value:
                id: 17369a59-b979-4cd3-95a8-754107de7419
                created_at: "2021-01-12T19:03:17.545Z"
                updated_at: "2021-11-04T14:38:53.507Z"
                code: 02AUS
                description: Oil and filter change
                type: LABOR
                category: Electrical
                pay_type: CUSTOMER
                flat_rate_hours: 3.5
                estimated_hours: 3.2
                currency: USD
                labor_rate_amount: 216
                skill_code: A
                oem_code: 05604A3
                is_active: true
                parts: []
                metadata: []
  schemas:
    DmsVehicleOption:
      type: object
      properties:
        code:
          type: string
          description: Option or RPO code
        description:
          type: string
        type:
          type: string
          description: Factory-fitted or dealer-added
          enum:
            - FACTORY
            - DEALER
            - OTHER
          x-speakeasy-unknown-values: allow
        price_amount:
          type: number
          description: Retail price
        cost_amount:
          type: number
          description: Dealer cost
      description: An installed vehicle option or package
    property_DmsVehicle_options:
      type: array
      items:
        $ref: "#/components/schemas/DmsVehicleOption"
      description: Installed options and packages
    property_DmsVehicle_image_urls:
      type: array
      items:
        type: string
      description: Public photo URLs
    DmsMetadata:
      type: object
      properties:
        id:
          type: string
          description: The ID of the custom field definition (from the metadata/metadata endpoint).
        slug:
          type: string
          description: The integration's API name (key) of an existing custom field.
        value:
          description: The field's value, typed by `format`.
          additionalProperties: true
          anyOf:
            - type: object
            - type: string
            - type: number
            - type: boolean
            - type: array
              items:
                anyOf:
                  - type: object
                  - type: string
                  - type: number
                  - type: boolean
        namespace:
          type: string
        format:
          type: string
          description: The data type of the custom field, which determines how `value` is formatted.
          enum:
            - TEXT
            - NUMBER
            - DATE
            - BOOLEAN
            - FILE
            - TEXTAREA
            - SINGLE_SELECT
            - MULTIPLE_SELECT
            - MEASUREMENT
            - PRICE
            - YES_NO
            - CURRENCY
            - URL
          x-speakeasy-unknown-values: allow
        extra_data:
          additionalProperties: true
          anyOf:
            - type: object
            - type: string
            - type: number
            - type: boolean
            - type: array
              items:
                anyOf:
                  - type: object
                  - type: string
                  - type: number
                  - type: boolean
    property_DmsVehicle_metadata:
      type: array
      items:
        $ref: "#/components/schemas/DmsMetadata"
    DmsVehicle:
      type: object
      properties:
        id:
          type: string
        created_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        updated_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        is_inventory:
          type: boolean
          description: True for a dealer stock unit, false for a customer-owned or service vehicle
        vin:
          type: string
          description: Vehicle identification number, or serial number / HIN for non-road units
        stock_number:
          type: string
          description: Dealer stock number
        fleet_number:
          type: string
          description: Customer or fleet unit number
        license_plate:
          type: string
        year:
          type: number
          description: Model year
        make:
          type: string
        model:
          type: string
        trim:
          type: string
          description: Trim, variant or series
        model_code:
          type: string
          description: Manufacturer model code
        description:
          type: string
          description: Free-text vehicle description
        type:
          type: string
          enum:
            - CAR
            - TRUCK
            - VAN
            - SUV
            - MOTORCYCLE
            - BUS
            - RV
            - BOAT
            - TRAILER
            - EQUIPMENT
            - OTHER
          x-speakeasy-unknown-values: allow
        body_style:
          type: string
        condition:
          type: string
          enum:
            - NEW
            - USED
            - DEMO
            - OTHER
          x-speakeasy-unknown-values: allow
        is_certified:
          type: boolean
          description: Certified pre-owned
        status:
          type: string
          description: Stock status; only set for inventory units
          enum:
            - AVAILABLE
            - ON_ORDER
            - IN_TRANSIT
            - RESERVED
            - SOLD
            - UNAVAILABLE
            - OTHER
          x-speakeasy-unknown-values: allow
        odometer:
          type: number
          description: Current odometer or meter reading
        odometer_unit:
          type: string
          enum:
            - MILES
            - KILOMETERS
            - HOURS
            - OTHER
          x-speakeasy-unknown-values: allow
        exterior_color:
          type: string
        interior_color:
          type: string
        fuel_type:
          type: string
          enum:
            - GASOLINE
            - DIESEL
            - ELECTRIC
            - HYBRID
            - HYDROGEN
            - LPG
            - NATURAL_GAS
            - OTHER
          x-speakeasy-unknown-values: allow
        transmission:
          type: string
          description: Transmission description
        currency:
          type: string
          description: ISO 4217 currency code
        price_amount:
          type: number
          description: Asking or selling price of a stock unit
        msrp_amount:
          type: number
          description: Manufacturer's suggested retail price
        internet_price_amount:
          type: number
          description: Advertised internet price
        cost_amount:
          type: number
          description: Dealer total cost of the unit
        received_at:
          type: string
          format: date-time
          description: When the unit arrived in stock (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        sold_at:
          type: string
          format: date-time
          description: When the unit was last sold (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        delivered_at:
          type: string
          format: date-time
          description: When the vehicle was delivered to its current owner (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        in_service_at:
          type: string
          format: date-time
          description: Warranty in-service date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        warranty_expires_at:
          type: string
          format: date-time
          description: Factory warranty expiry date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        last_service_at:
          type: string
          format: date-time
          description: Last service visit (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        contact_id:
          type: string
          description: Owner, as a CRM Contact, when the owner is an individual
        company_id:
          type: string
          description: Owner, as a CRM Company, when the owner is a business or fleet
        options:
          $ref: "#/components/schemas/property_DmsVehicle_options"
          description: Installed options and packages
        image_urls:
          $ref: "#/components/schemas/property_DmsVehicle_image_urls"
          description: Public photo URLs
        is_published:
          type: boolean
          description: Unit is published to the dealer website
        is_active:
          type: boolean
        metadata:
          $ref: "#/components/schemas/property_DmsVehicle_metadata"
        raw:
          type: object
          description: Raw data from integration
          additionalProperties: true
      description: "A vehicle or other dealer unit: dealer stock or a customer-owned vehicle seen by service"
    DmsVehicles:
      type: array
      items:
        $ref: "#/components/schemas/DmsVehicle"
    property_DmsVehiclesale_contact_ids:
      type: array
      items:
        type: string
      description: Buyers as CRM Contacts, primary buyer first
    property_DmsVehiclesale_company_ids:
      type: array
      items:
        type: string
      description: Business buyers as CRM Companies
    property_DmsVehiclesale_salesperson_user_ids:
      type: array
      items:
        type: string
      description: Salespeople, as HR Employees
    property_DmsVehiclesale_finance_manager_user_ids:
      type: array
      items:
        type: string
      description: Finance (F&I) managers, as HR Employees
    DmsVehiclesaleVehicle:
      type: object
      properties:
        vehicle_id:
          type: string
          description: The DmsVehicle ID
        vin:
          type: string
          description: VIN as sold
        stock_number:
          type: string
          description: Stock number as sold
        odometer:
          type: number
          description: Odometer at sale
        price_amount:
          type: number
          description: Agreed selling price of the vehicle
        msrp_amount:
          type: number
        cost_amount:
          type: number
          description: Dealer cost of the vehicle
      description: A vehicle sold on a vehicle sale
    property_DmsVehiclesale_vehicles:
      type: array
      items:
        $ref: "#/components/schemas/DmsVehiclesaleVehicle"
      description: Vehicles sold
    DmsVehiclesaleTradein:
      type: object
      properties:
        vehicle_id:
          type: string
          description: The DmsVehicle ID of the trade-in, when recorded
        vin:
          type: string
        year:
          type: number
        make:
          type: string
        model:
          type: string
        odometer:
          type: number
        allowance_amount:
          type: number
          description: Trade allowance given to the buyer
        actual_cash_value_amount:
          type: number
          description: Actual cash value (dealer valuation)
        payoff_amount:
          type: number
          description: Outstanding loan payoff
        lienholder_name:
          type: string
          description: Lender owed the payoff
      description: A vehicle traded in on a vehicle sale
    property_DmsVehiclesale_trade_ins:
      type: array
      items:
        $ref: "#/components/schemas/DmsVehiclesaleTradein"
    DmsVehiclesaleFee:
      type: object
      properties:
        name:
          type: string
        price_amount:
          type: number
          description: Amount charged to the buyer
        cost_amount:
          type: number
          description: Dealer cost
        is_capitalized:
          type: boolean
          description: Rolled into the financed or leased amount
      description: A fee on a vehicle sale (documentation, title, registration, lender, dealer)
    property_DmsVehiclesale_fees:
      type: array
      items:
        $ref: "#/components/schemas/DmsVehiclesaleFee"
    DmsVehiclesaleProduct:
      type: object
      properties:
        type:
          type: string
          enum:
            - SERVICE_CONTRACT
            - GAP
            - CREDIT_LIFE
            - ACCIDENT_HEALTH
            - MAINTENANCE
            - PROTECTION
            - INSURANCE
            - OTHER
          x-speakeasy-unknown-values: allow
        name:
          type: string
          description: Product or plan name
        provider:
          type: string
          description: Provider or carrier name
        price_amount:
          type: number
          description: Price charged to the buyer
        cost_amount:
          type: number
          description: Dealer cost
        term_months:
          type: number
          description: Coverage term in months
        term_mileage:
          type: number
          description: Coverage distance limit
        deductible_amount:
          type: number
        contract_number:
          type: string
          description: Policy or contract number
      description: A finance and insurance (F&I) product sold on a vehicle sale
    property_DmsVehiclesale_products:
      type: array
      items:
        $ref: "#/components/schemas/DmsVehiclesaleProduct"
      description: Finance and insurance (F&I) products
    DmsVehiclesaleTax:
      type: object
      properties:
        name:
          type: string
        rate:
          type: number
          description: Tax rate, as a percentage
        total_amount:
          type: number
          description: Tax amount
      description: A tax line on a vehicle sale
    property_DmsVehiclesale_taxes:
      type: array
      items:
        $ref: "#/components/schemas/DmsVehiclesaleTax"
    property_DmsVehiclesale_finance:
      type: object
      properties:
        lender_name:
          type: string
          description: Bank or finance company
        term_months:
          type: number
        interest_rate:
          type: number
          description: APR, as a percentage
        payment_amount:
          type: number
          description: Regular payment amount
        payment_frequency:
          type: string
          enum:
            - MONTHLY
            - SEMI_MONTHLY
            - BIWEEKLY
            - WEEKLY
            - YEARLY
            - OTHER
          x-speakeasy-unknown-values: allow
        financed_amount:
          type: number
          description: Amount financed
        residual_amount:
          type: number
          description: Lease residual or guaranteed future value
        money_factor:
          type: number
          description: Lease money factor
        first_payment_at:
          type: string
          format: date-time
          description: First payment due date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
      description: Finance or lease terms
    property_DmsVehiclesale_metadata:
      type: array
      items:
        $ref: "#/components/schemas/DmsMetadata"
    DmsVehiclesale:
      type: object
      properties:
        id:
          type: string
        created_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        updated_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        number:
          type: string
          description: Dealer-visible deal number
        status:
          type: string
          enum:
            - QUOTE
            - PENDING
            - SOLD
            - DELIVERED
            - FINALIZED
            - CANCELLED
            - OTHER
          x-speakeasy-unknown-values: allow
        type:
          type: string
          description: Sale channel
          enum:
            - RETAIL
            - WHOLESALE
            - FLEET
            - DEALER_TRADE
            - OTHER
          x-speakeasy-unknown-values: allow
        finance_type:
          type: string
          enum:
            - CASH
            - FINANCE
            - LEASE
            - BALLOON
            - OTHER
          x-speakeasy-unknown-values: allow
        contact_ids:
          $ref: "#/components/schemas/property_DmsVehiclesale_contact_ids"
          description: Buyers as CRM Contacts, primary buyer first
        company_ids:
          $ref: "#/components/schemas/property_DmsVehiclesale_company_ids"
          description: Business buyers as CRM Companies
        lead_id:
          type: string
          description: The CRM Lead this sale came from (reference to CrmLead)
        salesperson_user_ids:
          $ref: "#/components/schemas/property_DmsVehiclesale_salesperson_user_ids"
          description: Salespeople, as HR Employees (reference to HrisEmployee)
        sales_manager_user_id:
          type: string
          description: Sales manager, as an HR Employee (reference to HrisEmployee)
        finance_manager_user_ids:
          $ref: "#/components/schemas/property_DmsVehiclesale_finance_manager_user_ids"
          description: Finance (F&I) managers, as HR Employees (reference to HrisEmployee)
        vehicles:
          $ref: "#/components/schemas/property_DmsVehiclesale_vehicles"
          description: Vehicles sold
        trade_ins:
          $ref: "#/components/schemas/property_DmsVehiclesale_trade_ins"
        fees:
          $ref: "#/components/schemas/property_DmsVehiclesale_fees"
        products:
          $ref: "#/components/schemas/property_DmsVehiclesale_products"
          description: Finance and insurance (F&I) products
        taxes:
          $ref: "#/components/schemas/property_DmsVehiclesale_taxes"
        finance:
          $ref: "#/components/schemas/property_DmsVehiclesale_finance"
          description: Finance or lease terms
        currency:
          type: string
          description: ISO 4217 currency code
        rebate_amount:
          type: number
          description: Manufacturer and dealer rebates and incentives
        down_payment_amount:
          type: number
          description: Cash down payment and deposits
        tax_amount:
          type: number
          description: Total tax
        total_amount:
          type: number
          description: Total cash price including fees, products and taxes, before trade-ins
        front_gross_amount:
          type: number
          description: Front-end (vehicle) gross profit
        back_gross_amount:
          type: number
          description: Back-end (F&I) gross profit
        sold_at:
          type: string
          format: date-time
          description: Sale or contract date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        delivered_at:
          type: string
          format: date-time
          description: When the vehicle was handed over (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        posted_at:
          type: string
          format: date-time
          description: When the sale was finalized or posted to accounting (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        source:
          type: string
          description: Lead or advertising source
        notes:
          type: string
        metadata:
          $ref: "#/components/schemas/property_DmsVehiclesale_metadata"
        raw:
          type: object
          description: Raw data from integration
          additionalProperties: true
      description: A vehicle sale or deal (retail, wholesale, fleet or dealer trade)
    DmsVehiclesales:
      type: array
      items:
        $ref: "#/components/schemas/DmsVehiclesale"
    property_DmsRepairorder_technician_user_ids:
      type: array
      items:
        type: string
      description: Technicians, as HR Employees
    DmsRepairorderTotal:
      type: object
      properties:
        pay_type:
          type: string
          enum:
            - CUSTOMER
            - WARRANTY
            - INTERNAL
            - SERVICE_CONTRACT
            - OTHER
          x-speakeasy-unknown-values: allow
        labor_amount:
          type: number
        parts_amount:
          type: number
        sublet_amount:
          type: number
        misc_amount:
          type: number
          description: "Other charges: shop supplies, environmental, freight, lube"
        discount_amount:
          type: number
        tax_amount:
          type: number
        total_amount:
          type: number
      description: Repair order totals for one pay type
    property_DmsRepairorder_totals:
      type: array
      items:
        $ref: "#/components/schemas/DmsRepairorderTotal"
      description: Totals split by pay type
    property_DmsRepairorderJob_technician_user_ids:
      type: array
      items:
        type: string
      description: Technicians, as HR Employees
    property_DmsRepairorderLabor_technician_user_ids:
      type: array
      items:
        type: string
      description: Technicians, as HR Employees
    DmsRepairorderLabor:
      type: object
      properties:
        id:
          type: string
          description: Line identifier
        opcode_id:
          type: string
          description: The DmsOpcode ID
        name:
          type: string
          description: Operation description
        pay_type:
          type: string
          enum:
            - CUSTOMER
            - WARRANTY
            - INTERNAL
            - SERVICE_CONTRACT
            - OTHER
          x-speakeasy-unknown-values: allow
        technician_user_ids:
          $ref: "#/components/schemas/property_DmsRepairorderLabor_technician_user_ids"
          description: Technicians, as HR Employees (reference to HrisEmployee)
        sold_hours:
          type: number
          description: Billed or flat-rate hours
        actual_hours:
          type: number
          description: Clocked hours
        rate_amount:
          type: number
          description: Hourly labor rate
        total_amount:
          type: number
          description: Labor sale amount
      description: A labor operation or technician time line on a repair order job
    property_DmsRepairorderJob_labors:
      type: array
      items:
        $ref: "#/components/schemas/DmsRepairorderLabor"
    DmsPartline:
      type: object
      properties:
        id:
          type: string
          description: Line identifier
        part_id:
          type: string
          description: The DmsPart ID
        part_number:
          type: string
          description: Part number as sold
        manufacturer_code:
          type: string
          description: Make, brand or line code the part number belongs to
        description:
          type: string
        pay_type:
          type: string
          description: Who pays for this line
          enum:
            - CUSTOMER
            - WARRANTY
            - INTERNAL
            - SERVICE_CONTRACT
            - OTHER
          x-speakeasy-unknown-values: allow
        quantity:
          type: number
          description: Quantity sold or issued
        quantity_ordered:
          type: number
          description: Quantity requested by the customer
        unit_price_amount:
          type: number
          description: Unit selling price
        list_price_amount:
          type: number
          description: Unit list or retail price
        unit_cost_amount:
          type: number
          description: Unit dealer cost
        total_amount:
          type: number
          description: Extended selling amount
        total_cost_amount:
          type: number
          description: Extended dealer cost
        tax_amount:
          type: number
      description: A parts line on a repair order job, parts sale or op code
    property_DmsRepairorderJob_parts:
      type: array
      items:
        $ref: "#/components/schemas/DmsPartline"
    DmsRepairorderJob:
      type: object
      properties:
        id:
          type: string
          description: Line identifier
        number:
          type: string
          description: Line letter or sequence
        name:
          type: string
          description: Short job title or operation name
        complaint:
          type: string
          description: Customer concern or request
        cause:
          type: string
          description: Diagnosed cause
        correction:
          type: string
          description: Work performed or technician story
        status:
          type: string
          enum:
            - PENDING
            - IN_PROGRESS
            - ON_HOLD
            - COMPLETED
            - DECLINED
            - CANCELLED
            - OTHER
          x-speakeasy-unknown-values: allow
        pay_type:
          type: string
          description: Who pays for this job
          enum:
            - CUSTOMER
            - WARRANTY
            - INTERNAL
            - SERVICE_CONTRACT
            - OTHER
          x-speakeasy-unknown-values: allow
        opcode_id:
          type: string
          description: The primary DmsOpcode ID
        technician_user_ids:
          $ref: "#/components/schemas/property_DmsRepairorderJob_technician_user_ids"
          description: Technicians, as HR Employees (reference to HrisEmployee)
        sold_hours:
          type: number
          description: Billed or flat-rate hours
        actual_hours:
          type: number
          description: Clocked hours
        labor_amount:
          type: number
        parts_amount:
          type: number
        total_amount:
          type: number
        completed_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        labors:
          $ref: "#/components/schemas/property_DmsRepairorderJob_labors"
        parts:
          $ref: "#/components/schemas/property_DmsRepairorderJob_parts"
      description: A job (customer concern or line) on a repair order
    property_DmsRepairorder_jobs:
      type: array
      items:
        $ref: "#/components/schemas/DmsRepairorderJob"
    property_DmsRepairorder_metadata:
      type: array
      items:
        $ref: "#/components/schemas/DmsMetadata"
    DmsRepairorder:
      type: object
      properties:
        id:
          type: string
        created_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        updated_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        number:
          type: string
          description: Dealer-visible repair order number
        status:
          type: string
          enum:
            - ESTIMATE
            - OPEN
            - IN_PROGRESS
            - ON_HOLD
            - COMPLETED
            - CLOSED
            - CANCELLED
            - OTHER
          x-speakeasy-unknown-values: allow
        pay_type:
          type: string
          description: Primary pay type of the repair order
          enum:
            - CUSTOMER
            - WARRANTY
            - INTERNAL
            - SERVICE_CONTRACT
            - OTHER
          x-speakeasy-unknown-values: allow
        contact_id:
          type: string
          description: Customer, as a CRM Contact
        billing_contact_id:
          type: string
          description: Bill-to party, as a CRM Contact, when it differs from the customer
        vehicle_id:
          type: string
          description: The DmsVehicle ID
        vin:
          type: string
          description: VIN of the vehicle serviced
        appointment_id:
          type: string
          description: The DmsAppointment this repair order was created from
        advisor_user_id:
          type: string
          description: Service advisor, as an HR Employee (reference to HrisEmployee)
        technician_user_ids:
          $ref: "#/components/schemas/property_DmsRepairorder_technician_user_ids"
          description: Technicians, as HR Employees (reference to HrisEmployee)
        appointment_at:
          type: string
          format: date-time
          description: Scheduled appointment or due-in time (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        opened_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        promised_at:
          type: string
          format: date-time
          description: Promised completion time (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        completed_at:
          type: string
          format: date-time
          description: When work finished (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        closed_at:
          type: string
          format: date-time
          description: When the repair order was closed or invoiced (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        delivered_at:
          type: string
          format: date-time
          description: When the vehicle was handed back (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        odometer_in:
          type: number
        odometer_out:
          type: number
        odometer_unit:
          type: string
          enum:
            - MILES
            - KILOMETERS
            - HOURS
            - OTHER
          x-speakeasy-unknown-values: allow
        transport_type:
          type: string
          description: Customer transport while the vehicle is in
          enum:
            - WAITER
            - DROP_OFF
            - SHUTTLE
            - LOANER
            - RENTAL
            - PICKUP_DELIVERY
            - TAXI
            - OTHER
          x-speakeasy-unknown-values: allow
        tag_number:
          type: string
          description: Hang-tag or key-tag number
        purchase_order_number:
          type: string
          description: Customer purchase order number
        is_comeback:
          type: boolean
          description: Repeat repair
        notes:
          type: string
        currency:
          type: string
          description: ISO 4217 currency code
        estimate_amount:
          type: number
          description: Authorized estimate
        labor_amount:
          type: number
        parts_amount:
          type: number
        sublet_amount:
          type: number
        misc_amount:
          type: number
          description: "Other charges: shop supplies, environmental, freight, lube"
        discount_amount:
          type: number
        tax_amount:
          type: number
        total_amount:
          type: number
          description: Grand total including tax
        balance_amount:
          type: number
          description: Amount still owed
        totals:
          $ref: "#/components/schemas/property_DmsRepairorder_totals"
          description: Totals split by pay type
        jobs:
          $ref: "#/components/schemas/property_DmsRepairorder_jobs"
        metadata:
          $ref: "#/components/schemas/property_DmsRepairorder_metadata"
        raw:
          type: object
          description: Raw data from integration
          additionalProperties: true
      description: A service repair order (work order) for one vehicle visit
    DmsRepairorders:
      type: array
      items:
        $ref: "#/components/schemas/DmsRepairorder"
    property_DmsAppointmentService_technician_user_ids:
      type: array
      items:
        type: string
      description: Pre-assigned technicians, as HR Employees
    DmsAppointmentService:
      type: object
      properties:
        id:
          type: string
          description: Line identifier
        opcode_id:
          type: string
          description: The DmsOpcode ID
        name:
          type: string
          description: Service or operation description
        complaint:
          type: string
          description: Customer's own words
        pay_type:
          type: string
          enum:
            - CUSTOMER
            - WARRANTY
            - INTERNAL
            - SERVICE_CONTRACT
            - OTHER
          x-speakeasy-unknown-values: allow
        estimated_hours:
          type: number
        estimate_amount:
          type: number
          description: Estimated price
        technician_user_ids:
          $ref: "#/components/schemas/property_DmsAppointmentService_technician_user_ids"
          description: Pre-assigned technicians, as HR Employees (reference to HrisEmployee)
      description: A service requested on an appointment
    property_DmsAppointment_services:
      type: array
      items:
        $ref: "#/components/schemas/DmsAppointmentService"
      description: Requested services
    property_DmsAppointment_metadata:
      type: array
      items:
        $ref: "#/components/schemas/DmsMetadata"
    DmsAppointment:
      type: object
      properties:
        id:
          type: string
        created_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        updated_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        number:
          type: string
          description: Dealer-visible appointment number
        status:
          type: string
          enum:
            - SCHEDULED
            - CONFIRMED
            - CONVERTED
            - CANCELLED
            - NO_SHOW
            - OTHER
          x-speakeasy-unknown-values: allow
        contact_id:
          type: string
          description: Customer, as a CRM Contact
        vehicle_id:
          type: string
          description: The DmsVehicle ID
        vin:
          type: string
        advisor_user_id:
          type: string
          description: Service advisor, as an HR Employee (reference to HrisEmployee)
        booked_by_user_id:
          type: string
          description: Employee who booked the appointment, as an HR Employee (reference to HrisEmployee)
        repairorder_id:
          type: string
          description: The DmsRepairorder created from this appointment
        start_at:
          type: string
          format: date-time
          description: Appointment (due-in) time (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        end_at:
          type: string
          format: date-time
          description: Promised ready (due-out) time (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        transport_type:
          type: string
          enum:
            - WAITER
            - DROP_OFF
            - SHUTTLE
            - LOANER
            - RENTAL
            - PICKUP_DELIVERY
            - TAXI
            - OTHER
          x-speakeasy-unknown-values: allow
        odometer:
          type: number
          description: Odometer reported at booking
        odometer_unit:
          type: string
          enum:
            - MILES
            - KILOMETERS
            - HOURS
            - OTHER
          x-speakeasy-unknown-values: allow
        notes:
          type: string
        services:
          $ref: "#/components/schemas/property_DmsAppointment_services"
          description: Requested services
        metadata:
          $ref: "#/components/schemas/property_DmsAppointment_metadata"
        raw:
          type: object
          description: Raw data from integration
          additionalProperties: true
      description: A service appointment (booking)
    DmsAppointments:
      type: array
      items:
        $ref: "#/components/schemas/DmsAppointment"
    property_DmsPart_bin_locations:
      type: array
      items:
        type: string
      description: Bin or shelf locations
    property_DmsPart_metadata:
      type: array
      items:
        $ref: "#/components/schemas/DmsMetadata"
    DmsPart:
      type: object
      properties:
        id:
          type: string
        created_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        updated_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        part_number:
          type: string
        description:
          type: string
        manufacturer_code:
          type: string
          description: Make, brand or line code the part number belongs to
        source_code:
          type: string
          description: Dealer price or source class code
        supplier_code:
          type: string
          description: Supplier the part is bought from
        category:
          type: string
          description: Dealer part class or group
        bin_locations:
          $ref: "#/components/schemas/property_DmsPart_bin_locations"
          description: Bin or shelf locations
        quantity_on_hand:
          type: number
        quantity_available:
          type: number
          description: Sellable quantity (on hand minus allocated)
        quantity_on_order:
          type: number
          description: Quantity on open supplier orders
        min_stock_quantity:
          type: number
          description: Minimum stocking level
        max_stock_quantity:
          type: number
          description: Maximum stocking level
        pack_quantity:
          type: number
          description: Units per package
        currency:
          type: string
          description: ISO 4217 currency code
        cost_amount:
          type: number
          description: Dealer unit cost
        list_price_amount:
          type: number
          description: List or retail unit price
        trade_price_amount:
          type: number
          description: Trade or wholesale unit price
        superseded_by_part_number:
          type: string
          description: Part number that replaces this part
        last_sold_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        last_received_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        is_active:
          type: boolean
        metadata:
          $ref: "#/components/schemas/property_DmsPart_metadata"
        raw:
          type: object
          description: Raw data from integration
          additionalProperties: true
      description: A part in the dealer parts inventory
    DmsParts:
      type: array
      items:
        $ref: "#/components/schemas/DmsPart"
    property_DmsPartsale_shipping_address:
      type: object
      properties:
        address1:
          type: string
          description: first line of the street address
        address2:
          type: string
          description: second line of the street address
        city:
          type: string
          description: city or locality
        region:
          type: string
          description: state, province or regional area
        region_code:
          type: string
          description: state, province or regional area code
        postal_code:
          type: string
          description: postal or ZIP code
        country:
          type: string
          description: country name
        country_code:
          type: string
          description: ISO 3166-1 alpha-2 country code
    property_DmsPartsale_lines:
      type: array
      items:
        $ref: "#/components/schemas/DmsPartline"
    property_DmsPartsale_metadata:
      type: array
      items:
        $ref: "#/components/schemas/DmsMetadata"
    DmsPartsale:
      type: object
      properties:
        id:
          type: string
        created_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        updated_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        number:
          type: string
          description: Dealer-visible invoice, order or quote number
        type:
          type: string
          enum:
            - SALE
            - QUOTE
            - RETURN
            - OTHER
          x-speakeasy-unknown-values: allow
        status:
          type: string
          enum:
            - DRAFT
            - OPEN
            - INVOICED
            - SHIPPED
            - CLOSED
            - VOIDED
            - OTHER
          x-speakeasy-unknown-values: allow
        contact_id:
          type: string
          description: Sold-to customer, as a CRM Contact
        salesperson_user_id:
          type: string
          description: Counter person, as an HR Employee (reference to HrisEmployee)
        vehicle_id:
          type: string
          description: The DmsVehicle the parts were sold for
        pay_type:
          type: string
          enum:
            - CUSTOMER
            - WARRANTY
            - INTERNAL
            - SERVICE_CONTRACT
            - OTHER
          x-speakeasy-unknown-values: allow
        purchase_order_number:
          type: string
          description: Customer purchase order number
        closed_at:
          type: string
          format: date-time
          description: When the sale was closed, cashiered or posted (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        shipped_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        currency:
          type: string
          description: ISO 4217 currency code
        subtotal_amount:
          type: number
          description: Total before tax
        discount_amount:
          type: number
        freight_amount:
          type: number
          description: Freight, shipping or handling charge
        tax_amount:
          type: number
        total_amount:
          type: number
        cost_amount:
          type: number
          description: Total dealer cost
        notes:
          type: string
        shipping_address:
          $ref: "#/components/schemas/property_DmsPartsale_shipping_address"
        lines:
          $ref: "#/components/schemas/property_DmsPartsale_lines"
        metadata:
          $ref: "#/components/schemas/property_DmsPartsale_metadata"
        raw:
          type: object
          description: Raw data from integration
          additionalProperties: true
      description: A parts counter sale, quote or return
    DmsPartsales:
      type: array
      items:
        $ref: "#/components/schemas/DmsPartsale"
    property_DmsOpcode_parts:
      type: array
      items:
        $ref: "#/components/schemas/DmsPartline"
      description: Parts included in the operation
    property_DmsOpcode_metadata:
      type: array
      items:
        $ref: "#/components/schemas/DmsMetadata"
    DmsOpcode:
      type: object
      properties:
        id:
          type: string
        created_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        updated_at:
          type: string
          format: date-time
          description: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        code:
          type: string
          description: Operation code
        description:
          type: string
        type:
          type: string
          enum:
            - LABOR
            - MENU
            - SUBLET
            - OTHER
          x-speakeasy-unknown-values: allow
        category:
          type: string
          description: Operation category or group
        pay_type:
          type: string
          description: Default pay type
          enum:
            - CUSTOMER
            - WARRANTY
            - INTERNAL
            - SERVICE_CONTRACT
            - OTHER
          x-speakeasy-unknown-values: allow
        flat_rate_hours:
          type: number
          description: Billable (flat-rate) hours
        estimated_hours:
          type: number
          description: Expected duration, for scheduling
        currency:
          type: string
          description: ISO 4217 currency code
        price_amount:
          type: number
          description: Fixed selling price
        labor_rate_amount:
          type: number
          description: Default hourly labor rate
        skill_code:
          type: string
          description: Required technician skill or skill level
        make:
          type: string
          description: Vehicle make the operation applies to
        oem_code:
          type: string
          description: Manufacturer labor operation code
        is_active:
          type: boolean
        parts:
          $ref: "#/components/schemas/property_DmsOpcode_parts"
          description: Parts included in the operation
        metadata:
          $ref: "#/components/schemas/property_DmsOpcode_metadata"
        raw:
          type: object
          description: Raw data from integration
          additionalProperties: true
      description: A service operation code (labor operation, menu or standard repair time)
    DmsOpcodes:
      type: array
      items:
        $ref: "#/components/schemas/DmsOpcode"
paths:
  /dms/{connection_id}/vehicle:
    post:
      summary: Create a vehicle
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - is_inventory
                - vin
                - stock_number
                - fleet_number
                - license_plate
                - year
                - make
                - model
                - trim
                - model_code
                - description
                - type
                - body_style
                - condition
                - is_certified
                - status
                - odometer
                - odometer_unit
                - exterior_color
                - interior_color
                - fuel_type
                - transmission
                - currency
                - price_amount
                - msrp_amount
                - internet_price_amount
                - cost_amount
                - received_at
                - sold_at
                - delivered_at
                - in_service_at
                - warranty_expires_at
                - last_service_at
                - contact_id
                - company_id
                - options
                - image_urls
                - is_published
                - is_active
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
      tags:
        - dms
        - vehicle
      description: Creates a DmsVehicle. Provide the unified DmsVehicle fields in the request body; they are mapped to the provider's API. Returns the created DmsVehicle.
      requestBody:
        description: "A vehicle or other dealer unit: dealer stock or a customer-owned vehicle seen by service"
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsVehicle"
            examples:
              dms_vehicle:
                summary: Sample DmsVehicle
                value:
                  id: 06d9d30e-bd26-46e1-965f-9fa8461d5906
                  created_at: "2021-02-03T08:01:58.559Z"
                  updated_at: "2023-11-06T20:18:47.588Z"
                  is_inventory: true
                  vin: C29ZDU474DDR70955
                  stock_number: N24959
                  year: 2023
                  make: Citroën
                  model: Silverado
                  trim: Base
                  model_code: PMU8KI
                  description: 2023 Citroën Silverado
                  type: SUV
                  body_style: Pickup
                  condition: NEW
                  is_certified: false
                  status: OTHER
                  odometer: 1
                  odometer_unit: MILES
                  exterior_color: lavender
                  interior_color: Black
                  fuel_type: ELECTRIC
                  transmission: Manual
                  currency: USD
                  price_amount: 29926
                  msrp_amount: 33100
                  internet_price_amount: 29526
                  cost_amount: 26498
                  received_at: "2021-02-03T08:01:58.559Z"
                  warranty_expires_at: "2022-03-28T09:10:09.889Z"
                  options:
                    - code: SXE
                      description: Tow package
                      type: DEALER
                      price_amount: 1400
                      cost_amount: 250
                    - code: "458"
                      description: Tow package
                      type: DEALER
                      price_amount: 600
                      cost_amount: 700
                  image_urls:
                    - https://picsum.photos/seed/tOUr5K/1358/1877
                  is_published: false
                  is_active: true
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsVehicle"
          description: Successful
      security:
        - jwt: []
      operationId: createDmsVehicle
    get:
      summary: List all vehicles
      parameters:
        - schema:
            type: number
          name: limit
          in: query
          required: false
        - schema:
            type: number
          name: offset
          in: query
          required: false
        - schema:
            type: string
          name: updated_gte
          in: query
          required: false
          description: Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        - schema:
            type: string
          name: sort
          in: query
          required: false
        - schema:
            type: string
          name: order
          in: query
          required: false
        - schema:
            type: string
          name: query
          in: query
          required: false
          description: Query string to search. eg. email address or name
        - schema:
            type: string
          name: contact_id
          in: query
          required: false
          description: The contact ID to filter by
        - schema:
            type: string
          name: company_id
          in: query
          required: false
          description: The company ID to filter by
        - schema:
            type: string
          name: status
          in: query
          required: false
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - is_inventory
                - vin
                - stock_number
                - fleet_number
                - license_plate
                - year
                - make
                - model
                - trim
                - model_code
                - description
                - type
                - body_style
                - condition
                - is_certified
                - status
                - odometer
                - odometer_unit
                - exterior_color
                - interior_color
                - fuel_type
                - transmission
                - currency
                - price_amount
                - msrp_amount
                - internet_price_amount
                - cost_amount
                - received_at
                - sold_at
                - delivered_at
                - in_service_at
                - warranty_expires_at
                - last_service_at
                - contact_id
                - company_id
                - options
                - image_urls
                - is_published
                - is_active
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
      tags:
        - dms
        - vehicle
      description: Returns a list of DmsVehicles. Narrow the results with the query parameters before paging, then page through them with `limit` and `offset` (the default and maximum page size depend on the integration). Use `fields` to return only the fields you need and reduce the response size. When the integration supports a total count, it is returned in the `X-Total-Count` response header. Use each item's `id` to retrieve, update, or delete it where those operations are supported.
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsVehicles"
          description: Successful
      security:
        - jwt: []
      operationId: listDmsVehicles
  /dms/{connection_id}/vehicle/{id}:
    get:
      summary: Retrieve a vehicle
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - is_inventory
                - vin
                - stock_number
                - fleet_number
                - license_plate
                - year
                - make
                - model
                - trim
                - model_code
                - description
                - type
                - body_style
                - condition
                - is_certified
                - status
                - odometer
                - odometer_unit
                - exterior_color
                - interior_color
                - fuel_type
                - transmission
                - currency
                - price_amount
                - msrp_amount
                - internet_price_amount
                - cost_amount
                - received_at
                - sold_at
                - delivered_at
                - in_service_at
                - warranty_expires_at
                - last_service_at
                - contact_id
                - company_id
                - options
                - image_urls
                - is_published
                - is_active
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Vehicle
          name: id
          in: path
          required: true
      tags:
        - dms
        - vehicle
      description: Retrieves a single DmsVehicle by its `id`. Obtain `id` values from the corresponding list endpoint. Use `fields` to return only the fields you need.
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsVehicle"
          description: Successful
      security:
        - jwt: []
      operationId: getDmsVehicle
    put:
      summary: Update a vehicle
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - is_inventory
                - vin
                - stock_number
                - fleet_number
                - license_plate
                - year
                - make
                - model
                - trim
                - model_code
                - description
                - type
                - body_style
                - condition
                - is_certified
                - status
                - odometer
                - odometer_unit
                - exterior_color
                - interior_color
                - fuel_type
                - transmission
                - currency
                - price_amount
                - msrp_amount
                - internet_price_amount
                - cost_amount
                - received_at
                - sold_at
                - delivered_at
                - in_service_at
                - warranty_expires_at
                - last_service_at
                - contact_id
                - company_id
                - options
                - image_urls
                - is_published
                - is_active
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Vehicle
          name: id
          in: path
          required: true
      tags:
        - dms
        - vehicle
      description: Updates the DmsVehicle identified by `id`. Provide the unified DmsVehicle fields to change in the request body.
      requestBody:
        description: "A vehicle or other dealer unit: dealer stock or a customer-owned vehicle seen by service"
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsVehicle"
            examples:
              dms_vehicle:
                summary: Sample DmsVehicle
                value:
                  id: a10a5ef6-f715-4545-b441-37e5b94fcc71
                  created_at: "2021-02-03T08:01:58.559Z"
                  updated_at: "2023-11-06T20:18:47.595Z"
                  is_inventory: true
                  vin: C29ZDU474DDR70955
                  stock_number: N24959
                  year: 2023
                  make: Citroën
                  model: Silverado
                  trim: Base
                  model_code: PMU8KI
                  description: 2023 Citroën Silverado
                  type: SUV
                  body_style: Pickup
                  condition: NEW
                  is_certified: false
                  status: OTHER
                  odometer: 1
                  odometer_unit: MILES
                  exterior_color: lavender
                  interior_color: Black
                  fuel_type: ELECTRIC
                  transmission: Manual
                  currency: USD
                  price_amount: 29926
                  msrp_amount: 33100
                  internet_price_amount: 29526
                  cost_amount: 26498
                  received_at: "2021-02-03T08:01:58.559Z"
                  warranty_expires_at: "2022-03-28T09:10:09.889Z"
                  options:
                    - code: SXE
                      description: Tow package
                      type: DEALER
                      price_amount: 1400
                      cost_amount: 250
                    - code: "458"
                      description: Tow package
                      type: DEALER
                      price_amount: 600
                      cost_amount: 700
                  image_urls:
                    - https://picsum.photos/seed/tOUr5K/1358/1877
                  is_published: false
                  is_active: true
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsVehicle"
          description: Successful
      security:
        - jwt: []
      operationId: updateDmsVehicle
    patch:
      summary: Update a vehicle
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - is_inventory
                - vin
                - stock_number
                - fleet_number
                - license_plate
                - year
                - make
                - model
                - trim
                - model_code
                - description
                - type
                - body_style
                - condition
                - is_certified
                - status
                - odometer
                - odometer_unit
                - exterior_color
                - interior_color
                - fuel_type
                - transmission
                - currency
                - price_amount
                - msrp_amount
                - internet_price_amount
                - cost_amount
                - received_at
                - sold_at
                - delivered_at
                - in_service_at
                - warranty_expires_at
                - last_service_at
                - contact_id
                - company_id
                - options
                - image_urls
                - is_published
                - is_active
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Vehicle
          name: id
          in: path
          required: true
      tags:
        - dms
        - vehicle
      description: Updates the DmsVehicle identified by `id`. Provide the unified DmsVehicle fields to change in the request body.
      requestBody:
        description: "A vehicle or other dealer unit: dealer stock or a customer-owned vehicle seen by service"
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsVehicle"
            examples:
              dms_vehicle:
                summary: Sample DmsVehicle
                value:
                  id: a10a5ef6-f715-4545-b441-37e5b94fcc71
                  created_at: "2021-02-03T08:01:58.559Z"
                  updated_at: "2023-11-06T20:18:47.595Z"
                  is_inventory: true
                  vin: C29ZDU474DDR70955
                  stock_number: N24959
                  year: 2023
                  make: Citroën
                  model: Silverado
                  trim: Base
                  model_code: PMU8KI
                  description: 2023 Citroën Silverado
                  type: SUV
                  body_style: Pickup
                  condition: NEW
                  is_certified: false
                  status: OTHER
                  odometer: 1
                  odometer_unit: MILES
                  exterior_color: lavender
                  interior_color: Black
                  fuel_type: ELECTRIC
                  transmission: Manual
                  currency: USD
                  price_amount: 29926
                  msrp_amount: 33100
                  internet_price_amount: 29526
                  cost_amount: 26498
                  received_at: "2021-02-03T08:01:58.559Z"
                  warranty_expires_at: "2022-03-28T09:10:09.889Z"
                  options:
                    - code: SXE
                      description: Tow package
                      type: DEALER
                      price_amount: 1400
                      cost_amount: 250
                    - code: "458"
                      description: Tow package
                      type: DEALER
                      price_amount: 600
                      cost_amount: 700
                  image_urls:
                    - https://picsum.photos/seed/tOUr5K/1358/1877
                  is_published: false
                  is_active: true
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsVehicle"
          description: Successful
      security:
        - jwt: []
      operationId: patchDmsVehicle
  /dms/{connection_id}/vehiclesale:
    post:
      summary: Create a vehiclesale
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - status
                - type
                - finance_type
                - contact_ids
                - company_ids
                - lead_id
                - salesperson_user_ids
                - sales_manager_user_id
                - finance_manager_user_ids
                - vehicles
                - trade_ins
                - fees
                - products
                - taxes
                - finance
                - currency
                - rebate_amount
                - down_payment_amount
                - tax_amount
                - total_amount
                - front_gross_amount
                - back_gross_amount
                - sold_at
                - delivered_at
                - posted_at
                - source
                - notes
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
      tags:
        - dms
        - vehiclesale
      description: Creates a DmsVehiclesale. Provide the unified DmsVehiclesale fields in the request body; they are mapped to the provider's API. Returns the created DmsVehiclesale.
      requestBody:
        description: A vehicle sale or deal (retail, wholesale, fleet or dealer trade)
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsVehiclesale"
            examples:
              dms_vehiclesale:
                summary: Sample DmsVehiclesale
                value:
                  id: 01a0b6b9-2b1c-4f68-9625-8b1f7f2fa08f
                  created_at: "2020-04-02T08:14:56.150Z"
                  updated_at: "2025-04-22T03:38:03.252Z"
                  number: D84591
                  status: SOLD
                  type: RETAIL
                  finance_type: FINANCE
                  vehicles: []
                  trade_ins: []
                  fees:
                    - name: Documentation fee
                      price_amount: 499
                      cost_amount: 0
                      is_capitalized: true
                    - name: Title and registration
                      price_amount: 392
                      is_capitalized: false
                  products:
                    - type: PROTECTION
                      name: Tire & Wheel
                      provider: Renner and Sons
                      price_amount: 3300
                      cost_amount: 1320
                      term_months: 60
                      contract_number: B7JN10GVB7
                    - type: SERVICE_CONTRACT
                      name: Platinum Vehicle Service Contract
                      provider: Frami, Wisozk and Gleichner
                      price_amount: 3700
                      cost_amount: 1115
                      term_months: 72
                      deductible_amount: 100
                      contract_number: VIZU7K3VRU
                  taxes:
                    - name: State sales tax
                      rate: 8.25
                      total_amount: 0
                  finance:
                    lender_name: Mueller, Yundt and Murray Financial
                    term_months: 72
                    interest_rate: 6.68
                    payment_amount: 339
                    payment_frequency: MONTHLY
                    financed_amount: 0
                    first_payment_at: "2022-08-18T22:41:06.382Z"
                  currency: USD
                  rebate_amount: 500
                  down_payment_amount: 6700
                  tax_amount: 0
                  total_amount: 7891
                  back_gross_amount: 4565
                  sold_at: "2022-08-17T07:25:32.095Z"
                  source: Website
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsVehiclesale"
          description: Successful
      security:
        - jwt: []
      operationId: createDmsVehiclesale
    get:
      summary: List all vehiclesales
      parameters:
        - schema:
            type: number
          name: limit
          in: query
          required: false
        - schema:
            type: number
          name: offset
          in: query
          required: false
        - schema:
            type: string
          name: updated_gte
          in: query
          required: false
          description: Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        - schema:
            type: string
          name: sort
          in: query
          required: false
        - schema:
            type: string
          name: order
          in: query
          required: false
        - schema:
            type: string
          name: query
          in: query
          required: false
          description: Query string to search. eg. email address or name
        - schema:
            type: string
          name: contact_id
          in: query
          required: false
          description: The contact ID to filter by
        - schema:
            type: string
          name: vehicle_id
          in: query
          required: false
          description: The DMS vehicle ID to filter by
        - schema:
            type: string
          name: user_id
          in: query
          required: false
          description: The user/employee ID to filter by (reference to HrisEmployee)
        - schema:
            type: string
          name: status
          in: query
          required: false
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - status
                - type
                - finance_type
                - contact_ids
                - company_ids
                - lead_id
                - salesperson_user_ids
                - sales_manager_user_id
                - finance_manager_user_ids
                - vehicles
                - trade_ins
                - fees
                - products
                - taxes
                - finance
                - currency
                - rebate_amount
                - down_payment_amount
                - tax_amount
                - total_amount
                - front_gross_amount
                - back_gross_amount
                - sold_at
                - delivered_at
                - posted_at
                - source
                - notes
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
      tags:
        - dms
        - vehiclesale
      description: Returns a list of DmsVehiclesales. Narrow the results with the query parameters before paging, then page through them with `limit` and `offset` (the default and maximum page size depend on the integration). Use `fields` to return only the fields you need and reduce the response size. When the integration supports a total count, it is returned in the `X-Total-Count` response header. Use each item's `id` to retrieve, update, or delete it where those operations are supported.
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsVehiclesales"
          description: Successful
      security:
        - jwt: []
      operationId: listDmsVehiclesales
  /dms/{connection_id}/vehiclesale/{id}:
    get:
      summary: Retrieve a vehiclesale
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - status
                - type
                - finance_type
                - contact_ids
                - company_ids
                - lead_id
                - salesperson_user_ids
                - sales_manager_user_id
                - finance_manager_user_ids
                - vehicles
                - trade_ins
                - fees
                - products
                - taxes
                - finance
                - currency
                - rebate_amount
                - down_payment_amount
                - tax_amount
                - total_amount
                - front_gross_amount
                - back_gross_amount
                - sold_at
                - delivered_at
                - posted_at
                - source
                - notes
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Vehiclesale
          name: id
          in: path
          required: true
      tags:
        - dms
        - vehiclesale
      description: Retrieves a single DmsVehiclesale by its `id`. Obtain `id` values from the corresponding list endpoint. Use `fields` to return only the fields you need.
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsVehiclesale"
          description: Successful
      security:
        - jwt: []
      operationId: getDmsVehiclesale
    put:
      summary: Update a vehiclesale
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - status
                - type
                - finance_type
                - contact_ids
                - company_ids
                - lead_id
                - salesperson_user_ids
                - sales_manager_user_id
                - finance_manager_user_ids
                - vehicles
                - trade_ins
                - fees
                - products
                - taxes
                - finance
                - currency
                - rebate_amount
                - down_payment_amount
                - tax_amount
                - total_amount
                - front_gross_amount
                - back_gross_amount
                - sold_at
                - delivered_at
                - posted_at
                - source
                - notes
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Vehiclesale
          name: id
          in: path
          required: true
      tags:
        - dms
        - vehiclesale
      description: Updates the DmsVehiclesale identified by `id`. Provide the unified DmsVehiclesale fields to change in the request body.
      requestBody:
        description: A vehicle sale or deal (retail, wholesale, fleet or dealer trade)
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsVehiclesale"
            examples:
              dms_vehiclesale:
                summary: Sample DmsVehiclesale
                value:
                  id: de9e12c4-4ac4-4360-b6b7-bdc6e30209d1
                  created_at: "2020-04-02T08:14:56.150Z"
                  updated_at: "2025-04-22T03:38:03.267Z"
                  number: D84591
                  status: SOLD
                  type: RETAIL
                  finance_type: FINANCE
                  vehicles: []
                  trade_ins: []
                  fees:
                    - name: Documentation fee
                      price_amount: 499
                      cost_amount: 0
                      is_capitalized: true
                    - name: Title and registration
                      price_amount: 392
                      is_capitalized: false
                  products:
                    - type: PROTECTION
                      name: Tire & Wheel
                      provider: Renner and Sons
                      price_amount: 3300
                      cost_amount: 1320
                      term_months: 60
                      contract_number: B7JN10GVB7
                    - type: SERVICE_CONTRACT
                      name: Platinum Vehicle Service Contract
                      provider: Frami, Wisozk and Gleichner
                      price_amount: 3700
                      cost_amount: 1115
                      term_months: 72
                      deductible_amount: 100
                      contract_number: VIZU7K3VRU
                  taxes:
                    - name: State sales tax
                      rate: 8.25
                      total_amount: 0
                  finance:
                    lender_name: Mueller, Yundt and Murray Financial
                    term_months: 72
                    interest_rate: 6.68
                    payment_amount: 339
                    payment_frequency: MONTHLY
                    financed_amount: 0
                    first_payment_at: "2022-08-18T22:41:06.389Z"
                  currency: USD
                  rebate_amount: 500
                  down_payment_amount: 6700
                  tax_amount: 0
                  total_amount: 7891
                  back_gross_amount: 4565
                  sold_at: "2022-08-17T07:25:32.102Z"
                  source: Website
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsVehiclesale"
          description: Successful
      security:
        - jwt: []
      operationId: updateDmsVehiclesale
    patch:
      summary: Update a vehiclesale
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - status
                - type
                - finance_type
                - contact_ids
                - company_ids
                - lead_id
                - salesperson_user_ids
                - sales_manager_user_id
                - finance_manager_user_ids
                - vehicles
                - trade_ins
                - fees
                - products
                - taxes
                - finance
                - currency
                - rebate_amount
                - down_payment_amount
                - tax_amount
                - total_amount
                - front_gross_amount
                - back_gross_amount
                - sold_at
                - delivered_at
                - posted_at
                - source
                - notes
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Vehiclesale
          name: id
          in: path
          required: true
      tags:
        - dms
        - vehiclesale
      description: Updates the DmsVehiclesale identified by `id`. Provide the unified DmsVehiclesale fields to change in the request body.
      requestBody:
        description: A vehicle sale or deal (retail, wholesale, fleet or dealer trade)
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsVehiclesale"
            examples:
              dms_vehiclesale:
                summary: Sample DmsVehiclesale
                value:
                  id: de9e12c4-4ac4-4360-b6b7-bdc6e30209d1
                  created_at: "2020-04-02T08:14:56.150Z"
                  updated_at: "2025-04-22T03:38:03.267Z"
                  number: D84591
                  status: SOLD
                  type: RETAIL
                  finance_type: FINANCE
                  vehicles: []
                  trade_ins: []
                  fees:
                    - name: Documentation fee
                      price_amount: 499
                      cost_amount: 0
                      is_capitalized: true
                    - name: Title and registration
                      price_amount: 392
                      is_capitalized: false
                  products:
                    - type: PROTECTION
                      name: Tire & Wheel
                      provider: Renner and Sons
                      price_amount: 3300
                      cost_amount: 1320
                      term_months: 60
                      contract_number: B7JN10GVB7
                    - type: SERVICE_CONTRACT
                      name: Platinum Vehicle Service Contract
                      provider: Frami, Wisozk and Gleichner
                      price_amount: 3700
                      cost_amount: 1115
                      term_months: 72
                      deductible_amount: 100
                      contract_number: VIZU7K3VRU
                  taxes:
                    - name: State sales tax
                      rate: 8.25
                      total_amount: 0
                  finance:
                    lender_name: Mueller, Yundt and Murray Financial
                    term_months: 72
                    interest_rate: 6.68
                    payment_amount: 339
                    payment_frequency: MONTHLY
                    financed_amount: 0
                    first_payment_at: "2022-08-18T22:41:06.389Z"
                  currency: USD
                  rebate_amount: 500
                  down_payment_amount: 6700
                  tax_amount: 0
                  total_amount: 7891
                  back_gross_amount: 4565
                  sold_at: "2022-08-17T07:25:32.102Z"
                  source: Website
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsVehiclesale"
          description: Successful
      security:
        - jwt: []
      operationId: patchDmsVehiclesale
  /dms/{connection_id}/repairorder:
    post:
      summary: Create a repairorder
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - status
                - pay_type
                - contact_id
                - billing_contact_id
                - vehicle_id
                - vin
                - appointment_id
                - advisor_user_id
                - technician_user_ids
                - appointment_at
                - opened_at
                - promised_at
                - completed_at
                - closed_at
                - delivered_at
                - odometer_in
                - odometer_out
                - odometer_unit
                - transport_type
                - tag_number
                - purchase_order_number
                - is_comeback
                - notes
                - currency
                - estimate_amount
                - labor_amount
                - parts_amount
                - sublet_amount
                - misc_amount
                - discount_amount
                - tax_amount
                - total_amount
                - balance_amount
                - totals
                - jobs
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
      tags:
        - dms
        - repairorder
      description: Creates a DmsRepairorder. Provide the unified DmsRepairorder fields in the request body; they are mapped to the provider's API. Returns the created DmsRepairorder.
      requestBody:
        description: A service repair order (work order) for one vehicle visit
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsRepairorder"
            examples:
              dms_repairorder:
                summary: Sample DmsRepairorder
                value:
                  id: 26159016-149e-4a80-bd77-5bbf980d5ca7
                  created_at: "2022-10-25T15:50:48.007Z"
                  updated_at: "2025-12-03T23:09:27.005Z"
                  number: "143398"
                  status: COMPLETED
                  pay_type: WARRANTY
                  technician_user_ids: []
                  opened_at: "2025-02-12T06:37:48.663Z"
                  promised_at: "2025-02-13T14:37:48.663Z"
                  completed_at: "2026-11-20T17:18:10.687Z"
                  odometer_in: 7776
                  odometer_out: 7776
                  odometer_unit: MILES
                  transport_type: LOANER
                  tag_number: "758"
                  purchase_order_number: "182743"
                  currency: USD
                  estimate_amount: 3264
                  labor_amount: 1360.4
                  parts_amount: 1680.8000000000002
                  sublet_amount: 0
                  misc_amount: 35
                  discount_amount: 0
                  tax_amount: 117.66
                  total_amount: 3193.86
                  balance_amount: 3193.86
                  totals:
                    - pay_type: CUSTOMER
                      labor_amount: 232.4
                      parts_amount: 574.1800000000001
                      sublet_amount: 0
                      discount_amount: 0
                      total_amount: 806.58
                    - pay_type: WARRANTY
                      labor_amount: 1128
                      parts_amount: 1106.6200000000001
                      sublet_amount: 0
                      discount_amount: 0
                      total_amount: 2234.62
                  jobs:
                    - id: 7b6bc602-e5bb-4863-bfd0-40374dc83298
                      number: A
                      name: Customer concern
                      complaint: Due for service
                      cause: Scheduled maintenance
                      correction: Aufero cumque vicinus aptus assumenda quis aptus.
                      status: COMPLETED
                      pay_type: WARRANTY
                      technician_user_ids: []
                      sold_hours: 3.2
                      actual_hours: 3.6
                      labor_amount: 681.6
                      parts_amount: 0
                      total_amount: 681.6
                      labors:
                        - id: 51b9e654-101a-474a-a1ef-101c7df7ee6c
                          pay_type: WARRANTY
                          technician_user_ids: []
                          sold_hours: 3.2
                          rate_amount: 213
                          total_amount: 681.6
                      parts: []
                    - id: 4f83e6d9-0e8e-425a-ad50-440b1e0f9256
                      number: B
                      name: Customer concern
                      complaint: Vibration at highway speed
                      cause: Worn brake pads
                      correction: Somnus avaritia utroque vulnero ullam ancilla.
                      status: COMPLETED
                      pay_type: WARRANTY
                      technician_user_ids: []
                      sold_hours: 3.1
                      actual_hours: 3
                      labor_amount: 446.4
                      parts_amount: 1106.6200000000001
                      total_amount: 1553.02
                      labors:
                        - id: 2d4afffe-6d06-4674-88aa-183d1bf92306
                          pay_type: WARRANTY
                          technician_user_ids: []
                          sold_hours: 3.1
                          rate_amount: 144
                          total_amount: 446.4
                      parts:
                        - id: d0af3713-3269-4c3f-978a-75adbc41c494
                          pay_type: WARRANTY
                          quantity: 4
                          quantity_ordered: 4
                          unit_price_amount: 222.61
                          total_amount: 890.44
                        - id: b9218c9e-c0b0-44c4-a7ac-c0343e466bc8
                          pay_type: WARRANTY
                          quantity: 2
                          quantity_ordered: 2
                          unit_price_amount: 108.09
                          total_amount: 216.18
                    - id: 8a70ad92-1821-4eb4-9b4b-8aecfe088617
                      number: C
                      name: Customer concern
                      complaint: Noise when braking
                      cause: Scheduled maintenance
                      correction: Degero theca natus.
                      status: COMPLETED
                      pay_type: CUSTOMER
                      technician_user_ids: []
                      sold_hours: 1.4
                      actual_hours: 1.5
                      labor_amount: 232.4
                      parts_amount: 574.1800000000001
                      total_amount: 806.58
                      labors:
                        - id: 2e4ac807-32a7-44f7-84e1-a5e5684ab3ee
                          pay_type: CUSTOMER
                          technician_user_ids: []
                          sold_hours: 1.4
                          rate_amount: 166
                          total_amount: 232.4
                      parts:
                        - id: 07c13a62-1ed6-47e7-854b-ce66defee25b
                          pay_type: CUSTOMER
                          quantity: 1
                          quantity_ordered: 1
                          unit_price_amount: 216.02
                          total_amount: 216.02
                        - id: 19714ca5-1aa9-45c3-8fbf-6b1b2ba39cd1
                          pay_type: CUSTOMER
                          quantity: 2
                          quantity_ordered: 2
                          unit_price_amount: 179.08
                          total_amount: 358.16
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsRepairorder"
          description: Successful
      security:
        - jwt: []
      operationId: createDmsRepairorder
    get:
      summary: List all repairorders
      parameters:
        - schema:
            type: number
          name: limit
          in: query
          required: false
        - schema:
            type: number
          name: offset
          in: query
          required: false
        - schema:
            type: string
          name: updated_gte
          in: query
          required: false
          description: Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        - schema:
            type: string
          name: sort
          in: query
          required: false
        - schema:
            type: string
          name: order
          in: query
          required: false
        - schema:
            type: string
          name: query
          in: query
          required: false
          description: Query string to search. eg. email address or name
        - schema:
            type: string
          name: contact_id
          in: query
          required: false
          description: The contact ID to filter by
        - schema:
            type: string
          name: vehicle_id
          in: query
          required: false
          description: The DMS vehicle ID to filter by
        - schema:
            type: string
          name: user_id
          in: query
          required: false
          description: The user/employee ID to filter by (reference to HrisEmployee)
        - schema:
            type: string
          name: status
          in: query
          required: false
        - schema:
            type: string
          name: start_gte
          in: query
          required: false
          description: The start date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        - schema:
            type: string
          name: end_lt
          in: query
          required: false
          description: The end date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - status
                - pay_type
                - contact_id
                - billing_contact_id
                - vehicle_id
                - vin
                - appointment_id
                - advisor_user_id
                - technician_user_ids
                - appointment_at
                - opened_at
                - promised_at
                - completed_at
                - closed_at
                - delivered_at
                - odometer_in
                - odometer_out
                - odometer_unit
                - transport_type
                - tag_number
                - purchase_order_number
                - is_comeback
                - notes
                - currency
                - estimate_amount
                - labor_amount
                - parts_amount
                - sublet_amount
                - misc_amount
                - discount_amount
                - tax_amount
                - total_amount
                - balance_amount
                - totals
                - jobs
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
      tags:
        - dms
        - repairorder
      description: Returns a list of DmsRepairorders. Narrow the results with the query parameters before paging, then page through them with `limit` and `offset` (the default and maximum page size depend on the integration). Use `fields` to return only the fields you need and reduce the response size. When the integration supports a total count, it is returned in the `X-Total-Count` response header. Use each item's `id` to retrieve, update, or delete it where those operations are supported.
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsRepairorders"
          description: Successful
      security:
        - jwt: []
      operationId: listDmsRepairorders
  /dms/{connection_id}/repairorder/{id}:
    get:
      summary: Retrieve a repairorder
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - status
                - pay_type
                - contact_id
                - billing_contact_id
                - vehicle_id
                - vin
                - appointment_id
                - advisor_user_id
                - technician_user_ids
                - appointment_at
                - opened_at
                - promised_at
                - completed_at
                - closed_at
                - delivered_at
                - odometer_in
                - odometer_out
                - odometer_unit
                - transport_type
                - tag_number
                - purchase_order_number
                - is_comeback
                - notes
                - currency
                - estimate_amount
                - labor_amount
                - parts_amount
                - sublet_amount
                - misc_amount
                - discount_amount
                - tax_amount
                - total_amount
                - balance_amount
                - totals
                - jobs
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Repairorder
          name: id
          in: path
          required: true
      tags:
        - dms
        - repairorder
      description: Retrieves a single DmsRepairorder by its `id`. Obtain `id` values from the corresponding list endpoint. Use `fields` to return only the fields you need.
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsRepairorder"
          description: Successful
      security:
        - jwt: []
      operationId: getDmsRepairorder
    put:
      summary: Update a repairorder
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - status
                - pay_type
                - contact_id
                - billing_contact_id
                - vehicle_id
                - vin
                - appointment_id
                - advisor_user_id
                - technician_user_ids
                - appointment_at
                - opened_at
                - promised_at
                - completed_at
                - closed_at
                - delivered_at
                - odometer_in
                - odometer_out
                - odometer_unit
                - transport_type
                - tag_number
                - purchase_order_number
                - is_comeback
                - notes
                - currency
                - estimate_amount
                - labor_amount
                - parts_amount
                - sublet_amount
                - misc_amount
                - discount_amount
                - tax_amount
                - total_amount
                - balance_amount
                - totals
                - jobs
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Repairorder
          name: id
          in: path
          required: true
      tags:
        - dms
        - repairorder
      description: Updates the DmsRepairorder identified by `id`. Provide the unified DmsRepairorder fields to change in the request body.
      requestBody:
        description: A service repair order (work order) for one vehicle visit
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsRepairorder"
            examples:
              dms_repairorder:
                summary: Sample DmsRepairorder
                value:
                  id: c0ffa98e-2bb5-498a-9aab-d1609d5890fd
                  created_at: "2022-10-25T15:50:48.007Z"
                  updated_at: "2025-12-03T23:09:27.022Z"
                  number: "143398"
                  status: COMPLETED
                  pay_type: WARRANTY
                  technician_user_ids: []
                  opened_at: "2025-02-12T06:37:48.676Z"
                  promised_at: "2025-02-13T14:37:48.676Z"
                  completed_at: "2026-11-20T17:18:10.709Z"
                  odometer_in: 7776
                  odometer_out: 7776
                  odometer_unit: MILES
                  transport_type: LOANER
                  tag_number: "758"
                  purchase_order_number: "182743"
                  currency: USD
                  estimate_amount: 3264
                  labor_amount: 1360.4
                  parts_amount: 1680.8000000000002
                  sublet_amount: 0
                  misc_amount: 35
                  discount_amount: 0
                  tax_amount: 117.66
                  total_amount: 3193.86
                  balance_amount: 3193.86
                  totals:
                    - pay_type: CUSTOMER
                      labor_amount: 232.4
                      parts_amount: 574.1800000000001
                      sublet_amount: 0
                      discount_amount: 0
                      total_amount: 806.58
                    - pay_type: WARRANTY
                      labor_amount: 1128
                      parts_amount: 1106.6200000000001
                      sublet_amount: 0
                      discount_amount: 0
                      total_amount: 2234.62
                  jobs:
                    - id: c20dc8af-0efa-4ab9-a2bd-e12f8b67e5af
                      number: A
                      name: Customer concern
                      complaint: Due for service
                      cause: Scheduled maintenance
                      correction: Aufero cumque vicinus aptus assumenda quis aptus.
                      status: COMPLETED
                      pay_type: WARRANTY
                      technician_user_ids: []
                      sold_hours: 3.2
                      actual_hours: 3.6
                      labor_amount: 681.6
                      parts_amount: 0
                      total_amount: 681.6
                      labors:
                        - id: 800abe88-1de1-4788-a885-94b720bea1c4
                          pay_type: WARRANTY
                          technician_user_ids: []
                          sold_hours: 3.2
                          rate_amount: 213
                          total_amount: 681.6
                      parts: []
                    - id: 7670bc57-5248-49fd-9e82-edf9288b557e
                      number: B
                      name: Customer concern
                      complaint: Vibration at highway speed
                      cause: Worn brake pads
                      correction: Somnus avaritia utroque vulnero ullam ancilla.
                      status: COMPLETED
                      pay_type: WARRANTY
                      technician_user_ids: []
                      sold_hours: 3.1
                      actual_hours: 3
                      labor_amount: 446.4
                      parts_amount: 1106.6200000000001
                      total_amount: 1553.02
                      labors:
                        - id: 04569f5a-3dbc-4e7b-94bb-fbf1d5ea93a1
                          pay_type: WARRANTY
                          technician_user_ids: []
                          sold_hours: 3.1
                          rate_amount: 144
                          total_amount: 446.4
                      parts:
                        - id: a05900a3-2d0b-4d72-98d0-b6c37128076e
                          pay_type: WARRANTY
                          quantity: 4
                          quantity_ordered: 4
                          unit_price_amount: 222.61
                          total_amount: 890.44
                        - id: 0c82226e-a7c3-405c-bb82-c74ef7bcf189
                          pay_type: WARRANTY
                          quantity: 2
                          quantity_ordered: 2
                          unit_price_amount: 108.09
                          total_amount: 216.18
                    - id: 64f80a84-8557-48a4-9383-1febc93c1bc8
                      number: C
                      name: Customer concern
                      complaint: Noise when braking
                      cause: Scheduled maintenance
                      correction: Degero theca natus.
                      status: COMPLETED
                      pay_type: CUSTOMER
                      technician_user_ids: []
                      sold_hours: 1.4
                      actual_hours: 1.5
                      labor_amount: 232.4
                      parts_amount: 574.1800000000001
                      total_amount: 806.58
                      labors:
                        - id: a92fc673-0e21-4884-bdcc-ac90a50592ac
                          pay_type: CUSTOMER
                          technician_user_ids: []
                          sold_hours: 1.4
                          rate_amount: 166
                          total_amount: 232.4
                      parts:
                        - id: ec8c38d4-ed4c-44f9-9e21-01e86248a11b
                          pay_type: CUSTOMER
                          quantity: 1
                          quantity_ordered: 1
                          unit_price_amount: 216.02
                          total_amount: 216.02
                        - id: 8915fa45-886e-4170-977e-234efd4e7409
                          pay_type: CUSTOMER
                          quantity: 2
                          quantity_ordered: 2
                          unit_price_amount: 179.08
                          total_amount: 358.16
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsRepairorder"
          description: Successful
      security:
        - jwt: []
      operationId: updateDmsRepairorder
    patch:
      summary: Update a repairorder
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - status
                - pay_type
                - contact_id
                - billing_contact_id
                - vehicle_id
                - vin
                - appointment_id
                - advisor_user_id
                - technician_user_ids
                - appointment_at
                - opened_at
                - promised_at
                - completed_at
                - closed_at
                - delivered_at
                - odometer_in
                - odometer_out
                - odometer_unit
                - transport_type
                - tag_number
                - purchase_order_number
                - is_comeback
                - notes
                - currency
                - estimate_amount
                - labor_amount
                - parts_amount
                - sublet_amount
                - misc_amount
                - discount_amount
                - tax_amount
                - total_amount
                - balance_amount
                - totals
                - jobs
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Repairorder
          name: id
          in: path
          required: true
      tags:
        - dms
        - repairorder
      description: Updates the DmsRepairorder identified by `id`. Provide the unified DmsRepairorder fields to change in the request body.
      requestBody:
        description: A service repair order (work order) for one vehicle visit
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsRepairorder"
            examples:
              dms_repairorder:
                summary: Sample DmsRepairorder
                value:
                  id: c0ffa98e-2bb5-498a-9aab-d1609d5890fd
                  created_at: "2022-10-25T15:50:48.007Z"
                  updated_at: "2025-12-03T23:09:27.022Z"
                  number: "143398"
                  status: COMPLETED
                  pay_type: WARRANTY
                  technician_user_ids: []
                  opened_at: "2025-02-12T06:37:48.676Z"
                  promised_at: "2025-02-13T14:37:48.676Z"
                  completed_at: "2026-11-20T17:18:10.709Z"
                  odometer_in: 7776
                  odometer_out: 7776
                  odometer_unit: MILES
                  transport_type: LOANER
                  tag_number: "758"
                  purchase_order_number: "182743"
                  currency: USD
                  estimate_amount: 3264
                  labor_amount: 1360.4
                  parts_amount: 1680.8000000000002
                  sublet_amount: 0
                  misc_amount: 35
                  discount_amount: 0
                  tax_amount: 117.66
                  total_amount: 3193.86
                  balance_amount: 3193.86
                  totals:
                    - pay_type: CUSTOMER
                      labor_amount: 232.4
                      parts_amount: 574.1800000000001
                      sublet_amount: 0
                      discount_amount: 0
                      total_amount: 806.58
                    - pay_type: WARRANTY
                      labor_amount: 1128
                      parts_amount: 1106.6200000000001
                      sublet_amount: 0
                      discount_amount: 0
                      total_amount: 2234.62
                  jobs:
                    - id: c20dc8af-0efa-4ab9-a2bd-e12f8b67e5af
                      number: A
                      name: Customer concern
                      complaint: Due for service
                      cause: Scheduled maintenance
                      correction: Aufero cumque vicinus aptus assumenda quis aptus.
                      status: COMPLETED
                      pay_type: WARRANTY
                      technician_user_ids: []
                      sold_hours: 3.2
                      actual_hours: 3.6
                      labor_amount: 681.6
                      parts_amount: 0
                      total_amount: 681.6
                      labors:
                        - id: 800abe88-1de1-4788-a885-94b720bea1c4
                          pay_type: WARRANTY
                          technician_user_ids: []
                          sold_hours: 3.2
                          rate_amount: 213
                          total_amount: 681.6
                      parts: []
                    - id: 7670bc57-5248-49fd-9e82-edf9288b557e
                      number: B
                      name: Customer concern
                      complaint: Vibration at highway speed
                      cause: Worn brake pads
                      correction: Somnus avaritia utroque vulnero ullam ancilla.
                      status: COMPLETED
                      pay_type: WARRANTY
                      technician_user_ids: []
                      sold_hours: 3.1
                      actual_hours: 3
                      labor_amount: 446.4
                      parts_amount: 1106.6200000000001
                      total_amount: 1553.02
                      labors:
                        - id: 04569f5a-3dbc-4e7b-94bb-fbf1d5ea93a1
                          pay_type: WARRANTY
                          technician_user_ids: []
                          sold_hours: 3.1
                          rate_amount: 144
                          total_amount: 446.4
                      parts:
                        - id: a05900a3-2d0b-4d72-98d0-b6c37128076e
                          pay_type: WARRANTY
                          quantity: 4
                          quantity_ordered: 4
                          unit_price_amount: 222.61
                          total_amount: 890.44
                        - id: 0c82226e-a7c3-405c-bb82-c74ef7bcf189
                          pay_type: WARRANTY
                          quantity: 2
                          quantity_ordered: 2
                          unit_price_amount: 108.09
                          total_amount: 216.18
                    - id: 64f80a84-8557-48a4-9383-1febc93c1bc8
                      number: C
                      name: Customer concern
                      complaint: Noise when braking
                      cause: Scheduled maintenance
                      correction: Degero theca natus.
                      status: COMPLETED
                      pay_type: CUSTOMER
                      technician_user_ids: []
                      sold_hours: 1.4
                      actual_hours: 1.5
                      labor_amount: 232.4
                      parts_amount: 574.1800000000001
                      total_amount: 806.58
                      labors:
                        - id: a92fc673-0e21-4884-bdcc-ac90a50592ac
                          pay_type: CUSTOMER
                          technician_user_ids: []
                          sold_hours: 1.4
                          rate_amount: 166
                          total_amount: 232.4
                      parts:
                        - id: ec8c38d4-ed4c-44f9-9e21-01e86248a11b
                          pay_type: CUSTOMER
                          quantity: 1
                          quantity_ordered: 1
                          unit_price_amount: 216.02
                          total_amount: 216.02
                        - id: 8915fa45-886e-4170-977e-234efd4e7409
                          pay_type: CUSTOMER
                          quantity: 2
                          quantity_ordered: 2
                          unit_price_amount: 179.08
                          total_amount: 358.16
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsRepairorder"
          description: Successful
      security:
        - jwt: []
      operationId: patchDmsRepairorder
  /dms/{connection_id}/appointment:
    post:
      summary: Create an appointment
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - status
                - contact_id
                - vehicle_id
                - vin
                - advisor_user_id
                - booked_by_user_id
                - repairorder_id
                - start_at
                - end_at
                - transport_type
                - odometer
                - odometer_unit
                - notes
                - services
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
      tags:
        - dms
        - appointment
      description: Creates a DmsAppointment. Provide the unified DmsAppointment fields in the request body; they are mapped to the provider's API. Returns the created DmsAppointment.
      requestBody:
        description: A service appointment (booking)
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsAppointment"
            examples:
              dms_appointment:
                summary: Sample DmsAppointment
                value:
                  id: bcb0319f-c962-4843-984c-4360ad6e57ed
                  created_at: "2023-10-16T02:56:45.127Z"
                  updated_at: "2025-04-09T23:05:15.180Z"
                  number: A541909
                  status: CANCELLED
                  start_at: "2026-05-13T12:02:44.186Z"
                  end_at: "2026-05-13T19:02:44.186Z"
                  transport_type: LOANER
                  notes: Soluta conitor timidus confero.
                  services:
                    - id: 88575494-1d55-48be-8ae5-32a2127f8fbc
                      name: Customer concern
                      pay_type: WARRANTY
                      technician_user_ids: []
                    - id: 2e4802a1-e8c1-4797-8d13-f03279c24a07
                      name: Customer concern
                      complaint: Check engine light on
                      pay_type: CUSTOMER
                      technician_user_ids: []
                    - id: 5e3f18d6-1e6b-411e-8b16-117455a390a6
                      name: Customer concern
                      complaint: Due for service
                      pay_type: CUSTOMER
                      technician_user_ids: []
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsAppointment"
          description: Successful
      security:
        - jwt: []
      operationId: createDmsAppointment
    get:
      summary: List all appointments
      parameters:
        - schema:
            type: number
          name: limit
          in: query
          required: false
        - schema:
            type: number
          name: offset
          in: query
          required: false
        - schema:
            type: string
          name: updated_gte
          in: query
          required: false
          description: Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        - schema:
            type: string
          name: sort
          in: query
          required: false
        - schema:
            type: string
          name: order
          in: query
          required: false
        - schema:
            type: string
          name: query
          in: query
          required: false
          description: Query string to search. eg. email address or name
        - schema:
            type: string
          name: contact_id
          in: query
          required: false
          description: The contact ID to filter by
        - schema:
            type: string
          name: vehicle_id
          in: query
          required: false
          description: The DMS vehicle ID to filter by
        - schema:
            type: string
          name: user_id
          in: query
          required: false
          description: The user/employee ID to filter by (reference to HrisEmployee)
        - schema:
            type: string
          name: status
          in: query
          required: false
        - schema:
            type: string
          name: start_gte
          in: query
          required: false
          description: The start date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        - schema:
            type: string
          name: end_lt
          in: query
          required: false
          description: The end date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - status
                - contact_id
                - vehicle_id
                - vin
                - advisor_user_id
                - booked_by_user_id
                - repairorder_id
                - start_at
                - end_at
                - transport_type
                - odometer
                - odometer_unit
                - notes
                - services
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
      tags:
        - dms
        - appointment
      description: Returns a list of DmsAppointments. Narrow the results with the query parameters before paging, then page through them with `limit` and `offset` (the default and maximum page size depend on the integration). Use `fields` to return only the fields you need and reduce the response size. When the integration supports a total count, it is returned in the `X-Total-Count` response header. Use each item's `id` to retrieve, update, or delete it where those operations are supported.
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsAppointments"
          description: Successful
      security:
        - jwt: []
      operationId: listDmsAppointments
  /dms/{connection_id}/appointment/{id}:
    get:
      summary: Retrieve an appointment
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - status
                - contact_id
                - vehicle_id
                - vin
                - advisor_user_id
                - booked_by_user_id
                - repairorder_id
                - start_at
                - end_at
                - transport_type
                - odometer
                - odometer_unit
                - notes
                - services
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Appointment
          name: id
          in: path
          required: true
      tags:
        - dms
        - appointment
      description: Retrieves a single DmsAppointment by its `id`. Obtain `id` values from the corresponding list endpoint. Use `fields` to return only the fields you need.
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsAppointment"
          description: Successful
      security:
        - jwt: []
      operationId: getDmsAppointment
    put:
      summary: Update an appointment
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - status
                - contact_id
                - vehicle_id
                - vin
                - advisor_user_id
                - booked_by_user_id
                - repairorder_id
                - start_at
                - end_at
                - transport_type
                - odometer
                - odometer_unit
                - notes
                - services
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Appointment
          name: id
          in: path
          required: true
      tags:
        - dms
        - appointment
      description: Updates the DmsAppointment identified by `id`. Provide the unified DmsAppointment fields to change in the request body.
      requestBody:
        description: A service appointment (booking)
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsAppointment"
            examples:
              dms_appointment:
                summary: Sample DmsAppointment
                value:
                  id: b13eb602-7d4c-4dc6-bc8d-d1080c50719e
                  created_at: "2023-10-16T02:56:45.127Z"
                  updated_at: "2025-04-09T23:05:15.185Z"
                  number: A541909
                  status: CANCELLED
                  start_at: "2026-05-13T12:02:44.195Z"
                  end_at: "2026-05-13T19:02:44.195Z"
                  transport_type: LOANER
                  notes: Soluta conitor timidus confero.
                  services:
                    - id: 32147568-25bd-4c11-be73-aeec9e7c4fe3
                      name: Customer concern
                      pay_type: WARRANTY
                      technician_user_ids: []
                    - id: aeb8b0fc-57b7-4e1f-9257-5eda82c40609
                      name: Customer concern
                      complaint: Check engine light on
                      pay_type: CUSTOMER
                      technician_user_ids: []
                    - id: ff303f87-42dd-46db-96bd-cc4f4069eae7
                      name: Customer concern
                      complaint: Due for service
                      pay_type: CUSTOMER
                      technician_user_ids: []
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsAppointment"
          description: Successful
      security:
        - jwt: []
      operationId: updateDmsAppointment
    patch:
      summary: Update an appointment
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - status
                - contact_id
                - vehicle_id
                - vin
                - advisor_user_id
                - booked_by_user_id
                - repairorder_id
                - start_at
                - end_at
                - transport_type
                - odometer
                - odometer_unit
                - notes
                - services
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Appointment
          name: id
          in: path
          required: true
      tags:
        - dms
        - appointment
      description: Updates the DmsAppointment identified by `id`. Provide the unified DmsAppointment fields to change in the request body.
      requestBody:
        description: A service appointment (booking)
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsAppointment"
            examples:
              dms_appointment:
                summary: Sample DmsAppointment
                value:
                  id: b13eb602-7d4c-4dc6-bc8d-d1080c50719e
                  created_at: "2023-10-16T02:56:45.127Z"
                  updated_at: "2025-04-09T23:05:15.185Z"
                  number: A541909
                  status: CANCELLED
                  start_at: "2026-05-13T12:02:44.195Z"
                  end_at: "2026-05-13T19:02:44.195Z"
                  transport_type: LOANER
                  notes: Soluta conitor timidus confero.
                  services:
                    - id: 32147568-25bd-4c11-be73-aeec9e7c4fe3
                      name: Customer concern
                      pay_type: WARRANTY
                      technician_user_ids: []
                    - id: aeb8b0fc-57b7-4e1f-9257-5eda82c40609
                      name: Customer concern
                      complaint: Check engine light on
                      pay_type: CUSTOMER
                      technician_user_ids: []
                    - id: ff303f87-42dd-46db-96bd-cc4f4069eae7
                      name: Customer concern
                      complaint: Due for service
                      pay_type: CUSTOMER
                      technician_user_ids: []
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsAppointment"
          description: Successful
      security:
        - jwt: []
      operationId: patchDmsAppointment
    delete:
      summary: Remove an appointment
      parameters:
        - schema:
            type: boolean
          name: notify
          in: query
          required: false
          description: Whether to notify the people or systems attached to this resource (e.g. a calendar event's attendees) about its deletion. Only applies where the integration supports it; ignored otherwise. When omitted, the integration's default applies.
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Appointment
          name: id
          in: path
          required: true
      tags:
        - dms
        - appointment
      description: Deletes the DmsAppointment identified by `id`.
      responses:
        "200":
          description: Successful
        default:
          headers:
            Content-Type:
              required: false
              schema:
                type: string
          content: {}
          description: Successful
      security:
        - jwt: []
      operationId: removeDmsAppointment
  /dms/{connection_id}/part:
    post:
      summary: Create a part
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - part_number
                - description
                - manufacturer_code
                - source_code
                - supplier_code
                - category
                - bin_locations
                - quantity_on_hand
                - quantity_available
                - quantity_on_order
                - min_stock_quantity
                - max_stock_quantity
                - pack_quantity
                - currency
                - cost_amount
                - list_price_amount
                - trade_price_amount
                - superseded_by_part_number
                - last_sold_at
                - last_received_at
                - is_active
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
      tags:
        - dms
        - part
      description: Creates a DmsPart. Provide the unified DmsPart fields in the request body; they are mapped to the provider's API. Returns the created DmsPart.
      requestBody:
        description: A part in the dealer parts inventory
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsPart"
            examples:
              dms_part:
                summary: Sample DmsPart
                value:
                  id: 171e0908-128c-455e-b97f-306795c67ceb
                  created_at: "2020-07-02T08:18:03.858Z"
                  updated_at: "2023-11-26T23:03:25.719Z"
                  part_number: 73992-IM3FI
                  description: Cabin filter
                  manufacturer_code: TOY
                  source_code: "30"
                  category: Ignition
                  bin_locations:
                    - S18-6
                  quantity_on_hand: 15
                  quantity_available: 13
                  quantity_on_order: 14
                  min_stock_quantity: 3
                  max_stock_quantity: 21
                  pack_quantity: 1
                  currency: USD
                  cost_amount: 25.26
                  list_price_amount: 39.61
                  trade_price_amount: 29.05
                  last_sold_at: "2020-11-23T14:45:56.903Z"
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsPart"
          description: Successful
      security:
        - jwt: []
      operationId: createDmsPart
    get:
      summary: List all parts
      parameters:
        - schema:
            type: number
          name: limit
          in: query
          required: false
        - schema:
            type: number
          name: offset
          in: query
          required: false
        - schema:
            type: string
          name: updated_gte
          in: query
          required: false
          description: Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        - schema:
            type: string
          name: sort
          in: query
          required: false
        - schema:
            type: string
          name: order
          in: query
          required: false
        - schema:
            type: string
          name: query
          in: query
          required: false
          description: Query string to search. eg. email address or name
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - part_number
                - description
                - manufacturer_code
                - source_code
                - supplier_code
                - category
                - bin_locations
                - quantity_on_hand
                - quantity_available
                - quantity_on_order
                - min_stock_quantity
                - max_stock_quantity
                - pack_quantity
                - currency
                - cost_amount
                - list_price_amount
                - trade_price_amount
                - superseded_by_part_number
                - last_sold_at
                - last_received_at
                - is_active
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
      tags:
        - dms
        - part
      description: Returns a list of DmsParts. Narrow the results with the query parameters before paging, then page through them with `limit` and `offset` (the default and maximum page size depend on the integration). Use `fields` to return only the fields you need and reduce the response size. When the integration supports a total count, it is returned in the `X-Total-Count` response header. Use each item's `id` to retrieve, update, or delete it where those operations are supported.
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsParts"
          description: Successful
      security:
        - jwt: []
      operationId: listDmsParts
  /dms/{connection_id}/part/{id}:
    get:
      summary: Retrieve a part
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - part_number
                - description
                - manufacturer_code
                - source_code
                - supplier_code
                - category
                - bin_locations
                - quantity_on_hand
                - quantity_available
                - quantity_on_order
                - min_stock_quantity
                - max_stock_quantity
                - pack_quantity
                - currency
                - cost_amount
                - list_price_amount
                - trade_price_amount
                - superseded_by_part_number
                - last_sold_at
                - last_received_at
                - is_active
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Part
          name: id
          in: path
          required: true
      tags:
        - dms
        - part
      description: Retrieves a single DmsPart by its `id`. Obtain `id` values from the corresponding list endpoint. Use `fields` to return only the fields you need.
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsPart"
          description: Successful
      security:
        - jwt: []
      operationId: getDmsPart
    put:
      summary: Update a part
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - part_number
                - description
                - manufacturer_code
                - source_code
                - supplier_code
                - category
                - bin_locations
                - quantity_on_hand
                - quantity_available
                - quantity_on_order
                - min_stock_quantity
                - max_stock_quantity
                - pack_quantity
                - currency
                - cost_amount
                - list_price_amount
                - trade_price_amount
                - superseded_by_part_number
                - last_sold_at
                - last_received_at
                - is_active
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Part
          name: id
          in: path
          required: true
      tags:
        - dms
        - part
      description: Updates the DmsPart identified by `id`. Provide the unified DmsPart fields to change in the request body.
      requestBody:
        description: A part in the dealer parts inventory
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsPart"
            examples:
              dms_part:
                summary: Sample DmsPart
                value:
                  id: 951b2712-0e61-49ea-8e5f-4be45163a55f
                  created_at: "2020-07-02T08:18:03.858Z"
                  updated_at: "2023-11-26T23:03:25.723Z"
                  part_number: 73992-IM3FI
                  description: Cabin filter
                  manufacturer_code: TOY
                  source_code: "30"
                  category: Ignition
                  bin_locations:
                    - S18-6
                  quantity_on_hand: 15
                  quantity_available: 13
                  quantity_on_order: 14
                  min_stock_quantity: 3
                  max_stock_quantity: 21
                  pack_quantity: 1
                  currency: USD
                  cost_amount: 25.26
                  list_price_amount: 39.61
                  trade_price_amount: 29.05
                  last_sold_at: "2020-11-23T14:45:56.903Z"
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsPart"
          description: Successful
      security:
        - jwt: []
      operationId: updateDmsPart
    patch:
      summary: Update a part
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - part_number
                - description
                - manufacturer_code
                - source_code
                - supplier_code
                - category
                - bin_locations
                - quantity_on_hand
                - quantity_available
                - quantity_on_order
                - min_stock_quantity
                - max_stock_quantity
                - pack_quantity
                - currency
                - cost_amount
                - list_price_amount
                - trade_price_amount
                - superseded_by_part_number
                - last_sold_at
                - last_received_at
                - is_active
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Part
          name: id
          in: path
          required: true
      tags:
        - dms
        - part
      description: Updates the DmsPart identified by `id`. Provide the unified DmsPart fields to change in the request body.
      requestBody:
        description: A part in the dealer parts inventory
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsPart"
            examples:
              dms_part:
                summary: Sample DmsPart
                value:
                  id: 951b2712-0e61-49ea-8e5f-4be45163a55f
                  created_at: "2020-07-02T08:18:03.858Z"
                  updated_at: "2023-11-26T23:03:25.723Z"
                  part_number: 73992-IM3FI
                  description: Cabin filter
                  manufacturer_code: TOY
                  source_code: "30"
                  category: Ignition
                  bin_locations:
                    - S18-6
                  quantity_on_hand: 15
                  quantity_available: 13
                  quantity_on_order: 14
                  min_stock_quantity: 3
                  max_stock_quantity: 21
                  pack_quantity: 1
                  currency: USD
                  cost_amount: 25.26
                  list_price_amount: 39.61
                  trade_price_amount: 29.05
                  last_sold_at: "2020-11-23T14:45:56.903Z"
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsPart"
          description: Successful
      security:
        - jwt: []
      operationId: patchDmsPart
  /dms/{connection_id}/partsale:
    post:
      summary: Create a partsale
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - type
                - status
                - contact_id
                - salesperson_user_id
                - vehicle_id
                - pay_type
                - purchase_order_number
                - closed_at
                - shipped_at
                - currency
                - subtotal_amount
                - discount_amount
                - freight_amount
                - tax_amount
                - total_amount
                - cost_amount
                - notes
                - shipping_address
                - lines
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
      tags:
        - dms
        - partsale
      description: Creates a DmsPartsale. Provide the unified DmsPartsale fields in the request body; they are mapped to the provider's API. Returns the created DmsPartsale.
      requestBody:
        description: A parts counter sale, quote or return
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsPartsale"
            examples:
              dms_partsale:
                summary: Sample DmsPartsale
                value:
                  id: 831ea156-8340-40f7-a250-584f1744a1d6
                  created_at: "2023-05-22T03:39:30.335Z"
                  updated_at: "2026-04-24T06:33:39.401Z"
                  number: P292867
                  type: SALE
                  status: VOIDED
                  pay_type: CUSTOMER
                  currency: USD
                  subtotal_amount: 981.89
                  discount_amount: 0
                  freight_amount: 0
                  tax_amount: 68.73
                  total_amount: 1050.62
                  cost_amount: 0
                  lines:
                    - id: 67dd1b92-bbab-4688-afeb-9799022257ea
                      pay_type: CUSTOMER
                      quantity: 5
                      quantity_ordered: 5
                      unit_price_amount: 98.29
                      total_amount: 491.45
                    - id: 2cea56f5-13ab-4c8b-998d-c03b4c554b51
                      pay_type: CUSTOMER
                      quantity: 2
                      quantity_ordered: 2
                      unit_price_amount: 120.45
                      total_amount: 240.9
                    - id: a9fc24e7-2945-4b89-b2a5-a331feef2b6b
                      pay_type: CUSTOMER
                      quantity: 3
                      quantity_ordered: 3
                      unit_price_amount: 83.18
                      total_amount: 249.54
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsPartsale"
          description: Successful
      security:
        - jwt: []
      operationId: createDmsPartsale
    get:
      summary: List all partsales
      parameters:
        - schema:
            type: number
          name: limit
          in: query
          required: false
        - schema:
            type: number
          name: offset
          in: query
          required: false
        - schema:
            type: string
          name: updated_gte
          in: query
          required: false
          description: Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        - schema:
            type: string
          name: sort
          in: query
          required: false
        - schema:
            type: string
          name: order
          in: query
          required: false
        - schema:
            type: string
          name: query
          in: query
          required: false
          description: Query string to search. eg. email address or name
        - schema:
            type: string
          name: contact_id
          in: query
          required: false
          description: The contact ID to filter by
        - schema:
            type: string
          name: status
          in: query
          required: false
        - schema:
            type: string
          name: type
          in: query
          required: false
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - type
                - status
                - contact_id
                - salesperson_user_id
                - vehicle_id
                - pay_type
                - purchase_order_number
                - closed_at
                - shipped_at
                - currency
                - subtotal_amount
                - discount_amount
                - freight_amount
                - tax_amount
                - total_amount
                - cost_amount
                - notes
                - shipping_address
                - lines
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
      tags:
        - dms
        - partsale
      description: Returns a list of DmsPartsales. Narrow the results with the query parameters before paging, then page through them with `limit` and `offset` (the default and maximum page size depend on the integration). Use `fields` to return only the fields you need and reduce the response size. When the integration supports a total count, it is returned in the `X-Total-Count` response header. Use each item's `id` to retrieve, update, or delete it where those operations are supported.
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsPartsales"
          description: Successful
      security:
        - jwt: []
      operationId: listDmsPartsales
  /dms/{connection_id}/partsale/{id}:
    get:
      summary: Retrieve a partsale
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - type
                - status
                - contact_id
                - salesperson_user_id
                - vehicle_id
                - pay_type
                - purchase_order_number
                - closed_at
                - shipped_at
                - currency
                - subtotal_amount
                - discount_amount
                - freight_amount
                - tax_amount
                - total_amount
                - cost_amount
                - notes
                - shipping_address
                - lines
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Partsale
          name: id
          in: path
          required: true
      tags:
        - dms
        - partsale
      description: Retrieves a single DmsPartsale by its `id`. Obtain `id` values from the corresponding list endpoint. Use `fields` to return only the fields you need.
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsPartsale"
          description: Successful
      security:
        - jwt: []
      operationId: getDmsPartsale
    put:
      summary: Update a partsale
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - type
                - status
                - contact_id
                - salesperson_user_id
                - vehicle_id
                - pay_type
                - purchase_order_number
                - closed_at
                - shipped_at
                - currency
                - subtotal_amount
                - discount_amount
                - freight_amount
                - tax_amount
                - total_amount
                - cost_amount
                - notes
                - shipping_address
                - lines
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Partsale
          name: id
          in: path
          required: true
      tags:
        - dms
        - partsale
      description: Updates the DmsPartsale identified by `id`. Provide the unified DmsPartsale fields to change in the request body.
      requestBody:
        description: A parts counter sale, quote or return
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsPartsale"
            examples:
              dms_partsale:
                summary: Sample DmsPartsale
                value:
                  id: 518dfe0e-9d7d-4cb6-bcbd-9af092354a82
                  created_at: "2023-05-22T03:39:30.335Z"
                  updated_at: "2026-04-24T06:33:39.412Z"
                  number: P292867
                  type: SALE
                  status: VOIDED
                  pay_type: CUSTOMER
                  currency: USD
                  subtotal_amount: 981.89
                  discount_amount: 0
                  freight_amount: 0
                  tax_amount: 68.73
                  total_amount: 1050.62
                  cost_amount: 0
                  lines:
                    - id: 7b29450d-e319-4c89-9ce2-4b7fc105d3cc
                      pay_type: CUSTOMER
                      quantity: 5
                      quantity_ordered: 5
                      unit_price_amount: 98.29
                      total_amount: 491.45
                    - id: c6d26952-5334-4ad7-986c-666fd054b40e
                      pay_type: CUSTOMER
                      quantity: 2
                      quantity_ordered: 2
                      unit_price_amount: 120.45
                      total_amount: 240.9
                    - id: 78fdaf7d-62bc-41f0-a349-2116742fa6ae
                      pay_type: CUSTOMER
                      quantity: 3
                      quantity_ordered: 3
                      unit_price_amount: 83.18
                      total_amount: 249.54
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsPartsale"
          description: Successful
      security:
        - jwt: []
      operationId: updateDmsPartsale
    patch:
      summary: Update a partsale
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - number
                - type
                - status
                - contact_id
                - salesperson_user_id
                - vehicle_id
                - pay_type
                - purchase_order_number
                - closed_at
                - shipped_at
                - currency
                - subtotal_amount
                - discount_amount
                - freight_amount
                - tax_amount
                - total_amount
                - cost_amount
                - notes
                - shipping_address
                - lines
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Partsale
          name: id
          in: path
          required: true
      tags:
        - dms
        - partsale
      description: Updates the DmsPartsale identified by `id`. Provide the unified DmsPartsale fields to change in the request body.
      requestBody:
        description: A parts counter sale, quote or return
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsPartsale"
            examples:
              dms_partsale:
                summary: Sample DmsPartsale
                value:
                  id: 518dfe0e-9d7d-4cb6-bcbd-9af092354a82
                  created_at: "2023-05-22T03:39:30.335Z"
                  updated_at: "2026-04-24T06:33:39.412Z"
                  number: P292867
                  type: SALE
                  status: VOIDED
                  pay_type: CUSTOMER
                  currency: USD
                  subtotal_amount: 981.89
                  discount_amount: 0
                  freight_amount: 0
                  tax_amount: 68.73
                  total_amount: 1050.62
                  cost_amount: 0
                  lines:
                    - id: 7b29450d-e319-4c89-9ce2-4b7fc105d3cc
                      pay_type: CUSTOMER
                      quantity: 5
                      quantity_ordered: 5
                      unit_price_amount: 98.29
                      total_amount: 491.45
                    - id: c6d26952-5334-4ad7-986c-666fd054b40e
                      pay_type: CUSTOMER
                      quantity: 2
                      quantity_ordered: 2
                      unit_price_amount: 120.45
                      total_amount: 240.9
                    - id: 78fdaf7d-62bc-41f0-a349-2116742fa6ae
                      pay_type: CUSTOMER
                      quantity: 3
                      quantity_ordered: 3
                      unit_price_amount: 83.18
                      total_amount: 249.54
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsPartsale"
          description: Successful
      security:
        - jwt: []
      operationId: patchDmsPartsale
  /dms/{connection_id}/opcode:
    post:
      summary: Create an opcode
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - code
                - description
                - type
                - category
                - pay_type
                - flat_rate_hours
                - estimated_hours
                - currency
                - price_amount
                - labor_rate_amount
                - skill_code
                - make
                - oem_code
                - is_active
                - parts
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
      tags:
        - dms
        - opcode
      description: Creates a DmsOpcode. Provide the unified DmsOpcode fields in the request body; they are mapped to the provider's API. Returns the created DmsOpcode.
      requestBody:
        description: A service operation code (labor operation, menu or standard repair time)
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsOpcode"
            examples:
              dms_opcode:
                summary: Sample DmsOpcode
                value:
                  id: 8a2c336b-8b7d-4f26-9c44-3549c0762189
                  created_at: "2021-01-12T19:03:17.545Z"
                  updated_at: "2021-11-04T14:38:53.506Z"
                  code: 02AUS
                  description: Oil and filter change
                  type: LABOR
                  category: Electrical
                  pay_type: CUSTOMER
                  flat_rate_hours: 3.5
                  estimated_hours: 3.2
                  currency: USD
                  labor_rate_amount: 216
                  skill_code: A
                  oem_code: 05604A3
                  is_active: true
                  parts: []
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsOpcode"
          description: Successful
      security:
        - jwt: []
      operationId: createDmsOpcode
    get:
      summary: List all opcodes
      parameters:
        - schema:
            type: number
          name: limit
          in: query
          required: false
        - schema:
            type: number
          name: offset
          in: query
          required: false
        - schema:
            type: string
          name: updated_gte
          in: query
          required: false
          description: Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        - schema:
            type: string
          name: sort
          in: query
          required: false
        - schema:
            type: string
          name: order
          in: query
          required: false
        - schema:
            type: string
          name: query
          in: query
          required: false
          description: Query string to search. eg. email address or name
        - schema:
            type: string
          name: type
          in: query
          required: false
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - code
                - description
                - type
                - category
                - pay_type
                - flat_rate_hours
                - estimated_hours
                - currency
                - price_amount
                - labor_rate_amount
                - skill_code
                - make
                - oem_code
                - is_active
                - parts
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
      tags:
        - dms
        - opcode
      description: Returns a list of DmsOpcodes. Narrow the results with the query parameters before paging, then page through them with `limit` and `offset` (the default and maximum page size depend on the integration). Use `fields` to return only the fields you need and reduce the response size. When the integration supports a total count, it is returned in the `X-Total-Count` response header. Use each item's `id` to retrieve, update, or delete it where those operations are supported.
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsOpcodes"
          description: Successful
      security:
        - jwt: []
      operationId: listDmsOpcodes
  /dms/{connection_id}/opcode/{id}:
    get:
      summary: Retrieve an opcode
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - code
                - description
                - type
                - category
                - pay_type
                - flat_rate_hours
                - estimated_hours
                - currency
                - price_amount
                - labor_rate_amount
                - skill_code
                - make
                - oem_code
                - is_active
                - parts
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Opcode
          name: id
          in: path
          required: true
      tags:
        - dms
        - opcode
      description: Retrieves a single DmsOpcode by its `id`. Obtain `id` values from the corresponding list endpoint. Use `fields` to return only the fields you need.
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsOpcode"
          description: Successful
      security:
        - jwt: []
      operationId: getDmsOpcode
    put:
      summary: Update an opcode
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - code
                - description
                - type
                - category
                - pay_type
                - flat_rate_hours
                - estimated_hours
                - currency
                - price_amount
                - labor_rate_amount
                - skill_code
                - make
                - oem_code
                - is_active
                - parts
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Opcode
          name: id
          in: path
          required: true
      tags:
        - dms
        - opcode
      description: Updates the DmsOpcode identified by `id`. Provide the unified DmsOpcode fields to change in the request body.
      requestBody:
        description: A service operation code (labor operation, menu or standard repair time)
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsOpcode"
            examples:
              dms_opcode:
                summary: Sample DmsOpcode
                value:
                  id: 17369a59-b979-4cd3-95a8-754107de7419
                  created_at: "2021-01-12T19:03:17.545Z"
                  updated_at: "2021-11-04T14:38:53.507Z"
                  code: 02AUS
                  description: Oil and filter change
                  type: LABOR
                  category: Electrical
                  pay_type: CUSTOMER
                  flat_rate_hours: 3.5
                  estimated_hours: 3.2
                  currency: USD
                  labor_rate_amount: 216
                  skill_code: A
                  oem_code: 05604A3
                  is_active: true
                  parts: []
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsOpcode"
          description: Successful
      security:
        - jwt: []
      operationId: updateDmsOpcode
    patch:
      summary: Update an opcode
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - id
                - created_at
                - updated_at
                - code
                - description
                - type
                - category
                - pay_type
                - flat_rate_hours
                - estimated_hours
                - currency
                - price_amount
                - labor_rate_amount
                - skill_code
                - make
                - oem_code
                - is_active
                - parts
                - metadata
                - raw
          name: fields
          in: query
          required: false
          description: Fields to return
        - schema:
            type: string
          name: raw
          in: query
          required: false
          description: "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
        - schema:
            type: string
          description: ID of the connection
          name: connection_id
          in: path
          required: true
        - schema:
            type: string
          description: ID of the Opcode
          name: id
          in: path
          required: true
      tags:
        - dms
        - opcode
      description: Updates the DmsOpcode identified by `id`. Provide the unified DmsOpcode fields to change in the request body.
      requestBody:
        description: A service operation code (labor operation, menu or standard repair time)
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DmsOpcode"
            examples:
              dms_opcode:
                summary: Sample DmsOpcode
                value:
                  id: 17369a59-b979-4cd3-95a8-754107de7419
                  created_at: "2021-01-12T19:03:17.545Z"
                  updated_at: "2021-11-04T14:38:53.507Z"
                  code: 02AUS
                  description: Oil and filter change
                  type: LABOR
                  category: Electrical
                  pay_type: CUSTOMER
                  flat_rate_hours: 3.5
                  estimated_hours: 3.2
                  currency: USD
                  labor_rate_amount: 216
                  skill_code: A
                  oem_code: 05604A3
                  is_active: true
                  parts: []
                  metadata: []
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DmsOpcode"
          description: Successful
      security:
        - jwt: []
      operationId: patchDmsOpcode
