{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/employees/":{"get":{"tags":["Employees"],"summary":"Get Employees","description":"Fetch a list of employees based on filters.","operationId":"get_employees_employees__get","parameters":[{"name":"employee_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by EmployeeId","title":"Employee Id"},"description":"Filter by EmployeeId"},{"name":"shop_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by ShopId","title":"Shop Id"},"description":"Filter by ShopId"},{"name":"active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by active status","default":true,"title":"Active"},"description":"Filter by active status"},{"name":"employee_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by EmployeeCode","title":"Employee Code"},"description":"Filter by EmployeeCode"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"},"title":"Response Get Employees Employees  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/timelogs/":{"get":{"tags":["TimeLogs"],"summary":"Fetch timelogs with optional filters","description":"Fetch timelogs with optional filters.","operationId":"get_timelogs_timelogs__get","parameters":[{"name":"shop_id","in":"query","required":false,"schema":{"type":"integer","description":"Filter by shop ID (default: 1)","default":1,"title":"Shop Id"},"description":"Filter by shop ID (default: 1)"},{"name":"tech_code","in":"query","required":false,"schema":{"type":"string","description":"Filter by technician code - (For Testing 002, 006, 16 are suggested)","title":"Tech Code"},"description":"Filter by technician code - (For Testing 002, 006, 16 are suggested)"},{"name":"date_range_start","in":"query","required":false,"schema":{"type":"string","description":"Start of the date range for filtering (For Testing DB use 2022 - 2024 years)","title":"Date Range Start"},"description":"Start of the date range for filtering (For Testing DB use 2022 - 2024 years)"},{"name":"date_range_end","in":"query","required":false,"schema":{"type":"string","description":"End of the date range for filtering (Will work up until 2025 with Testing DB)","title":"Date Range End"},"description":"End of the date range for filtering (Will work up until 2025 with Testing DB)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["TimeLogs"],"summary":"Create a new timelog - Can be entered as Unix or ISO9601","description":"Create a new timelog entry.","operationId":"create_timelog_timelogs__post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeLogCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeLogCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["TimeLogs"],"summary":"Update an existing timelog - Times can be Unix or ISO8601","description":"Update an existing timelog entry.","operationId":"update_timelog_timelogs__put","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeLogUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/timelogs/totalhours":{"get":{"tags":["TimeLogs"],"summary":"Get total actual hours for a date or date range","description":"Get the total sum of actual hours for a specific date or date range.","operationId":"get_total_hours_timelogs_totalhours_get","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"Specific date to filter (YYYY-MM-DD)","title":"Date"},"description":"Specific date to filter (YYYY-MM-DD)"},{"name":"date_range_start","in":"query","required":false,"schema":{"type":"string","description":"Start of the date range for filtering (YYYY-MM-DD)","title":"Date Range Start"},"description":"Start of the date range for filtering (YYYY-MM-DD)"},{"name":"date_range_end","in":"query","required":false,"schema":{"type":"string","description":"End of the date range for filtering (YYYY-MM-DD)","title":"Date Range End"},"description":"End of the date range for filtering (YYYY-MM-DD)"},{"name":"shop_id","in":"query","required":false,"schema":{"type":"integer","description":"Filter by shop ID (default: 1)","default":1,"title":"Shop Id"},"description":"Filter by shop ID (default: 1)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/timelogs/sum":{"get":{"tags":["TimeLogs"],"summary":"Get total actual hours for a technician","description":"Get the sum of actual hours for a specific technician within a date range.","operationId":"get_sum_actual_hours_timelogs_sum_get","parameters":[{"name":"tech_code","in":"query","required":true,"schema":{"type":"string","description":"Technician code to filter by (for the Testing DB use 006, 002, 16)","title":"Tech Code"},"description":"Technician code to filter by (for the Testing DB use 006, 002, 16)"},{"name":"date_range_start","in":"query","required":false,"schema":{"type":"string","description":"Start of the date range for filtering (Suggested years are 2022-2024)","title":"Date Range Start"},"description":"Start of the date range for filtering (Suggested years are 2022-2024)"},{"name":"date_range_end","in":"query","required":false,"schema":{"type":"string","description":"End of the date range for filtering","title":"Date Range End"},"description":"End of the date range for filtering"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeLogSumResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/timelogs/recent":{"get":{"tags":["TimeLogs"],"summary":"Get the most recent TimeLogId with null ClockOut for a TechCode","description":"Fetch the most recent TimeLogId with a null ClockOut for a given TechCode.","operationId":"get_recent_null_clockout_timelog_timelogs_recent_get","parameters":[{"name":"tech_code","in":"query","required":true,"schema":{"type":"string","description":"Technician code to filter by","title":"Tech Code"},"description":"Technician code to filter by"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workorders/":{"get":{"tags":["WorkOrders"],"summary":"Get WorkOrders with LineItems By Several Filters","description":"Fetch WorkOrders based on filters: Tech, Billed Hours, Date Range.","operationId":"get_workorders_workorders__get","parameters":[{"name":"tech","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by Tech in WoLineItems","title":"Tech"},"description":"Filter by Tech in WoLineItems"},{"name":"billed_hours","in":"query","required":false,"schema":{"type":"boolean","description":"Include only WoLineItems with BilledHrs > 0","default":true,"title":"Billed Hours"},"description":"Include only WoLineItems with BilledHrs > 0"},{"name":"date_type","in":"query","required":false,"schema":{"type":"string","description":"Filter by 'CompletedOn' or 'InvoicedOn'","default":"CompletedOn","title":"Date Type"},"description":"Filter by 'CompletedOn' or 'InvoicedOn'"},{"name":"date_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start of date range","title":"Date Start"},"description":"Start of date range"},{"name":"date_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End of date range","title":"Date End"},"description":"End of date range"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkOrderSchema"},"title":"Response Get Workorders Workorders  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/Webhooks/":{"post":{"tags":["Webhooks"],"summary":"Create or Update a TimeLog - Accepts JSON payload","description":"Create or update a TimeLog entry based on the provided `TimeLogPayload`. Handles start and end timestamps and calculates actual hours.","operationId":"process_timelogs_Webhooks__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeLogPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeLogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/Webhooks/delete/":{"post":{"tags":["Webhooks"],"summary":"Delete a TimeLog - Accepts JSON payload","description":"Deletes a TimeLog entry based on the provided `timeActivityId` or nested structure `timeActivity.id` from the JSON payload.","operationId":"delete_timelog_Webhooks_delete__post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeLogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/Webhooks/NewUser":{"post":{"tags":["Webhooks"],"summary":"Map a Connecteam user to a TRACS employee by name and store ConnectId","description":"Receives Connecteam 'user_created' webhooks. For each user in the payload, matches TRACS Employees by FirstName + LastName (case/space-insensitive) and sets Employees.ConnectId = Connecteam userId.","operationId":"connecteam_new_user_Webhooks_NewUser_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnecteamNewUserPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUserWebhookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/efficiency/":{"get":{"tags":["Tech Efficiency"],"summary":"Get Individual and Aggregate Technician Efficiency","description":"Fetch individual and aggregate technician efficiency using actual TimeLog hours vs billed hours within a given date range.","operationId":"get_technician_hours_efficiency__get","parameters":[{"name":"start_date","in":"query","required":false,"schema":{"type":"string","description":"Start of the date range for filtering. (For Testing DB, use years 2024–2025)","default":"2025-01-01","title":"Start Date"},"description":"Start of the date range for filtering. (For Testing DB, use years 2024–2025)"},{"name":"end_date","in":"query","required":false,"schema":{"type":"string","description":"End of the date range for filtering. (For Testing DB, use years 2024–2025)","default":"2025-01-31","title":"End Date"},"description":"End of the date range for filtering. (For Testing DB, use years 2024–2025)"},{"name":"date_filter","in":"query","required":false,"schema":{"type":"string","description":"Filter by using either 'Invoiced' or 'Completed' dates for the calculation.","default":"Completed","title":"Date Filter"},"description":"Filter by using either 'Invoiced' or 'Completed' dates for the calculation."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FullResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/efficiency/grouped_totals":{"get":{"tags":["Tech Efficiency"],"summary":"Get Grouped Totals","description":"Get grouped totals for all technicians within a given date range.\n\nParameters:\n- **start_date** (str): Start date for the query in 'YYYY-MM-DD' format.\n- **end_date** (str): End date for the query in 'YYYY-MM-DD' format.\n- **date_filter** (str, optional): Filter by either 'Completed' (default) or 'Invoiced' dates.\n\nReturns:\n- **200 OK**: A dictionary with grouped totals for all technicians.\n- **500 Internal Server Error**: If an error occurs during query execution.\n\nExample Request:\n```\nGET /efficiency/grouped_totals?start_date=2025-01-01&end_date=2025-01-31&date_filter=Completed\n```\n\nExample Response:\n```json\n{\n    \"TotalGroupHoursWorked\": 480.0,\n    \"TotalGroupHoursBilled\": 450.0,\n    \"TotalGroupEfficiency\": 93.75\n}\n```","operationId":"get_grouped_totals_efficiency_grouped_totals_get","parameters":[{"name":"start_date","in":"query","required":false,"schema":{"type":"string","description":"Start of the date range for filtering (For Testing DB use 2024 - 2025 years)","default":"2025-01-01","title":"Start Date"},"description":"Start of the date range for filtering (For Testing DB use 2024 - 2025 years)"},{"name":"end_date","in":"query","required":false,"schema":{"type":"string","description":"End of the date range for filtering (For Testing DB use 2024 - 2025 years)","default":"2025-01-31","title":"End Date"},"description":"End of the date range for filtering (For Testing DB use 2024 - 2025 years)"},{"name":"date_filter","in":"query","required":false,"schema":{"type":"string","description":"Filter By using Completed Or Invoiced","default":"Completed","title":"Date Filter"},"description":"Filter By using Completed Or Invoiced"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Grouped Totals Efficiency Grouped Totals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/efficiency/{tech_code}":{"get":{"tags":["Tech Efficiency"],"summary":"Get Technician Hours By Code","description":"Get efficiency data for a specific technician (TechCode) within a given date range.\n\nParameters:\n- **tech_code** (str): The unique code of the technician (path parameter).\n- **start_date** (str): Start date for the query in 'YYYY-MM-DD' format (query parameter).\n- **end_date** (str): End date for the query in 'YYYY-MM-DD' format (query parameter).\n- **date_filter** (str, optional): Filter by either 'Completed' (default) or 'Invoiced' dates.\n\nReturns:\n- **200 OK**: A dictionary containing technician efficiency details.\n- **404 Not Found**: If no data is found for the given TechCode or date range.\n- **500 Internal Server Error**: If an error occurs during query execution.","operationId":"get_technician_hours_by_code_efficiency__tech_code__get","parameters":[{"name":"tech_code","in":"path","required":true,"schema":{"type":"string","title":"Tech Code"}},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","title":"Start Date"}},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","title":"End Date"}},{"name":"date_filter","in":"query","required":false,"schema":{"type":"string","default":"Completed","title":"Date Filter"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechHoursResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/process-ringcentral":{"post":{"tags":["Automated Texting of Technician Efficiency data daily."],"summary":"Process Ringcentral","description":"Endpoint to trigger the technician efficiency processing task.\nThe task runs in the background. You will get a response of \"Processing Started\" when execute is clicked.\nThis can be used to trigger manual testing, or if rerouted, it could be used as a data refresh endpoint for a displayed data page.\nMore functionality to come...","operationId":"process_ringcentral_process_ringcentral_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/CustomerData/customer-vehicles/by-phone":{"get":{"tags":["CustomerData"],"summary":"Get Customer Vehicles By Phone","description":"Endpoint to search customers by phone number.","operationId":"get_customer_vehicles_by_phone_CustomerData_customer_vehicles_by_phone_get","parameters":[{"name":"search_term","in":"query","required":true,"schema":{"type":"string","description":"Phone number (any format)","title":"Search Term"},"description":"Phone number (any format)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomerResponse"},"title":"Response Get Customer Vehicles By Phone Customerdata Customer Vehicles By Phone Get"},"example":[{"CustomerId":123,"FirstName":"John","LastName":"Doe","Vehicles":[{"VehicleId":456,"VehicleName":"Toyota Camry"},{"VehicleId":789,"VehicleName":"Honda Civic"}]}]}}},"400":{"description":"Invalid input or missing parameters","content":{"application/json":{"example":{"detail":"Invalid search term. Must be a phone number."}}}},"500":{"description":"Database connection error","content":{"application/json":{"example":{"detail":"Database connection lost. Please try again."}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/CustomerData/customer-vehicles/by-name":{"get":{"tags":["CustomerData"],"summary":"Get Customer Vehicles By Name","description":"Endpoint to search customers by name.","operationId":"get_customer_vehicles_by_name_CustomerData_customer_vehicles_by_name_get","parameters":[{"name":"search_term","in":"query","required":true,"schema":{"type":"string","description":"Customer name (full or partial)","title":"Search Term"},"description":"Customer name (full or partial)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomerResponse"},"title":"Response Get Customer Vehicles By Name Customerdata Customer Vehicles By Name Get"},"example":[{"CustomerId":123,"FirstName":"John","LastName":"Doe","Vehicles":[{"VehicleId":456,"VehicleName":"Toyota Camry"},{"VehicleId":789,"VehicleName":"Honda Civic"}]}]}}},"400":{"description":"Invalid input or missing parameters","content":{"application/json":{"example":{"detail":"Invalid search term. Must be a customer name."}}}},"500":{"description":"Database connection error","content":{"application/json":{"example":{"detail":"Database connection lost. Please try again."}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users":{"get":{"summary":"Get Users","operationId":"get_users_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/custom/vehicles/{vehicle_id}":{"delete":{"summary":"Mark Vehicle Inactive","operationId":"mark_vehicle_inactive_custom_vehicles__vehicle_id__delete","parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"integer","title":"Vehicle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workorders/{wo_number}/profit-details":{"get":{"summary":"Get Profit Details","description":"Returns:\n  {\n    woNumber,\n    groupEfficiency (decimal 0.xx from canonical report logic),\n    blendedTechPayRate,\n    subEstimates: [\n      {\n        tabDesc,\n        profitPercentages: { ItemType: % },\n        costs:             { ItemType: $ },\n        revenues:          { ItemType: $ }\n      }, ...\n    ]\n  }\nEfficiency:\n  - Derived from the same logic as /reports/tech-efficiency TOTAL row,\n    basis='completed' by default, shop-scoped if shop_id provided.\n  - include_matrix=False (default) uses Efficiency_NoMatrix.","operationId":"get_profit_details_workorders__wo_number__profit_details_get","parameters":[{"name":"wo_number","in":"path","required":true,"schema":{"type":"string","title":"Wo Number"}},{"name":"basis","in":"query","required":false,"schema":{"enum":["invoiced","completed"],"type":"string","default":"completed","title":"Basis"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"shop_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"If provided, scopes efficiency to this shop","title":"Shop Id"},"description":"If provided, scopes efficiency to this shop"},{"name":"include_matrix","in":"query","required":false,"schema":{"type":"boolean","description":"If true, uses Efficiency_WithMatrix for group efficiency","default":false,"title":"Include Matrix"},"description":"If true, uses Efficiency_WithMatrix for group efficiency"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workorders/{vehicle_id}":{"get":{"summary":"Get Workorders","operationId":"get_workorders_workorders__vehicle_id__get","parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"integer","title":"Vehicle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reports/profit-by-itemtype":{"get":{"summary":"Accurate profit percentages by ItemType (uses external labor cost from TimeLogs × Employees.Cost)","description":"Produces ItemType totals matching TRACS reporting logic for revenue,\nbut replaces Labor cost with a custom calculation:\n\n  - **ItemType Revenue/DB Cost**: from WoLineItems (SubEstimate='Work Order'), Shop scoped.\n  - **Labor Cost**: sum(TimeLogs hours) × Employees.Cost (per tech), in same window/shop.\n      * Hours: COALESCE(ActualHours, DATEDIFF(second, ClockIn, COALESCE(ClockOut, GETUTCDATE()))/3600).\n      * Uses GETUTCDATE() for open clocks to avoid null ClockOut.\n  - **Basis**:\n      * invoiced: WorkOrders.Status='Invoice' AND InvoicedOn in [start, nextDay)\n      * completed: WorkOrders.Status IN ('Invoice','Repair Order') AND CompletedOn in [start, nextDay)\n\nReturns per-ItemType rows (Part, Tire, Wheel, Labor, Sublet, Charge) and a grand total.","operationId":"profit_by_itemtype_reports_profit_by_itemtype_get","parameters":[{"name":"shopId","in":"query","required":true,"schema":{"type":"integer","description":"Shop to scope results to","title":"Shopid"},"description":"Shop to scope results to"},{"name":"basis","in":"query","required":false,"schema":{"enum":["invoiced","completed"],"type":"string","description":"'invoiced' or 'completed' basis","default":"invoiced","title":"Basis"},"description":"'invoiced' or 'completed' basis"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive start date (YYYY-MM-DD)","title":"Start Date"},"description":"Inclusive start date (YYYY-MM-DD)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive end date (YYYY-MM-DD)","title":"End Date"},"description":"Inclusive end date (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfitByItemTypeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"confirmed/":{"post":{"summary":"Create Appointment","operationId":"create_appointmentconfirmed__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppointmentCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppointmentCreate"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/upload/":{"post":{"summary":"Upload File","description":"Handles the file upload and stores it in Google Drive.\nAlso updates the appointment record in the database with the folder URL.","operationId":"upload_file_upload__post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_upload__post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dropoff/zip/{zip_code}":{"get":{"tags":["dropoff"],"summary":"Get Zip Info","description":"Given a 5-digit zip code, fetch city and state information\nfrom the external Zippopotam.us API.","operationId":"get_zip_info_dropoff_zip__zip_code__get","parameters":[{"name":"zip_code","in":"path","required":true,"schema":{"type":"string","title":"Zip Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/carquery/years":{"get":{"tags":["CarQuery"],"summary":"Get Carquery Years","operationId":"get_carquery_years_api_carquery_years_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/carquery/makes":{"get":{"tags":["CarQuery"],"summary":"Get Carquery Makes","operationId":"get_carquery_makes_api_carquery_makes_get","parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","description":"The vehicle year","title":"Year"},"description":"The vehicle year"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/carquery/models":{"get":{"tags":["CarQuery"],"summary":"Get Carquery Models","operationId":"get_carquery_models_api_carquery_models_get","parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","title":"Year"}},{"name":"make","in":"query","required":true,"schema":{"type":"string","title":"Make"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vehicles/{vehicle_id}":{"get":{"tags":["Vehicles"],"summary":"Get Vehicle","description":"Retrieve a vehicle by its ID.","operationId":"get_vehicle_vehicles__vehicle_id__get","parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"integer","title":"Vehicle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Vehicles"],"summary":"Update Vehicle","description":"Update an existing vehicle.","operationId":"update_vehicle_vehicles__vehicle_id__put","parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"integer","title":"Vehicle Id"}},{"name":"payload","in":"query","required":true,"schema":{"title":"Payload"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/vehicles/{vehicleId}":{"get":{"tags":["Vehicles"],"summary":"Get Vehicle Tracs","description":"Retrieve vehicle data from the TRACS API.","operationId":"get_vehicle_tracs_tracsApi_vehicles__vehicleId__get","parameters":[{"name":"vehicleId","in":"path","required":true,"schema":{"type":"integer","title":"Vehicleid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vehicles":{"post":{"tags":["Vehicles"],"summary":"Add Vehicle","operationId":"add_vehicle_vehicles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewVehicleData"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/customers/{customer_id}":{"get":{"tags":["Customers"],"summary":"Get Customer","description":"Retrieve a customer by its ID.","operationId":"get_customer_customers__customer_id__get","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"integer","title":"Customer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Customers"],"summary":"Update Customer","description":"Update an existing customer.","operationId":"update_customer_customers__customer_id__put","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"integer","title":"Customer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsapi/customers/{customerId}":{"get":{"tags":["TRACS API"],"summary":"Get Customer Tracs","description":"Retrieve customer data from the TRACS API.","operationId":"get_customer_tracs_tracsapi_customers__customerId__get","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","title":"Customerid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/customers":{"post":{"tags":["Customers"],"summary":"Add Customer","description":"Add a new customer.","operationId":"add_customer_customers_post","parameters":[{"name":"payload","in":"query","required":true,"schema":{"title":"Payload"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/emails/{email_id}":{"delete":{"tags":["Contacts"],"summary":"Delete Email","description":"Delete an email by its ID.","operationId":"delete_email_emails__email_id__delete","parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"integer","title":"Email Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Contacts"],"summary":"Update Email","description":"Update an email by its ID.","operationId":"update_email_emails__email_id__put","parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"integer","title":"Email Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/emails":{"post":{"tags":["Contacts"],"summary":"Create Email","operationId":"create_email_emails_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewEmailData"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/customer_phones/{phone_id}":{"delete":{"tags":["Contacts"],"summary":"Delete Customer Phone","description":"Delete a customer phone by its ID.","operationId":"delete_customer_phone_customer_phones__phone_id__delete","parameters":[{"name":"phone_id","in":"path","required":true,"schema":{"type":"integer","title":"Phone Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Contacts"],"summary":"Update Customer Phone","description":"Update a customer phone by its ID.","operationId":"update_customer_phone_customer_phones__phone_id__put","parameters":[{"name":"phone_id","in":"path","required":true,"schema":{"type":"integer","title":"Phone Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/customer_phones":{"post":{"tags":["Contacts"],"summary":"Add Customer Phone","description":"Add a new customer phone.","operationId":"add_customer_phone_customer_phones_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewPhoneData"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/customers/{customer_id}/payments":{"post":{"tags":["Payments"],"summary":"Add Payment","description":"Record a payment for a customer.","operationId":"add_payment_customers__customer_id__payments_post","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"integer","title":"Customer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/appointments/hours/{shop_id}":{"get":{"tags":["Appointments"],"summary":"Get Appointment Hours","description":"Retrieve appointment hours for a shop.","operationId":"get_appointment_hours_appointments_hours__shop_id__get","parameters":[{"name":"shop_id","in":"path","required":true,"schema":{"type":"integer","title":"Shop Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/customers/{customerId}/appointments":{"get":{"tags":["TRACS API"],"summary":"Get Customer Appointments","description":"Retrieve appointments for a customer from the TRACS API.","operationId":"get_customer_appointments_tracsApi_customers__customerId__appointments_get","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","title":"Customerid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/appointments/{appointment_id}":{"put":{"tags":["Appointments"],"summary":"Update Appointment","description":"Update an appointment by its ID.","operationId":"update_appointment_appointments__appointment_id__put","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"integer","title":"Appointment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/appointments":{"post":{"tags":["Appointments"],"summary":"Create Appointment","description":"Create a new appointment.","operationId":"create_appointment_appointments_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops":{"get":{"tags":["TRACS API"],"summary":"Get Shops","description":"Retrieve all shops from the TRACS API.","operationId":"get_shops_tracsApi_shops_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tracsApi/tracsPing":{"get":{"tags":["TRACS API"],"summary":"Get Tracs Ping","description":"Ping the TRACS API.","operationId":"get_tracs_ping_tracsApi_tracsPing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tracsApi/shops/vendors":{"get":{"tags":["TRACS API"],"summary":"Get Shops Vendors","description":"Retrieve shop vendors from the TRACS API.","operationId":"get_shops_vendors_tracsApi_shops_vendors_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tracsApi/items/{itemId}":{"get":{"tags":["TRACS API"],"summary":"Get Item","description":"Retrieve an item by ID from the TRACS API.","operationId":"get_item_tracsApi_items__itemId__get","parameters":[{"name":"itemId","in":"path","required":true,"schema":{"type":"integer","title":"Itemid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}":{"get":{"tags":["TRACS API"],"summary":"Get Shop","description":"Retrieve a shop by ID from the TRACS API.","operationId":"get_shop_tracsApi_shops__shopId__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vehicle/updateable-fields":{"get":{"tags":["Work Orders & Line Items"],"summary":"Get Vehicle Updateable Fields","description":"Retrieve vehicle updateable fields (TRACS API).","operationId":"get_vehicle_updateable_fields_vehicle_updateable_fields_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/lineItem/updateable-fields":{"get":{"tags":["Work Orders & Line Items"],"summary":"Get Lineitem Updateable Fields","description":"Retrieve line item updateable fields (TRACS API).","operationId":"get_lineitem_updateable_fields_lineItem_updateable_fields_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/customer-contact":{"post":{"tags":["Work Orders & Line Items"],"summary":"Update Customer Contact","description":"Update customer contact information (TRACS API).","operationId":"update_customer_contact_customer_contact_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workOrder/{wo_id}/items":{"post":{"tags":["Work Orders & Line Items"],"summary":"Add Workorder Items","description":"Add items to a work order (TRACS API).","operationId":"add_workorder_items_workOrder__wo_id__items_post","parameters":[{"name":"wo_id","in":"path","required":true,"schema":{"type":"integer","title":"Wo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workOrder/{wo_id}/odometers":{"post":{"tags":["Work Orders & Line Items"],"summary":"Update Workorder Odometers","description":"Update work order odometers (TRACS API).","operationId":"update_workorder_odometers_workOrder__wo_id__odometers_post","parameters":[{"name":"wo_id","in":"path","required":true,"schema":{"type":"integer","title":"Wo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workOrder/{wo_id}/line-items":{"post":{"tags":["Work Orders & Line Items"],"summary":"Update Workorder Line Items","description":"Update work order line items (TRACS API).","operationId":"update_workorder_line_items_workOrder__wo_id__line_items_post","parameters":[{"name":"wo_id","in":"path","required":true,"schema":{"type":"integer","title":"Wo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workOrder/{wo_id}/vehicle/{vehicle_id}":{"post":{"tags":["Work Orders & Line Items"],"summary":"Update Workorder Vehicle","description":"Update work order vehicle information (TRACS API).","operationId":"update_workorder_vehicle_workOrder__wo_id__vehicle__vehicle_id__post","parameters":[{"name":"wo_id","in":"path","required":true,"schema":{"type":"integer","title":"Wo Id"}},{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"integer","title":"Vehicle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workOrder/{wo_id}/line-items/key-values":{"post":{"tags":["Work Orders & Line Items"],"summary":"Update Workorder Line Items Key Values","description":"Update key-values for work order line items (TRACS API).","operationId":"update_workorder_line_items_key_values_workOrder__wo_id__line_items_key_values_post","parameters":[{"name":"wo_id","in":"path","required":true,"schema":{"type":"integer","title":"Wo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workOrder/{wo_id}/vehicle/{vehicle_id}/key-values":{"post":{"tags":["Work Orders & Line Items"],"summary":"Update Workorder Vehicle Key Values","description":"Update key-values for a work order vehicle (TRACS API).","operationId":"update_workorder_vehicle_key_values_workOrder__wo_id__vehicle__vehicle_id__key_values_post","parameters":[{"name":"wo_id","in":"path","required":true,"schema":{"type":"integer","title":"Wo Id"}},{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"integer","title":"Vehicle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/estimate/{woId}":{"get":{"tags":["Estimates"],"summary":"Get Estimate By Woid","description":"Retrieve sub-estimate and line items for a work order by its ID.","operationId":"get_estimate_by_woId_estimate__woId__get","parameters":[{"name":"woId","in":"path","required":true,"schema":{"type":"integer","title":"Woid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/estimates/locks":{"get":{"tags":["Estimates"],"summary":"Get Estimate Locks","description":"Retrieve all estimate locks across shops.","operationId":"get_estimate_locks_estimates_locks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/estimates/{woNumber}/{shopId}":{"get":{"tags":["Estimates"],"summary":"Get Estimate By Wonumber And Shopid","description":"Retrieve sub-estimate and line items by work order number and shop ID.","operationId":"get_estimate_by_woNumber_and_shopId_estimates__woNumber___shopId__get","parameters":[{"name":"woNumber","in":"path","required":true,"schema":{"type":"integer","title":"Wonumber"}},{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sub-estimates/{subEstimateId}":{"get":{"tags":["Estimates"],"summary":"Get Sub Estimate By Id","description":"Retrieve a sub-estimate by its unique ID.","operationId":"get_sub_estimate_by_id_sub_estimates__subEstimateId__get","parameters":[{"name":"subEstimateId","in":"path","required":true,"schema":{"type":"integer","title":"Subestimateid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sub-estimates/{WoNumber}/{description}":{"get":{"tags":["Estimates"],"summary":"Get Sub Estimate By Woid And Description","description":"Retrieve a sub-estimate by work order ID and tab description.","operationId":"get_sub_estimate_by_woId_and_description_sub_estimates__WoNumber___description__get","parameters":[{"name":"WoNumber","in":"path","required":true,"schema":{"type":"integer","title":"Wonumber"}},{"name":"description","in":"path","required":true,"schema":{"type":"string","title":"Description"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sub-estimates/{woNumber}/{shopId}/{description}":{"get":{"tags":["Estimates"],"summary":"Get Sub Estimate By Wonumber Shopid And Description","description":"Retrieve a sub-estimate by work order number, shop ID, and tab description.","operationId":"get_sub_estimate_by_woNumber_shopId_and_description_sub_estimates__woNumber___shopId___description__get","parameters":[{"name":"woNumber","in":"path","required":true,"schema":{"type":"integer","title":"Wonumber"}},{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"description","in":"path","required":true,"schema":{"type":"string","title":"Description"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/estimates/{id}":{"put":{"tags":["Estimates"],"summary":"Update Estimate","description":"Update an existing estimate.","operationId":"update_estimate_estimates__id__put","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/estimates/{estimateId}/convertToRepairOrder":{"put":{"tags":["Estimates"],"summary":"Convert Estimate To Repair Order","description":"Convert an estimate to a repair order.","operationId":"convert_estimate_to_repair_order_estimates__estimateId__convertToRepairOrder_put","parameters":[{"name":"estimateId","in":"path","required":true,"schema":{"type":"integer","title":"Estimateid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/estimates/{woId}/{subEstimateCode}/line-items":{"put":{"tags":["Estimates"],"summary":"Add Line Items To Sub Estimate","description":"Add new line items to an existing sub-estimate.","operationId":"add_line_items_to_sub_estimate_estimates__woId___subEstimateCode__line_items_put","parameters":[{"name":"woId","in":"path","required":true,"schema":{"type":"integer","title":"Woid"}},{"name":"subEstimateCode","in":"path","required":true,"schema":{"type":"string","title":"Subestimatecode"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/estimates/{estimateId}/line-items/{lineItemId}":{"delete":{"tags":["Estimates"],"summary":"Delete Line Item From Estimate","description":"Delete a line item from an estimate.","operationId":"delete_line_item_from_estimate_estimates__estimateId__line_items__lineItemId__delete","parameters":[{"name":"estimateId","in":"path","required":true,"schema":{"type":"integer","title":"Estimateid"}},{"name":"lineItemId","in":"path","required":true,"schema":{"type":"integer","title":"Lineitemid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Estimates"],"summary":"Update Line Item","description":"Update a line item within an estimate.","operationId":"update_line_item_estimates__estimateId__line_items__lineItemId__put","parameters":[{"name":"estimateId","in":"path","required":true,"schema":{"type":"integer","title":"Estimateid"}},{"name":"lineItemId","in":"path","required":true,"schema":{"type":"integer","title":"Lineitemid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/estimates":{"post":{"tags":["Estimates"],"summary":"Create Estimate","description":"Create a new estimate (work order with status 'Estimate').","operationId":"create_estimate_estimates_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/estimates/{id}/line-items":{"post":{"tags":["Estimates"],"summary":"Add Line Item To Estimate","description":"Add a new line item (e.g. part, labor, note) to an estimate.","operationId":"add_line_item_to_estimate_estimates__id__line_items_post","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/estimates/{woId}/sub-estimates":{"post":{"tags":["Estimates"],"summary":"Add Sub Estimate","description":"Add a new sub-estimate to an existing estimate.","operationId":"add_sub_estimate_estimates__woId__sub_estimates_post","parameters":[{"name":"woId","in":"path","required":true,"schema":{"type":"integer","title":"Woid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/estimates/{estimateId}/locks/{shopId}/{userName}":{"post":{"tags":["Estimates"],"summary":"Insert Estimate Lock","description":"Insert a document lock for an estimate.","operationId":"insert_estimate_lock_estimates__estimateId__locks__shopId___userName__post","parameters":[{"name":"estimateId","in":"path","required":true,"schema":{"type":"integer","title":"Estimateid"}},{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"userName","in":"path","required":true,"schema":{"type":"string","title":"Username"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/locks/{lockId}":{"delete":{"tags":["Estimates"],"summary":"Remove Estimate Lock","description":"Remove a document lock from an estimate.","operationId":"remove_estimate_lock_locks__lockId__delete","parameters":[{"name":"lockId","in":"path","required":true,"schema":{"type":"integer","title":"Lockid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/employees":{"get":{"tags":["TRACS API"],"summary":"Get Shops Employees","description":"Retrieve employees across all shops from the TRACS API.","operationId":"get_shops_employees_tracsApi_shops_employees_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tracsApi/shops/catagories":{"get":{"tags":["TRACS API"],"summary":"Get Shops Catagories","description":"Retrieve shop categories from the TRACS API.","operationId":"get_shops_catagories_tracsApi_shops_catagories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tracsApi/shops/paymentTypes":{"get":{"tags":["TRACS API"],"summary":"Get Shops Payment Types","description":"Retrieve shop payment types from the TRACS API.","operationId":"get_shops_payment_types_tracsApi_shops_paymentTypes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tracsApi/vendors/{vendorId}":{"get":{"tags":["TRACS API"],"summary":"Get Vendor","description":"Retrieve a vendor by ID from the TRACS API.","operationId":"get_vendor_tracsApi_vendors__vendorId__get","parameters":[{"name":"vendorId","in":"path","required":true,"schema":{"type":"integer","title":"Vendorid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/profitCenters":{"get":{"tags":["TRACS API"],"summary":"Get Shops Profit Centers","description":"Retrieve shop profit centers from the TRACS API.","operationId":"get_shops_profit_centers_tracsApi_shops_profitCenters_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tracsApi/postedArTransactions":{"get":{"tags":["TRACS API"],"summary":"Get Posted Ar Transactions","description":"Retrieve posted AR transactions from the TRACS API.","operationId":"get_posted_ar_transactions_tracsApi_postedArTransactions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tracsApi/shops/{shopId}/vendors":{"get":{"tags":["TRACS API"],"summary":"Get Shop Vendors","description":"Retrieve vendors for a specific shop from the TRACS API.","operationId":"get_shop_vendors_tracsApi_shops__shopId__vendors_get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/unpostedArTransactions":{"get":{"tags":["TRACS API"],"summary":"Get Unposted Ar Transactions","description":"Retrieve unposted AR transactions from the TRACS API.","operationId":"get_unposted_ar_transactions_tracsApi_unpostedArTransactions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tracsApi/shops/{shopId}/settings":{"get":{"tags":["TRACS API"],"summary":"Get Shop Settings","description":"Retrieve settings for a specific shop from the TRACS API.","operationId":"get_shop_settings_tracsApi_shops__shopId__settings_get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/vehicles":{"get":{"tags":["TRACS API"],"summary":"Get Shop Vehicles","description":"Retrieve vehicles for a specific shop from the TRACS API.","operationId":"get_shop_vehicles_tracsApi_shops__shopId__vehicles_get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/customersByEmail/{email}":{"get":{"tags":["TRACS API"],"summary":"Get Customers By Email","description":"Retrieve customers by email from the TRACS API.","operationId":"get_customers_by_email_tracsApi_customersByEmail__email__get","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/customers":{"get":{"tags":["TRACS API"],"summary":"Get Shop Customers","description":"Retrieve customers for a specific shop from the TRACS API.","operationId":"get_shop_customers_tracsApi_shops__shopId__customers_get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/employees":{"get":{"tags":["TRACS API"],"summary":"Get Shop Employees","description":"Retrieve employees for a specific shop from the TRACS API.","operationId":"get_shop_employees_tracsApi_shops__shopId__employees_get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/workOrders/{workOrderId}":{"get":{"tags":["TRACS API"],"summary":"Get Work Order","description":"Retrieve a work order by its ID from the TRACS API.","operationId":"get_work_order_tracsApi_workOrders__workOrderId__get","parameters":[{"name":"workOrderId","in":"path","required":true,"schema":{"type":"integer","title":"Workorderid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/accountReceivables/{arId}":{"get":{"tags":["TRACS API"],"summary":"Get Account Receivable","description":"Retrieve an account receivable by its ID from the TRACS API.","operationId":"get_account_receivable_tracsApi_accountReceivables__arId__get","parameters":[{"name":"arId","in":"path","required":true,"schema":{"type":"integer","title":"Arid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/catagories":{"get":{"tags":["TRACS API"],"summary":"Get Shop Catagories","description":"Retrieve categories for a specific shop from the TRACS API.","operationId":"get_shop_catagories_tracsApi_shops__shopId__catagories_get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/taxClasses":{"get":{"tags":["TRACS API"],"summary":"Get Shop Tax Classes","description":"Retrieve tax classes for a specific shop from the TRACS API.","operationId":"get_shop_tax_classes_tracsApi_shops__shopId__taxClasses_get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/arTransactions/{arTransId}":{"get":{"tags":["TRACS API"],"summary":"Get Ar Transaction","description":"Retrieve an AR transaction by its ID from the TRACS API.","operationId":"get_ar_transaction_tracsApi_arTransactions__arTransId__get","parameters":[{"name":"arTransId","in":"path","required":true,"schema":{"type":"integer","title":"Artransid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/paymentTypes":{"get":{"tags":["TRACS API"],"summary":"Get Shop Payment Types","description":"Retrieve payment types for a specific shop from the TRACS API.","operationId":"get_shop_payment_types_tracsApi_shops__shopId__paymentTypes_get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/profitCenters":{"get":{"tags":["TRACS API"],"summary":"Get Shop Profit Centers","description":"Retrieve profit centers for a specific shop from the TRACS API.","operationId":"get_shop_profit_centers_tracsApi_shops__shopId__profitCenters_get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/arTransactions":{"get":{"tags":["TRACS API"],"summary":"Get Shop Ar Transactions","description":"Retrieve AR transactions for a specific shop from the TRACS API.","operationId":"get_shop_ar_transactions_tracsApi_shops__shopId__arTransactions_get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/purchaseOrders/{puchaseOrderId}":{"get":{"tags":["TRACS API"],"summary":"Get Purchase Order","description":"Retrieve a purchase order by its ID from the TRACS API.","operationId":"get_purchase_order_tracsApi_purchaseOrders__puchaseOrderId__get","parameters":[{"name":"puchaseOrderId","in":"path","required":true,"schema":{"type":"integer","title":"Puchaseorderid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/permissions/{permissionsGroupId}":{"get":{"tags":["TRACS API"],"summary":"Get Permissions","description":"Retrieve permissions for a given group from the TRACS API.","operationId":"get_permissions_tracsApi_permissions__permissionsGroupId__get","parameters":[{"name":"permissionsGroupId","in":"path","required":true,"schema":{"type":"integer","title":"Permissionsgroupid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/employeesById/{employeeId}":{"get":{"tags":["TRACS API"],"summary":"Get Employee By Id","description":"Retrieve an employee by their ID from the TRACS API.","operationId":"get_employee_by_id_tracsApi_shops_employeesById__employeeId__get","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"integer","title":"Employeeid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/accountReceivables":{"get":{"tags":["TRACS API"],"summary":"Get Shop Account Receivables","description":"Retrieve account receivables for a specific shop from the TRACS API.","operationId":"get_shop_account_receivables_tracsApi_shops__shopId__accountReceivables_get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/vehicles/{vehicleId}/appointments":{"get":{"tags":["TRACS API"],"summary":"Get Vehicle Appointments","description":"Retrieve appointments for a specific vehicle from the TRACS API.","operationId":"get_vehicle_appointments_tracsApi_vehicles__vehicleId__appointments_get","parameters":[{"name":"vehicleId","in":"path","required":true,"schema":{"type":"integer","title":"Vehicleid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/workOrders/{workOrderId}/lineItems":{"get":{"tags":["TRACS API"],"summary":"Get Work Order Line Items","description":"Retrieve line items for a work order from the TRACS API.","operationId":"get_work_order_line_items_tracsApi_workOrders__workOrderId__lineItems_get","parameters":[{"name":"workOrderId","in":"path","required":true,"schema":{"type":"integer","title":"Workorderid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/workOrders/{workOrderId}/withTaxes":{"get":{"tags":["TRACS API"],"summary":"Get Work Order With Taxes","description":"Retrieve a work order with tax details from the TRACS API.","operationId":"get_work_order_with_taxes_tracsApi_workOrders__workOrderId__withTaxes_get","parameters":[{"name":"workOrderId","in":"path","required":true,"schema":{"type":"integer","title":"Workorderid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/customersByPhoneNumber/{phoneNumber}":{"get":{"tags":["TRACS API"],"summary":"Get Customers By Phone Number","description":"Retrieve customers by phone number from the TRACS API.","operationId":"get_customers_by_phone_number_tracsApi_customersByPhoneNumber__phoneNumber__get","parameters":[{"name":"phoneNumber","in":"path","required":true,"schema":{"type":"string","title":"Phonenumber"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/employeesByCode/{employeeCode}":{"get":{"tags":["TRACS API"],"summary":"Get Employee By Code","description":"Retrieve an employee by code from the TRACS API.","operationId":"get_employee_by_code_tracsApi_shops_employeesByCode__employeeCode__get","parameters":[{"name":"employeeCode","in":"path","required":true,"schema":{"type":"string","title":"Employeecode"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/itemsByType/{itemType}":{"get":{"tags":["TRACS API"],"summary":"Get Items By Type","description":"Retrieve items of a certain type for a shop from the TRACS API.","operationId":"get_items_by_type_tracsApi_shops__shopId__itemsByType__itemType__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"itemType","in":"path","required":true,"schema":{"type":"string","title":"Itemtype"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/workOrders/{workOrderId}/subEstimates":{"get":{"tags":["TRACS API"],"summary":"Get Work Order Sub Estimates","description":"Retrieve sub-estimates for a work order from the TRACS API.","operationId":"get_work_order_sub_estimates_tracsApi_workOrders__workOrderId__subEstimates_get","parameters":[{"name":"workOrderId","in":"path","required":true,"schema":{"type":"integer","title":"Workorderid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/tracsApi/shops/{shopId}/purchaseOrders":{"get":{"tags":["TRACS API"],"summary":"Get Shop Purchase Orders","description":"Retrieve purchase orders for a shop from the TRACS API.\nNote the extra '/tracsApi' in the endpoint.","operationId":"get_shop_purchase_orders_tracsApi_tracsApi_shops__shopId__purchaseOrders_get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/vehicles/{vehicleId}/RecommendedServices":{"get":{"tags":["TRACS API"],"summary":"Get Vehicle Recommended Services","description":"Retrieve recommended services for a vehicle from the TRACS API.","operationId":"get_vehicle_recommended_services_tracsApi_vehicles__vehicleId__RecommendedServices_get","parameters":[{"name":"vehicleId","in":"path","required":true,"schema":{"type":"integer","title":"Vehicleid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/workOrders/{workOrderId}/appliedTaxRules":{"get":{"tags":["TRACS API"],"summary":"Get Work Order Applied Tax Rules","description":"Retrieve applied tax rules for a work order from the TRACS API.","operationId":"get_work_order_applied_tax_rules_tracsApi_workOrders__workOrderId__appliedTaxRules_get","parameters":[{"name":"workOrderId","in":"path","required":true,"schema":{"type":"integer","title":"Workorderid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/workOrders/{workOrderId}/taxRulesSummary":{"get":{"tags":["TRACS API"],"summary":"Get Work Order Tax Rules Summary","description":"Retrieve a tax rules summary for a work order from the TRACS API.","operationId":"get_work_order_tax_rules_summary_tracsApi_workOrders__workOrderId__taxRulesSummary_get","parameters":[{"name":"workOrderId","in":"path","required":true,"schema":{"type":"integer","title":"Workorderid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/customers/{customerId}/RecommendedServices":{"get":{"tags":["TRACS API"],"summary":"Get Customer Recommended Services","description":"Retrieve recommended services for a customer from the TRACS API.","operationId":"get_customer_recommended_services_tracsApi_customers__customerId__RecommendedServices_get","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","title":"Customerid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/purchaseOrders/{purchaseOrderId}/poLineItems":{"get":{"tags":["TRACS API"],"summary":"Get Purchase Order Line Items","description":"Retrieve purchase order line items from the TRACS API.","operationId":"get_purchase_order_line_items_tracsApi_purchaseOrders__purchaseOrderId__poLineItems_get","parameters":[{"name":"purchaseOrderId","in":"path","required":true,"schema":{"type":"integer","title":"Purchaseorderid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/vehicles/last-modified/{startDate}/{endDate}":{"get":{"tags":["TRACS API"],"summary":"Get Vehicles Last Modified","description":"Fetch vehicle records last modified within the specified date range.","operationId":"get_vehicles_last_modified_tracsApi_vehicles_last_modified__startDate___endDate__get","parameters":[{"name":"startDate","in":"path","required":true,"schema":{"type":"string","title":"Startdate"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string","title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/customers/last-modified/{startDate}/{endDate}":{"get":{"tags":["TRACS API"],"summary":"Get Customers Last Modified","description":"Fetch customer records last modified within the specified date range.","operationId":"get_customers_last_modified_tracsApi_customers_last_modified__startDate___endDate__get","parameters":[{"name":"startDate","in":"path","required":true,"schema":{"type":"string","title":"Startdate"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string","title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/workOrders/{workOrderId}/appliedTaxRuleGroups":{"get":{"tags":["TRACS API"],"summary":"Get Work Order Applied Tax Rule Groups","description":"Retrieve applied tax rule groups for a work order from the TRACS API.","operationId":"get_work_order_applied_tax_rule_groups_tracsApi_workOrders__workOrderId__appliedTaxRuleGroups_get","parameters":[{"name":"workOrderId","in":"path","required":true,"schema":{"type":"integer","title":"Workorderid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/workOrders/{startDate}/{endDate}":{"get":{"tags":["TRACS API"],"summary":"Get Shop Work Orders By Date","description":"Retrieve work orders for a shop by a created-on date range.","operationId":"get_shop_work_orders_by_date_tracsApi_shops__shopId__workOrders__startDate___endDate__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"startDate","in":"path","required":true,"schema":{"type":"string","title":"Startdate"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string","title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/receivedPOs/{startDate}/{endDate}":{"get":{"tags":["TRACS API"],"summary":"Get Shop Received Pos","description":"Retrieve received purchase orders for a shop within a date range.","operationId":"get_shop_received_pos_tracsApi_shops__shopId__receivedPOs__startDate___endDate__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"startDate","in":"path","required":true,"schema":{"type":"string","title":"Startdate"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string","title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/appointments/{startDate}/{endDate}":{"get":{"tags":["TRACS API"],"summary":"Get Shop Appointments By Date","description":"Retrieve appointments for a shop within a specified date range.","operationId":"get_shop_appointments_by_date_tracsApi_shops__shopId__appointments__startDate___endDate__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"startDate","in":"path","required":true,"schema":{"type":"string","title":"Startdate"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string","title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/workOrders/{startWoNbr}/{endWoNbr}":{"get":{"tags":["TRACS API"],"summary":"Get Shop Work Orders By Number","description":"Retrieve work orders for a shop within a specified work order number range.","operationId":"get_shop_work_orders_by_number_tracsApi_shops__shopId__workOrders__startWoNbr___endWoNbr__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"startWoNbr","in":"path","required":true,"schema":{"type":"integer","title":"Startwonbr"}},{"name":"endWoNbr","in":"path","required":true,"schema":{"type":"integer","title":"Endwonbr"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/arTransactions/{startDate}/{endDate}":{"get":{"tags":["TRACS API"],"summary":"Get Shop Ar Transactions By Date","description":"Retrieve AR transactions for a shop within a date range.","operationId":"get_shop_ar_transactions_by_date_tracsApi_shops__shopId__arTransactions__startDate___endDate__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"startDate","in":"path","required":true,"schema":{"type":"string","title":"Startdate"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string","title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/accountReceivables/{startDate}/{endDate}":{"get":{"tags":["TRACS API"],"summary":"Get Shop Account Receivables By Date","description":"Retrieve account receivables for a shop within a date range.","operationId":"get_shop_account_receivables_by_date_tracsApi_shops__shopId__accountReceivables__startDate___endDate__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"startDate","in":"path","required":true,"schema":{"type":"string","title":"Startdate"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string","title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/workOrders/{status}/{startDate}/{endDate}":{"get":{"tags":["TRACS API"],"summary":"Get Shop Work Orders By Status","description":"Retrieve work orders for a shop by status and a created-on date range.","operationId":"get_shop_work_orders_by_status_tracsApi_shops__shopId__workOrders__status___startDate___endDate__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"status","in":"path","required":true,"schema":{"type":"string","title":"Status"}},{"name":"startDate","in":"path","required":true,"schema":{"type":"string","title":"Startdate"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string","title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/workOrders/open/{startDateUtc}/{endDateUtc}":{"get":{"tags":["TRACS API"],"summary":"Get Open Work Orders","description":"Retrieve open work orders for a shop within a UTC date range.","operationId":"get_open_work_orders_tracsApi_shops__shopId__workOrders_open__startDateUtc___endDateUtc__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"startDateUtc","in":"path","required":true,"schema":{"type":"string","title":"Startdateutc"}},{"name":"endDateUtc","in":"path","required":true,"schema":{"type":"string","title":"Enddateutc"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/arTransactionCustomers/{startDate}/{endDate}":{"get":{"tags":["TRACS API"],"summary":"Get Ar Transaction Customers","description":"Retrieve AR transaction customers for a shop within a date range.","operationId":"get_ar_transaction_customers_tracsApi_shops__shopId__arTransactionCustomers__startDate___endDate__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"startDate","in":"path","required":true,"schema":{"type":"string","title":"Startdate"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string","title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/workOrders/{customerId}/{startDate}/{endDate}":{"get":{"tags":["TRACS API"],"summary":"Get Work Orders By Customer","description":"Retrieve work orders for a shop and a specific customer within a date range.","operationId":"get_work_orders_by_customer_tracsApi_shops__shopId__workOrders__customerId___startDate___endDate__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","title":"Customerid"}},{"name":"startDate","in":"path","required":true,"schema":{"type":"string","title":"Startdate"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string","title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/accounting/workorders/{workOrderId}/markPosted":{"get":{"tags":["TRACS API"],"summary":"Mark Workorder Posted","description":"Mark a work order as posted via the TRACS API.","operationId":"mark_workorder_posted_tracsApi_shops__shopId__accounting_workorders__workOrderId__markPosted_get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"workOrderId","in":"path","required":true,"schema":{"type":"integer","title":"Workorderid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/accounting/workorders/{workOrderId}/markUnposted":{"get":{"tags":["TRACS API"],"summary":"Mark Workorder Unposted","description":"Mark a work order as unposted via the TRACS API.","operationId":"mark_workorder_unposted_tracsApi_shops__shopId__accounting_workorders__workOrderId__markUnposted_get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"workOrderId","in":"path","required":true,"schema":{"type":"integer","title":"Workorderid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/appointments/last-modified/{startDate}/{endDate}":{"get":{"tags":["TRACS API"],"summary":"Get Appointments Last Modified","description":"Retrieve appointments last modified for a shop within a date range.","operationId":"get_appointments_last_modified_tracsApi_shops__shopId__appointments_last_modified__startDate___endDate__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"startDate","in":"path","required":true,"schema":{"type":"string","title":"Startdate"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string","title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/rec-services/last-modified/{startDate}/{endDate}":{"get":{"tags":["TRACS API"],"summary":"Get Rec Services Last Modified","description":"Retrieve recommended services last modified for a shop within a date range.","operationId":"get_rec_services_last_modified_tracsApi_shops__shopId__rec_services_last_modified__startDate___endDate__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"startDate","in":"path","required":true,"schema":{"type":"string","title":"Startdate"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string","title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/accounting/arTransactions/{arTransactionId}/markPosted":{"get":{"tags":["TRACS API"],"summary":"Mark Ar Transaction Posted","description":"Mark an AR transaction as posted via the TRACS API.","operationId":"mark_ar_transaction_posted_tracsApi_shops__shopId__accounting_arTransactions__arTransactionId__markPosted_get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"arTransactionId","in":"path","required":true,"schema":{"type":"integer","title":"Artransactionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/vehicles/{vehicleId}/rec-services/last-modified/{startDate}/{endDate}":{"get":{"tags":["TRACS API"],"summary":"Get Vehicle Rec Services Last Modified","description":"Retrieve recommended services for a vehicle last modified within a date range.","operationId":"get_vehicle_rec_services_last_modified_tracsApi_vehicles__vehicleId__rec_services_last_modified__startDate___endDate__get","parameters":[{"name":"vehicleId","in":"path","required":true,"schema":{"type":"integer","title":"Vehicleid"}},{"name":"startDate","in":"path","required":true,"schema":{"type":"string","title":"Startdate"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string","title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/accounting/arTransactions/{arTransactionId}/markUnposted":{"get":{"tags":["TRACS API"],"summary":"Mark Ar Transaction Unposted","description":"Mark an AR transaction as unposted via the TRACS API.","operationId":"mark_ar_transaction_unposted_tracsApi_shops__shopId__accounting_arTransactions__arTransactionId__markUnposted_get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"arTransactionId","in":"path","required":true,"schema":{"type":"integer","title":"Artransactionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/accounting/arTransactions/markPosted/{startDate}/{endDate}":{"get":{"tags":["TRACS API"],"summary":"Mark Ar Transactions Posted","description":"Mark AR transactions as posted within a date range via the TRACS API.","operationId":"mark_ar_transactions_posted_tracsApi_shops__shopId__accounting_arTransactions_markPosted__startDate___endDate__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"startDate","in":"path","required":true,"schema":{"type":"string","title":"Startdate"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string","title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/accountReceivablesWithAppliedPayments/{startDate}/{endDate}":{"get":{"tags":["TRACS API"],"summary":"Get Account Receivables With Applied Payments","description":"Retrieve account receivables with applied payments within a date range for a shop.","operationId":"get_account_receivables_with_applied_payments_tracsApi_shops__shopId__accountReceivablesWithAppliedPayments__startDate___endDate__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"startDate","in":"path","required":true,"schema":{"type":"string","title":"Startdate"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string","title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/accounting/arTransactions/markUnposted/{startDate}/{endDate}":{"get":{"tags":["TRACS API"],"summary":"Mark Ar Transactions Unposted","description":"Mark AR transactions as unposted within a date range via the TRACS API.","operationId":"mark_ar_transactions_unposted_tracsApi_shops__shopId__accounting_arTransactions_markUnposted__startDate___endDate__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"startDate","in":"path","required":true,"schema":{"type":"string","title":"Startdate"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string","title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/accounting/workorders/markInvoicesPosted/{startDate}/{endDate}":{"get":{"tags":["TRACS API"],"summary":"Mark Invoices Posted","description":"Mark invoices as posted for work orders within a date range via the TRACS API.","operationId":"mark_invoices_posted_tracsApi_shops__shopId__accounting_workorders_markInvoicesPosted__startDate___endDate__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"startDate","in":"path","required":true,"schema":{"type":"string","title":"Startdate"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string","title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracsApi/shops/{shopId}/accounting/workorders/markInvoicesUnposted/{startDate}/{endDate}":{"get":{"tags":["TRACS API"],"summary":"Mark Invoices Unposted","description":"Mark invoices as unposted for work orders within a date range via the TRACS API.","operationId":"mark_invoices_unposted_tracsApi_shops__shopId__accounting_workorders_markInvoicesUnposted__startDate___endDate__get","parameters":[{"name":"shopId","in":"path","required":true,"schema":{"type":"integer","title":"Shopid"}},{"name":"startDate","in":"path","required":true,"schema":{"type":"string","title":"Startdate"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string","title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/Appointments":{"get":{"tags":["Appointments"],"summary":"Get Appointments","description":"Returns appointments from 'now' until the next 14 days,\noptionally filtered by first_name, last_name, or phone_number.\nAlso returns phone numbers for the associated Customer and vehicle details.","operationId":"get_appointments_Appointments_get","parameters":[{"name":"FirstName","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firstname"}},{"name":"LastName","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lastname"}},{"name":"PhoneNumber","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phonenumber"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AppointmentResponse"},"title":"Response Get Appointments Appointments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/Appointments/customer":{"get":{"tags":["Appointments"],"summary":"Get Vehicles For Customer","operationId":"get_vehicles_for_customer_Appointments_customer_get","parameters":[{"name":"customer_id","in":"query","required":true,"schema":{"type":"integer","title":"Customer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VehicleResponse"},"title":"Response Get Vehicles For Customer Appointments Customer Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/Appointments/Update_appointment":{"post":{"tags":["Appointments"],"summary":"Update Appointment","operationId":"update_appointment_Appointments_Update_appointment_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppointmentUpdateData"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/Appointments/search":{"get":{"tags":["Appointments"],"summary":"Search Appointments","operationId":"search_appointments_Appointments_search_get","parameters":[{"name":"appointment_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Appointment Id"}},{"name":"customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Customer Id"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AppointmentResponse"},"title":"Response Search Appointments Appointments Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/Appointments/DropOffConfirmed":{"post":{"tags":["Appointments","DropOffConfirmed"],"summary":"Drop Off Confirmed","operationId":"drop_off_confirmed_Appointments_DropOffConfirmed_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/lookup_by_phone":{"post":{"summary":"Lookup By Phone","operationId":"lookup_by_phone_api_lookup_by_phone_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"object"},"type":"array","title":"Response Lookup By Phone Api Lookup By Phone Post"}}}}}}},"/api/lookup_by_phone_and_name":{"post":{"summary":"Lookup By Phone And Name","operationId":"lookup_by_phone_and_name_api_lookup_by_phone_and_name_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneNameLookupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Lookup By Phone And Name Api Lookup By Phone And Name Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/otp/request":{"post":{"summary":"Request Otp","operationId":"request_otp_api_auth_otp_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestOTP"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Request Otp Api Auth Otp Request Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/verify_otp":{"post":{"summary":"Verify Otp","operationId":"verify_otp_api_verify_otp_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyOTP"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Verify Otp Api Verify Otp Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/{account_id}/info":{"get":{"summary":"Get Account Info","description":"Retrieve account information via internal endpoints.","operationId":"get_account_info_api_account__account_id__info_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vehicle/{vehicle_id}/details":{"get":{"summary":"Get Vehicle Details","description":"Retrieve vehicle history and recall data (unchanged; NHTSA API call).","operationId":"get_vehicle_details_api_vehicle__vehicle_id__details_get","parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"integer","title":"Vehicle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/upload/registration":{"post":{"tags":["GoogleDriveUpload"],"summary":"Upload Registration","description":"Uploads a registration document to Google Drive under the following folder structure:\n  <first_name>_<last_name> / <vehicle_year>_<vehicle_make>_<vehicle_model> / Registration <Month Year>\nDoes NOT update any appointment record.","operationId":"upload_registration_upload_registration_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_registration_upload_registration_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/upload/insurance":{"post":{"tags":["GoogleDriveUpload"],"summary":"Upload Insurance","description":"Uploads an insurance document to Google Drive under the following folder structure:\n  <first_name>_<last_name> / <vehicle_year>_<vehicle_make>_<vehicle_model> / Insurance <Current Month Year>\nDoes NOT update any appointment record.","operationId":"upload_insurance_upload_insurance_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_insurance_upload_insurance_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reports/tech-efficiency":{"get":{"tags":["Reports"],"summary":"Tech efficiency with/without matrix hours (choose invoiced or completed window, includes TOTAL row)","description":"Returns per-tech worked hours, billed hours (no-matrix and with-matrix), and efficiency %,\nusing the selected date basis ('invoiced' or 'completed'), plus a TOTAL row.\nMatrix hours follow your MATRIX logic on Labor items in the same window.","operationId":"get_tech_efficiency_grouped_reports_tech_efficiency_get","parameters":[{"name":"shop_id","in":"query","required":true,"schema":{"type":"integer","description":"ShopId to filter","title":"Shop Id"},"description":"ShopId to filter"},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"Inclusive start date (YYYY-MM-DD)","title":"Start Date"},"description":"Inclusive start date (YYYY-MM-DD)"},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"Inclusive end date (YYYY-MM-DD)","title":"End Date"},"description":"Inclusive end date (YYYY-MM-DD)"},{"name":"basis","in":"query","required":false,"schema":{"enum":["invoiced","completed"],"type":"string","description":"Date window basis: 'invoiced' uses WorkOrders.InvoicedOn; 'completed' uses WorkOrders.CompletedOn.","default":"invoiced","title":"Basis"},"description":"Date window basis: 'invoiced' uses WorkOrders.InvoicedOn; 'completed' uses WorkOrders.CompletedOn."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechEfficiencyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reports/api/reports/daily":{"get":{"tags":["Reports"],"summary":"Get Today Report","operationId":"get_today_report_reports_api_reports_daily_get","parameters":[{"name":"shop_id","in":"query","required":false,"schema":{"type":"integer","description":"Shop ID","default":1,"title":"Shop Id"},"description":"Shop ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reports/api/reports/range":{"get":{"tags":["Reports"],"summary":"Get Range Report","operationId":"get_range_report_reports_api_reports_range_get","parameters":[{"name":"shop_id","in":"query","required":false,"schema":{"type":"integer","description":"Shop ID","default":1,"title":"Shop Id"},"description":"Shop ID"},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"YYYY-MM-DD (inclusive start)","title":"Start Date"},"description":"YYYY-MM-DD (inclusive start)"},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"YYYY-MM-DD (inclusive end)","title":"End Date"},"description":"YYYY-MM-DD (inclusive end)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AppointmentCreate":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"customer_id":{"type":"integer","title":"Customer Id"}},"type":"object","required":["start","end","customer_id"],"title":"AppointmentCreate"},"AppointmentResponse":{"properties":{"AppointmentId":{"type":"integer","title":"Appointmentid"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"FirstName":{"type":"string","title":"Firstname"},"LastName":{"type":"string","title":"Lastname"},"Year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year"},"Make":{"type":"string","title":"Make"},"Model":{"type":"string","title":"Model"},"CustomerId":{"type":"integer","title":"Customerid"},"Start":{"type":"string","format":"date-time","title":"Start"},"VehicleId":{"type":"integer","title":"Vehicleid"},"Phones":{"items":{"$ref":"#/components/schemas/PhoneResponse"},"type":"array","title":"Phones","default":[]}},"type":"object","required":["AppointmentId","FirstName","LastName","Make","Model","CustomerId","Start","VehicleId"],"title":"AppointmentResponse"},"AppointmentUpdateData":{"properties":{"AppointmentId":{"type":"integer","title":"Appointmentid"},"Subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"Start":{"type":"string","format":"date-time","title":"Start"},"End":{"type":"string","format":"date-time","title":"End"},"IsAllDay":{"type":"boolean","title":"Isallday"},"RecurrencePattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recurrencepattern"},"TimeZone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"Importantance":{"type":"integer","title":"Importantance"},"TimeMarker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timemarker"},"Category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"Bay":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bay"},"TechnicianId":{"type":"integer","title":"Technicianid"},"Technician":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Technician"},"ShopId":{"type":"integer","title":"Shopid"},"WoId":{"type":"integer","title":"Woid"},"WoNumber":{"type":"integer","title":"Wonumber"},"CustomerId":{"type":"integer","title":"Customerid"},"VehicleId":{"type":"integer","title":"Vehicleid"},"ServiceWriterId":{"type":"integer","title":"Servicewriterid"},"ServiceWriter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Servicewriter"},"Author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"DurationTicks":{"type":"integer","title":"Durationticks","default":0},"PhoneNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phonenumber"},"ContactPhoneNbr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contactphonenbr"},"ModifiedDate":{"type":"string","format":"date-time","title":"Modifieddate"},"AddedDate":{"type":"string","format":"date-time","title":"Addeddate"},"DoNotShowInWIP":{"type":"boolean","title":"Donotshowinwip","default":false}},"type":"object","required":["AppointmentId","Start","End","IsAllDay","Importantance","TechnicianId","ShopId","WoId","WoNumber","CustomerId","VehicleId","ServiceWriterId","ModifiedDate","AddedDate"],"title":"AppointmentUpdateData"},"Body_upload_file_upload__post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"appointment_id":{"type":"string","title":"Appointment Id"}},"type":"object","required":["file","first_name","last_name","appointment_id"],"title":"Body_upload_file_upload__post"},"Body_upload_insurance_upload_insurance_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"vehicle_year":{"type":"string","title":"Vehicle Year"},"vehicle_make":{"type":"string","title":"Vehicle Make"},"vehicle_model":{"type":"string","title":"Vehicle Model"}},"type":"object","required":["file","first_name","last_name","vehicle_year","vehicle_make","vehicle_model"],"title":"Body_upload_insurance_upload_insurance_post"},"Body_upload_registration_upload_registration_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"vehicle_year":{"type":"string","title":"Vehicle Year"},"vehicle_make":{"type":"string","title":"Vehicle Make"},"vehicle_model":{"type":"string","title":"Vehicle Model"}},"type":"object","required":["file","first_name","last_name","vehicle_year","vehicle_make","vehicle_model"],"title":"Body_upload_registration_upload_registration_post"},"ConnecteamCustomField":{"properties":{"customFieldId":{"type":"integer","title":"Customfieldid"},"value":{"title":"Value"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"}},"type":"object","required":["customFieldId","value","type","name"],"title":"ConnecteamCustomField"},"ConnecteamNewUserPayload":{"properties":{"requestId":{"type":"string","title":"Requestid"},"company":{"type":"string","title":"Company"},"activityType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activitytype","default":""},"eventTimestamp":{"type":"integer","title":"Eventtimestamp"},"eventType":{"type":"string","title":"Eventtype"},"data":{"items":{"$ref":"#/components/schemas/ConnecteamUser"},"type":"array","title":"Data"}},"type":"object","required":["requestId","company","eventTimestamp","eventType","data"],"title":"ConnecteamNewUserPayload"},"ConnecteamUser":{"properties":{"firstName":{"type":"string","title":"Firstname"},"lastName":{"type":"string","title":"Lastname"},"phoneNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phonenumber"},"userType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usertype"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"customFields":{"items":{"$ref":"#/components/schemas/ConnecteamCustomField"},"type":"array","title":"Customfields","default":[]},"isArchived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isarchived"},"userId":{"type":"integer","title":"Userid"},"createdAt":{"type":"integer","title":"Createdat"},"modifiedAt":{"type":"integer","title":"Modifiedat"},"archivedAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Archivedat"},"lastLogin":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lastlogin"},"smartGroupsIds":{"items":{"type":"integer"},"type":"array","title":"Smartgroupsids","default":[]},"invitedToBeManager":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Invitedtobemanager"}},"type":"object","required":["firstName","lastName","userId","createdAt","modifiedAt"],"title":"ConnecteamUser"},"CustomerResponse":{"properties":{"CustomerId":{"type":"integer","title":"Customerid"},"FirstName":{"type":"string","title":"Firstname"},"LastName":{"type":"string","title":"Lastname"},"Vehicles":{"items":{"$ref":"#/components/schemas/VehicleResponse"},"type":"array","title":"Vehicles","default":[]}},"type":"object","required":["CustomerId","FirstName","LastName"],"title":"CustomerResponse","examples":[{"CustomerId":101,"FirstName":"John","LastName":"Doe","Vehicles":[{"Make":"Toyota","Model":"Corolla","VehicleId":1,"VehicleName":"Toyota Corolla","Year":2019},{"Make":"Honda","Model":"Civic","VehicleId":2,"VehicleName":"Honda Civic","Year":2020}]},{"CustomerId":102,"FirstName":"Jane","LastName":"Smith","Vehicles":[{"Make":"Tesla","Model":"Model 3","VehicleId":5,"VehicleName":"Tesla Model 3","Year":2021}]}]},"FullResponse":{"properties":{"Technicians":{"items":{"$ref":"#/components/schemas/TechHoursResponse"},"type":"array","title":"Technicians"},"GroupTotals":{"$ref":"#/components/schemas/GroupTotalsResponse"}},"type":"object","required":["Technicians","GroupTotals"],"title":"FullResponse","examples":[{"GroupTotals":{"TotalGroupEfficiency":89.21,"TotalGroupHoursBilled":80.5},"Technicians":[{"Difference":4.75,"Efficiency":88.21,"EmployeeName":"John Doe","TechCode":"Tech001","TotalHoursBilled":35.5,"TotalHoursWorked":40.25},{"Difference":5.0,"Efficiency":90.0,"EmployeeName":"Jane Smith","TechCode":"Tech002","TotalHoursBilled":45.0,"TotalHoursWorked":50.0}]}]},"GroupTotalsResponse":{"properties":{"TotalGroupHoursWorked":{"type":"number","title":"Totalgrouphoursworked"},"TotalGroupHoursBilled":{"type":"number","title":"Totalgrouphoursbilled"},"TotalGroupEfficiency":{"type":"number","title":"Totalgroupefficiency"}},"type":"object","required":["TotalGroupHoursWorked","TotalGroupHoursBilled","TotalGroupEfficiency"],"title":"GroupTotalsResponse","examples":[{"TotalGroupEfficiency":89.21,"TotalGroupHoursBilled":80.5,"TotalGroupHoursWorked":90.25}]},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ItemTypeRow":{"properties":{"itemType":{"type":"string","title":"Itemtype"},"totalRevenue":{"type":"number","title":"Totalrevenue","description":"Total revenue for this ItemType in the window"},"totalCost":{"type":"number","title":"Totalcost","description":"Cost (DB cost for non-Labor; external labor cost for Labor)"},"profitPct":{"type":"number","title":"Profitpct","description":"(Revenue - Cost) / Revenue * 100"}},"type":"object","required":["itemType","totalRevenue","totalCost","profitPct"],"title":"ItemTypeRow"},"NewEmailData":{"properties":{"CustomerId":{"type":"integer","title":"Customerid"},"EmailAddress":{"type":"string","title":"Emailaddress"},"Description":{"type":"string","title":"Description","default":"No Description"},"IsPrimary":{"type":"boolean","title":"Isprimary","default":false}},"type":"object","required":["CustomerId","EmailAddress"],"title":"NewEmailData"},"NewPhoneData":{"properties":{"CustomerId":{"type":"integer","title":"Customerid"},"PhoneNbr":{"type":"string","title":"Phonenbr"},"Description":{"type":"string","title":"Description","default":"No Description"},"IsPrimary":{"type":"boolean","title":"Isprimary"},"IsTextPhone":{"type":"boolean","title":"Istextphone"}},"type":"object","required":["CustomerId","PhoneNbr","IsPrimary","IsTextPhone"],"title":"NewPhoneData"},"NewUserResult":{"properties":{"status":{"type":"string","enum":["updated","not_found","ambiguous","skipped","error"],"title":"Status"},"message":{"type":"string","title":"Message"},"employeeId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Employeeid"},"employeeName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Employeename"},"oldConnectId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oldconnectid"},"newConnectId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Newconnectid"},"matchedName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matchedname"}},"type":"object","required":["status","message"],"title":"NewUserResult"},"NewUserWebhookResponse":{"properties":{"requestId":{"type":"string","title":"Requestid"},"eventType":{"type":"string","title":"Eventtype"},"processed":{"type":"integer","title":"Processed"},"results":{"items":{"$ref":"#/components/schemas/NewUserResult"},"type":"array","title":"Results"}},"type":"object","required":["requestId","eventType","processed","results"],"title":"NewUserWebhookResponse"},"NewVehicleData":{"properties":{"ShopId":{"type":"integer","title":"Shopid","description":"Identifier for the shop","example":1},"CustomerId":{"type":"integer","title":"Customerid","description":"Identifier for the customer","example":274},"YearMakeModel":{"anyOf":[{"$ref":"#/components/schemas/VehYearMakeModel"},{"type":"null"}],"description":"The vehicle's year, make, and model information","example":{"Make":"Toyota","Model":"Camry","Year":2020}},"Vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin","description":"Vehicle Identification Number","example":"1HGCM82633A004352"},"MostRecentOdometer":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mostrecentodometer","description":"Most recent odometer reading","example":15000.5},"LicenseTag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Licensetag","description":"License tag number of the vehicle","example":"XYZ123"},"LicenseState":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Licensestate","description":"State that issued the license tag","example":"CA"},"Color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color","description":"Color of the vehicle","example":"Blue"},"Notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","description":"Additional notes regarding the vehicle","example":"New vehicle data submitted."}},"type":"object","required":["ShopId","CustomerId"],"title":"NewVehicleData"},"PhoneNameLookupRequest":{"properties":{"phone_number":{"type":"string","title":"Phone Number"},"first_name":{"type":"string","title":"First Name"}},"type":"object","required":["phone_number","first_name"],"title":"PhoneNameLookupRequest"},"PhoneResponse":{"properties":{"PhoneId":{"type":"integer","title":"Phoneid"},"PhoneNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phonenumber"},"PhoneDescription":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phonedescription"}},"type":"object","required":["PhoneId"],"title":"PhoneResponse"},"ProfitByItemTypeResponse":{"properties":{"shopId":{"type":"integer","title":"Shopid"},"basis":{"type":"string","enum":["invoiced","completed"],"title":"Basis"},"startDate":{"type":"string","title":"Startdate"},"endDate":{"type":"string","title":"Enddate"},"breakdown":{"items":{"$ref":"#/components/schemas/ItemTypeRow"},"type":"array","title":"Breakdown"},"totals":{"additionalProperties":{"type":"number"},"type":"object","title":"Totals"}},"type":"object","required":["shopId","basis","startDate","endDate","breakdown","totals"],"title":"ProfitByItemTypeResponse"},"RequestOTP":{"properties":{"phone_number":{"type":"string","title":"Phone Number"},"channel":{"type":"string","enum":["sms","call"],"title":"Channel","default":"sms"}},"type":"object","required":["phone_number"],"title":"RequestOTP"},"TechEfficiencyItem":{"properties":{"TechCode":{"type":"string","title":"Techcode"},"TechName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Techname"},"TechRole":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Techrole"},"WorkedHrs":{"type":"number","title":"Workedhrs"},"BilledHrs_NoMatrix":{"type":"number","title":"Billedhrs Nomatrix"},"MatrixHrs":{"type":"number","title":"Matrixhrs"},"BilledHrs_WithMatrix":{"type":"number","title":"Billedhrs Withmatrix"},"Efficiency_NoMatrix_Pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Efficiency Nomatrix Pct"},"Efficiency_WithMatrix_Pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Efficiency Withmatrix Pct"}},"type":"object","required":["TechCode","WorkedHrs","BilledHrs_NoMatrix","MatrixHrs","BilledHrs_WithMatrix"],"title":"TechEfficiencyItem"},"TechEfficiencyResponse":{"properties":{"summary":{"anyOf":[{"$ref":"#/components/schemas/TechEfficiencyItem"},{"type":"null"}]},"items":{"items":{"$ref":"#/components/schemas/TechEfficiencyItem"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"TechEfficiencyResponse"},"TechHoursResponse":{"properties":{"TechCode":{"type":"string","title":"Techcode"},"EmployeeName":{"type":"string","title":"Employeename"},"TotalHoursWorked":{"type":"number","title":"Totalhoursworked"},"TotalHoursBilled":{"type":"number","title":"Totalhoursbilled"},"Difference":{"type":"number","title":"Difference"},"Efficiency":{"type":"number","title":"Efficiency"}},"type":"object","required":["TechCode","EmployeeName","TotalHoursWorked","TotalHoursBilled","Difference","Efficiency"],"title":"TechHoursResponse","examples":[{"Difference":4.75,"Efficiency":88.21,"EmployeeName":"John Doe","TechCode":"Tech001","TotalHoursBilled":35.5,"TotalHoursWorked":40.25}]},"TimeActivity":{"properties":{"id":{"type":"string","title":"Id"},"start":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Start"},"end":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"End"},"createdAt":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Createdat"},"jobId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jobid"},"shiftAttachments":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Shiftattachments"},"isAutoClockOut":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isautoclockout"}},"type":"object","required":["id"],"title":"TimeActivity","example":{"createdAt":1672530000,"end":{"timestamp":1672534800,"timezone":"UTC"},"id":"12345","isAutoClockOut":false,"jobId":"67890","shiftAttachments":[],"start":{"timestamp":1672531200,"timezone":"UTC"}}},"TimeLogCreate":{"properties":{"ShopId":{"type":"integer","title":"Shopid","description":"ID of the shop","default":1,"example":1},"TechCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Techcode","description":"Technician code","example":"006"},"ClockIn":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Clockin","description":"Clock-in timestamp","example":"2025-01-14T08:00:00"},"ClockOut":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Clockout","description":"Clock-out timestamp","example":"2025-01-14T17:00:00"},"ClockInComment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clockincomment","description":"Comment for clock-in","example":"Started early shift"},"ClockOutComment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clockoutcomment","description":"Comment for clock-out","example":"Completed tasks"}},"type":"object","title":"TimeLogCreate","example":{"ClockIn":"2025-01-14T08:00:00","ClockInComment":"Started early shift","ClockOut":"2025-01-14T17:00:00","ClockOutComment":"Completed tasks","ShopId":1,"TechCode":"006"}},"TimeLogCreateResponse":{"properties":{"message":{"type":"string","title":"Message","description":"Response message","example":"Timelog created successfully"},"TimeLogId":{"type":"integer","title":"Timelogid","description":"ID of the created timelog","example":123},"TechCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Techcode","description":"Technician code","example":"006"},"ClockIn":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Clockin","description":"Clock-in timestamp","example":"2025-01-14T08:00:00"}},"type":"object","required":["message","TimeLogId"],"title":"TimeLogCreateResponse","example":{"ClockIn":"2025-01-14T08:00:00","TechCode":"006","TimeLogId":123,"message":"Timelog created successfully"}},"TimeLogPayload":{"properties":{"requestId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requestid"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"activityType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activitytype"},"evnetTimestamp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evnettimestamp"},"eventType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eventtype"},"userId":{"type":"integer","title":"Userid"},"timeClockId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeclockid"},"timeActivity":{"$ref":"#/components/schemas/TimeActivity"}},"type":"object","required":["userId","timeActivity"],"title":"TimeLogPayload","example":{"activityType":"clock-in","company":"Example Corp","eventTimestamp":1672531200,"eventType":"clock","requestId":"abc123","timeActivity":{"createdAt":1672530000,"end":{"timestamp":1672534800,"timezone":"UTC"},"id":"12345","isAutoClockOut":false,"jobId":"67890","shiftAttachments":[],"start":{"timestamp":1672531200,"timezone":"UTC"}},"timeClockId":456,"userId":789}},"TimeLogResponse":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"TimeLogId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timelogid"},"ActualHours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Actualhours"},"EmployeeName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Employeename"},"deleted_TimeLogId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deleted Timelogid"}},"type":"object","required":["status","message"],"title":"TimeLogResponse","example":{"ActualHours":8.0,"EmployeeName":"John Doe","TimeLogId":123,"message":"Time log operation completed successfully","status":"success"}},"TimeLogSumResponse":{"properties":{"TechCode":{"type":"string","title":"Techcode","description":"Technician code","example":"006"},"TotalHours":{"type":"number","title":"Totalhours","description":"Total actual hours","example":12.5},"date_range_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Range Start","description":"Start of the date range","example":"2025-01-01T00:00:00Z"},"date_range_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Range End","description":"End of the date range","example":"2025-01-14T23:59:59Z"}},"type":"object","required":["TechCode","TotalHours"],"title":"TimeLogSumResponse","example":{"TechCode":"006","TotalHours":12.5,"date_range_end":"2025-01-14T23:59:59Z","date_range_start":"2025-01-01T00:00:00Z"}},"TimeLogUpdate":{"properties":{"TimeLogId":{"type":"integer","title":"Timelogid","description":"ID of the timelog to update","example":42},"ClockIn":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Clockin","description":"Updated clock-in timestamp","example":"2025-01-14T08:00:00"},"ClockOut":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Clockout","description":"Updated clock-out timestamp","example":"2025-01-14T17:00:00"},"ClockInComment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clockincomment","description":"Updated comment for clock-in","example":"Adjusted for meeting"},"ClockOutComment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clockoutcomment","description":"Updated comment for clock-out","example":"Finished early"}},"type":"object","required":["TimeLogId"],"title":"TimeLogUpdate","example":{"ClockIn":"2025-01-14T08:00:00","ClockInComment":"Adjusted for meeting","ClockOut":"2025-01-14T17:00:00","ClockOutComment":"Finished early","TimeLogId":42}},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VehYearMakeModel":{"properties":{"Year":{"type":"integer","title":"Year","description":"The year of the vehicle","example":2020},"Make":{"type":"string","title":"Make","description":"The make of the vehicle","example":"Toyota"},"Model":{"type":"string","title":"Model","description":"The model of the vehicle","example":"Camry"}},"type":"object","required":["Year","Make","Model"],"title":"VehYearMakeModel"},"VehicleResponse":{"properties":{"VehicleId":{"type":"integer","title":"Vehicleid"},"VehicleName":{"type":"string","title":"Vehiclename"},"Year":{"type":"integer","title":"Year"},"Make":{"type":"string","title":"Make"},"Model":{"type":"string","title":"Model"}},"type":"object","required":["VehicleId","VehicleName","Year","Make","Model"],"title":"VehicleResponse","examples":[{"Make":"Toyota","Model":"Corolla","VehicleId":1,"VehicleName":"Toyota Corolla","Year":2019},{"Make":"Honda","Model":"Civic","VehicleId":2,"VehicleName":"Honda Civic","Year":2020}]},"VerifyOTP":{"properties":{"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"account_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"},"otp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Otp"}},"type":"object","title":"VerifyOTP"},"WoLineItemsSchema":{"properties":{"WorkOrderId":{"type":"integer","title":"Workorderid","description":"ID of the work order","example":123},"ParentId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parentid","description":"Parent ID of the item","example":100},"ItemId":{"type":"integer","title":"Itemid","description":"ID of the item","example":456},"ItemCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Itemcode","description":"Code of the item","example":"ITEM001"},"DisplayItem":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayitem","description":"Display name of the item","example":"Brake Pad Replacement"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the item","example":"Replacing brake pads on all wheels"},"Note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","description":"Additional notes for the item","example":"Ensure proper torque specifications are followed"},"ItemType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Itemtype","description":"Type of the item","example":"Service"},"Tech":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tech","description":"Technician assigned to the item","example":"JohnDoe"},"ActualHrs":{"type":"number","title":"Actualhrs","description":"Actual hours worked","example":2.5},"Billedhrs":{"type":"number","title":"Billedhrs","description":"Billed hours for the item","example":3.0},"Qty":{"type":"number","title":"Qty","description":"Quantity of the item","example":1},"Cost":{"type":"number","title":"Cost","description":"Cost of the item","example":50.0},"SalePrice":{"type":"number","title":"Saleprice","description":"Sale price of the item","example":120.0},"TaxAmount":{"type":"number","title":"Taxamount","description":"Tax amount on the item","example":7.2},"Total":{"type":"number","title":"Total","description":"Total amount for the item","example":127.2},"ModifiedDate":{"type":"string","format":"date-time","title":"Modifieddate","description":"Last modified date","example":"2025-01-19T12:00:00"},"AddedDate":{"type":"string","format":"date-time","title":"Addeddate","description":"Date the item was added","example":"2025-01-19T08:00:00"}},"type":"object","required":["WorkOrderId","ItemId","ActualHrs","Billedhrs","Qty","Cost","SalePrice","TaxAmount","Total","ModifiedDate","AddedDate"],"title":"WoLineItemsSchema","example":{"ActualHrs":2.5,"AddedDate":"2025-01-19T08:00:00","Billedhrs":3.0,"Cost":50.0,"Description":"Replacing brake pads on all wheels.","DisplayItem":"Brake Pad Replacement","ItemCode":"ITEM001","ItemId":456,"ItemType":"Service","ModifiedDate":"2025-01-19T12:00:00","Note":"Ensure proper torque specifications are followed.","Qty":1,"SalePrice":120.0,"TaxAmount":7.2,"Tech":"JohnDoe","Total":127.2,"WorkOrderId":123}},"WorkOrderSchema":{"properties":{"WorkOrderId":{"type":"integer","title":"Workorderid","description":"ID of the work order","example":123},"WoNumber":{"type":"integer","title":"Wonumber","description":"Work order number","example":101},"ShopId":{"type":"integer","title":"Shopid","description":"ID of the shop","default":1,"example":1},"Status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Status of the work order","example":"In Progress"},"CustomerId":{"type":"integer","title":"Customerid","description":"ID of the customer","example":456},"VehicleId":{"type":"integer","title":"Vehicleid","description":"ID of the vehicle","example":789},"CreatedOn":{"type":"string","format":"date-time","title":"Createdon","description":"Creation timestamp","example":"2025-01-19T08:00:00"},"CompletedOn":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completedon","description":"Completion timestamp","example":"2025-01-19T17:00:00"},"InvoicedOn":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Invoicedon","description":"Invoicing timestamp","example":"2025-01-19T18:00:00"},"Tech":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tech","description":"Assigned technician","example":"JohnDoe"},"SubStatus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Substatus","description":"Sub-status of the work order","example":"Awaiting Parts"},"Paid":{"type":"boolean","title":"Paid","description":"Payment status","example":false},"PhoneNbr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phonenbr","description":"Customer phone number","example":"555-1234"},"LineItems":{"items":{"$ref":"#/components/schemas/WoLineItemsSchema"},"type":"array","title":"Lineitems"}},"type":"object","required":["WorkOrderId","WoNumber","CustomerId","VehicleId","CreatedOn","Paid"],"title":"WorkOrderSchema","example":{"CreatedOn":"2025-01-19T08:00:00","CustomerId":456,"LineItems":[{"ActualHrs":2.5,"AddedDate":"2025-01-19T08:00:00","Billedhrs":3.0,"Cost":50.0,"Description":"Replacing brake pads on all wheels.","DisplayItem":"Brake Pad Replacement","ItemCode":"ITEM001","ItemId":456,"ItemType":"Service","ModifiedDate":"2025-01-19T12:00:00","Note":"Ensure proper torque specifications are followed.","Qty":1,"SalePrice":120.0,"TaxAmount":7.2,"Tech":"JohnDoe","Total":127.2,"WorkOrderId":123}],"Paid":false,"PhoneNbr":"555-1234","ShopId":1,"Status":"In Progress","SubStatus":"Awaiting Parts","Tech":"JohnDoe","VehicleId":789,"WoNumber":101,"WorkOrderId":123}}}}}