{"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":["Time Logs"],"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":["Time Logs"],"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":["Time Logs"],"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":["Time Logs"],"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":["Time Logs"],"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":["Time Logs"],"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"}}}}}}},"/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":["Ring Central"],"summary":"Process Ringcentral","description":"Endpoint to trigger the task manually.","operationId":"process_ringcentral_process_ringcentral_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/CustomerData/customer-vehicles/by-phone":{"get":{"tags":["Customer Data"],"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":["Customer Data"],"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"}}}}}}},"/custom/vehicles/{vehicle_id}":{"delete":{"tags":["Custom Tracs Endpoints"],"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":{"tags":["Custom Tracs Endpoints"],"summary":"Get Profit Details","description":"1) Fetch line item data for the given WO: \n   (TabDesc, ItemType, SUM(BilledHrs), SUM(Total) as revenue, SUM(TotalCost) as db_cost).\n2) Compute inflated labor cost using the group efficiency and blended tech pay rate.\n3) Recompute labor profit percentage with the new cost; keep original cost for other item types.\n4) Return the results in a structure that shows:\n   - For each TabDesc, itemType -> profitPercentage\n   - For each TabDesc, itemType -> cost (inflated for labor, DB cost for others)\n   - For each TabDesc, itemType -> revenue (newly added)\n   \nIf testMode is True, the search date range for the efficiency calculation will be fixed to December 2024.","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":"testMode","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Testmode"}}],"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":{"tags":["Custom Tracs Endpoints"],"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"}}}}}}},"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":{"tags":["Google Drive Upload"],"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":["Drop Off App"],"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":["Tracs Api","Vehicles"],"summary":"Get Vehicle","description":"Retrieve a vehicle by its ID.","operationId":"get_vehicle_by_id_v1","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":["Tracs Api","Vehicles"],"summary":"Update Vehicle","description":"Update an existing vehicle.","operationId":"update_vehicle_v1","parameters":[{"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"}}}}}}},"/tracsApi/vehicles/{vehicleId}":{"get":{"tags":["Tracs Api","Vehicles"],"summary":"Get Vehicle Tracs","description":"Retrieve vehicle data from the TRACS API.","operationId":"get_vehicle_tracs","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":["Tracs Api","Vehicles"],"summary":"Add Vehicle","description":"Add a new vehicle.","operationId":"add_vehicle_v1","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":["Tracs Api","Customers"],"summary":"Get Customer","description":"Retrieve a customer by its ID.","operationId":"get_customer_by_id_v1","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":["Tracs Api","Customers"],"summary":"Update Customer","description":"Update an existing customer.","operationId":"update_customer_v1","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","TRACS API"],"summary":"Get Customer Tracs","description":"Retrieve customer data from the TRACS API.","operationId":"get_customer_tracs","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":["Tracs Api","Customers"],"summary":"Add Customer","description":"Add a new customer.","operationId":"add_customer_v1","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"}}}}}}},"/emails/{email_id}":{"delete":{"tags":["Tracs Api","Contacts"],"summary":"Delete Email","description":"Delete an email by its ID.","operationId":"delete_email_v1","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":["Tracs Api","Contacts"],"summary":"Update Email","description":"Update an email by its ID.","operationId":"update_email_v1","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":["Tracs Api","Contacts"],"summary":"Create Email","description":"Create a new email.","operationId":"create_email_v1","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":["Tracs Api","Contacts"],"summary":"Delete Customer Phone","description":"Delete a customer phone by its ID.","operationId":"delete_customer_phone_v1","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":["Tracs Api","Contacts"],"summary":"Update Customer Phone","description":"Update a customer phone by its ID.","operationId":"update_customer_phone_v1","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":["Tracs Api","Contacts"],"summary":"Add Customer Phone","description":"Add a new customer phone.","operationId":"add_customer_phone_v1","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":["Tracs Api","Payments"],"summary":"Add Payment","description":"Record a payment for a customer.","operationId":"add_payment_v1","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":["Tracs Api","Appointments"],"summary":"Get Appointment Hours","description":"Retrieve appointment hours for a shop.","operationId":"get_appointment_hours_v1","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","TRACS API"],"summary":"Get Customer Appointments","description":"Retrieve appointments for a customer from the TRACS API.","operationId":"get_customer_appointments_tracs_unique","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":["Tracs Api","Appointments"],"summary":"Update Appointment","description":"Update an appointment by its ID.","operationId":"update_appointment_v1","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":["Tracs Api","Appointments"],"summary":"Create Appointment","description":"Create a new appointment.","operationId":"create_appointment_v1","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","TRACS API"],"summary":"Get Shops","description":"Retrieve all shops from the TRACS API.","operationId":"get_shops_tracs","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tracsApi/tracsPing":{"get":{"tags":["Tracs Api","TRACS API"],"summary":"Get Tracs Ping","description":"Ping the TRACS API.","operationId":"get_tracs_ping_tracs","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tracsApi/shops/vendors":{"get":{"tags":["Tracs Api","TRACS API"],"summary":"Get Shops Vendors","description":"Retrieve shop vendors from the TRACS API.","operationId":"get_shops_vendors_tracs","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tracsApi/items/{itemId}":{"get":{"tags":["Tracs Api","TRACS API"],"summary":"Get Item","description":"Retrieve an item by ID from the TRACS API.","operationId":"get_item_tracs","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","TRACS API"],"summary":"Get Shop","description":"Retrieve a shop by ID from the TRACS API.","operationId":"get_shop_tracs","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/employees":{"get":{"tags":["Tracs Api","TRACS API"],"summary":"Get Shops Employees","description":"Retrieve employees across all shops from the TRACS API.","operationId":"get_shops_employees_tracs","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tracsApi/shops/catagories":{"get":{"tags":["Tracs Api","TRACS API"],"summary":"Get Shops Catagories","description":"Retrieve shop categories from the TRACS API.","operationId":"get_shops_categories_tracs","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tracsApi/shops/paymentTypes":{"get":{"tags":["Tracs Api","TRACS API"],"summary":"Get Shops Payment Types","description":"Retrieve shop payment types from the TRACS API.","operationId":"get_shops_payment_types_tracs","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tracsApi/vendors/{vendorId}":{"get":{"tags":["Tracs Api","TRACS API"],"summary":"Get Vendor","description":"Retrieve a vendor by ID from the TRACS API.","operationId":"get_vendor_tracs","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","TRACS API"],"summary":"Get Shops Profit Centers","description":"Retrieve shop profit centers from the TRACS API.","operationId":"get_shops_profit_centers_tracs","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tracsApi/postedArTransactions":{"get":{"tags":["Tracs Api","TRACS API"],"summary":"Get Posted Ar Transactions","description":"Retrieve posted AR transactions from the TRACS API.","operationId":"get_posted_ar_transactions_tracs","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tracsApi/shops/{shopId}/vendors":{"get":{"tags":["Tracs Api","TRACS API"],"summary":"Get Shop Vendors","description":"Retrieve vendors for a specific shop from the TRACS API.","operationId":"get_shop_vendors_tracs","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","TRACS API"],"summary":"Get Unposted Ar Transactions","description":"Retrieve unposted AR transactions from the TRACS API.","operationId":"get_unposted_ar_transactions_tracs","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tracsApi/shops/{shopId}/settings":{"get":{"tags":["Tracs Api","TRACS API"],"summary":"Get Shop Settings","description":"Retrieve settings for a specific shop from the TRACS API.","operationId":"get_shop_settings_tracs","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","TRACS API"],"summary":"Get Shop Vehicles","description":"Retrieve vehicles for a specific shop from the TRACS API.","operationId":"get_shop_vehicles_tracs","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","TRACS API"],"summary":"Get Customers By Email","description":"Retrieve customers by email from the TRACS API.","operationId":"get_customers_by_email_tracs","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","TRACS API"],"summary":"Get Shop Customers","description":"Retrieve customers for a specific shop from the TRACS API.","operationId":"get_shop_customers_tracs","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","TRACS API"],"summary":"Get Shop Employees","description":"Retrieve employees for a specific shop from the TRACS API.","operationId":"get_shop_employees_tracs","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","TRACS API"],"summary":"Get Work Order","description":"Retrieve a work order by its ID from the TRACS API.","operationId":"get_work_order_tracs","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","TRACS API"],"summary":"Get Account Receivable","description":"Retrieve an account receivable by its ID from the TRACS API.","operationId":"get_account_receivable_tracs","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","TRACS API"],"summary":"Get Shop Catagories","description":"Retrieve categories for a specific shop from the TRACS API.","operationId":"get_shop_categories_tracs","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","TRACS API"],"summary":"Get Shop Tax Classes","description":"Retrieve tax classes for a specific shop from the TRACS API.","operationId":"get_shop_tax_classes_tracs","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","TRACS API"],"summary":"Get Ar Transaction","description":"Retrieve an AR transaction by its ID from the TRACS API.","operationId":"get_ar_transaction_tracs","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","TRACS API"],"summary":"Get Shop Payment Types","description":"Retrieve payment types for a specific shop from the TRACS API.","operationId":"get_shop_payment_types_tracs","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","TRACS API"],"summary":"Get Shop Profit Centers","description":"Retrieve profit centers for a specific shop from the TRACS API.","operationId":"get_shop_profit_centers_tracs","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","TRACS API"],"summary":"Get Shop Ar Transactions","description":"Retrieve AR transactions for a specific shop from the TRACS API.","operationId":"get_shop_ar_transactions_tracs","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","TRACS API"],"summary":"Get Purchase Order","description":"Retrieve a purchase order by its ID from the TRACS API.","operationId":"get_purchase_order_tracs","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","TRACS API"],"summary":"Get Permissions","description":"Retrieve permissions for a given group from the TRACS API.","operationId":"get_permissions_tracs","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","TRACS API"],"summary":"Get Employee By Id","description":"Retrieve an employee by their ID from the TRACS API.","operationId":"get_employee_by_id_tracs","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","TRACS API"],"summary":"Get Shop Account Receivables","description":"Retrieve account receivables for a specific shop from the TRACS API.","operationId":"get_shop_account_receivables_tracs","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","TRACS API"],"summary":"Get Vehicle Appointments","description":"Retrieve appointments for a specific vehicle from the TRACS API.","operationId":"get_vehicle_appointments_tracs","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","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_tracs","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","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_tracs","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","TRACS API"],"summary":"Get Customers By Phone Number","description":"Retrieve customers by phone number from the TRACS API.","operationId":"get_customers_by_phone_number_tracs","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","TRACS API"],"summary":"Get Employee By Code","description":"Retrieve an employee by code from the TRACS API.","operationId":"get_employee_by_code_tracs","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","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_tracs","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","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_tracs","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","TRACS API"],"summary":"Get Shop Purchase Orders","description":"Retrieve purchase orders for a shop from the TRACS API.","operationId":"get_shop_purchase_orders_tracs","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","TRACS API"],"summary":"Get Vehicle Recommended Services","description":"Retrieve recommended services for a vehicle from the TRACS API.","operationId":"get_vehicle_recommended_services_tracs","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","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_tracs","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","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_tracs","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","TRACS API"],"summary":"Get Customer Recommended Services","description":"Retrieve recommended services for a customer from the TRACS API.","operationId":"get_customer_recommended_services_tracs","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","TRACS API"],"summary":"Get Purchase Order Line Items","description":"Retrieve purchase order line items from the TRACS API.","operationId":"get_purchase_order_line_items_tracs","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","TRACS API"],"summary":"Get Vehicles Last Modified","description":"Fetch vehicle records last modified within the specified date range.","operationId":"get_vehicles_last_modified_tracs","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","TRACS API"],"summary":"Get Customers Last Modified","description":"Fetch customer records last modified within the specified date range.","operationId":"get_customers_last_modified_tracs","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","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_tracs","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","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_tracs","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","TRACS API"],"summary":"Get Shop Received Pos","description":"Retrieve received purchase orders for a shop within a date range.","operationId":"get_shop_received_pos_tracs","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","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_tracs","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","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_tracs","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","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_tracs","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","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_tracs","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","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_tracs","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","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_tracs","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","TRACS API"],"summary":"Get Ar Transaction Customers","description":"Retrieve AR transaction customers for a shop within a date range.","operationId":"get_ar_transaction_customers_tracs","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","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_tracs","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","TRACS API"],"summary":"Mark Workorder Posted","description":"Mark a work order as posted via the TRACS API.","operationId":"mark_workorder_posted_tracs","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","TRACS API"],"summary":"Mark Workorder Unposted","description":"Mark a work order as unposted via the TRACS API.","operationId":"mark_workorder_unposted_tracs","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","TRACS API"],"summary":"Get Appointments Last Modified","description":"Retrieve appointments last modified for a shop within a date range.","operationId":"get_appointments_last_modified_tracs","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","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_tracs","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","TRACS API"],"summary":"Mark Ar Transaction Posted","description":"Mark an AR transaction as posted via the TRACS API.","operationId":"mark_ar_transaction_posted_tracs","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","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_tracs","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","TRACS API"],"summary":"Mark Ar Transaction Unposted","description":"Mark an AR transaction as unposted via the TRACS API.","operationId":"mark_ar_transaction_unposted_tracs","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","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_tracs","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","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_tracs","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","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_tracs","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","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_tracs","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","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_tracs","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"}}}}}}},"/vehicle/updateable-fields":{"get":{"tags":["Tracs Api","Work Orders & Line Items"],"summary":"Get Vehicle Updateable Fields","description":"Retrieve vehicle updateable fields (TRACS API).","operationId":"get_vehicle_updateable_fields_tracs","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/lineItem/updateable-fields":{"get":{"tags":["Tracs Api","Work Orders & Line Items"],"summary":"Get Lineitem Updateable Fields","description":"Retrieve line item updateable fields (TRACS API).","operationId":"get_lineitem_updateable_fields_tracs","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/customer-contact":{"post":{"tags":["Tracs Api","Work Orders & Line Items"],"summary":"Update Customer Contact","description":"Update customer contact information (TRACS API).","operationId":"update_customer_contact_tracs","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":["Tracs Api","Work Orders & Line Items"],"summary":"Add Workorder Items","description":"Add items to a work order (TRACS API).","operationId":"add_workorder_items_tracs","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":["Tracs Api","Work Orders & Line Items"],"summary":"Update Workorder Odometers","description":"Update work order odometers (TRACS API).","operationId":"update_workorder_odometers_tracs","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":["Tracs Api","Work Orders & Line Items"],"summary":"Update Workorder Line Items","description":"Update work order line items (TRACS API).","operationId":"update_workorder_line_items_tracs","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":["Tracs Api","Work Orders & Line Items"],"summary":"Update Workorder Vehicle","description":"Update work order vehicle information (TRACS API).","operationId":"update_workorder_vehicle_tracs","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":["Tracs Api","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_tracs","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":["Tracs Api","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_tracs","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":["Tracs Api","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_v1","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":["Tracs Api","Estimates"],"summary":"Get Estimate Locks","description":"Retrieve all estimate locks across shops.","operationId":"get_estimate_locks_v1","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/estimates/{woNumber}/{shopId}":{"get":{"tags":["Tracs Api","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_v1","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":["Tracs Api","Estimates"],"summary":"Get Sub Estimate By Id","description":"Retrieve a sub-estimate by its unique ID.","operationId":"get_sub_estimate_by_id_v1","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":["Tracs Api","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_v1","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":["Tracs Api","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_v1","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":["Tracs Api","Estimates"],"summary":"Update Estimate","description":"Update an existing estimate.","operationId":"update_estimate_v1","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":["Tracs Api","Estimates"],"summary":"Convert Estimate To Repair Order","description":"Convert an estimate to a repair order.","operationId":"convert_estimate_to_repair_order_v1","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":["Tracs Api","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_v1","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":["Tracs Api","Estimates"],"summary":"Delete Line Item From Estimate","description":"Delete a line item from an estimate.","operationId":"delete_line_item_from_estimate_v1","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":["Tracs Api","Estimates"],"summary":"Update Line Item","description":"Update a line item within an estimate.","operationId":"update_line_item_v1","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":["Tracs Api","Estimates"],"summary":"Create Estimate","description":"Create a new estimate (work order with status 'Estimate').","operationId":"create_estimate_v1","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":["Tracs Api","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_v1","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":["Tracs Api","Estimates"],"summary":"Add Sub Estimate","description":"Add a new sub-estimate to an existing estimate.","operationId":"add_sub_estimate_v1","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":["Tracs Api","Estimates"],"summary":"Insert Estimate Lock","description":"Insert a document lock for an estimate.","operationId":"insert_estimate_lock_v1","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":["Tracs Api","Estimates"],"summary":"Remove Estimate Lock","description":"Remove a document lock from an estimate.","operationId":"remove_estimate_lock_v1","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"}}}}}}},"/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":{"tags":["Customer Portal Endpoints"],"summary":"Lookup By Phone","description":"Fetches active customer records by phone number after normalizing to a 10-digit format.","operationId":"lookup_by_phone_api_lookup_by_phone_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/lookup_by_phone_and_name":{"post":{"tags":["Customer Portal Endpoints"],"summary":"Lookup By Phone And Name","description":"Query for active customers by phone number, then filter by first name (case-insensitive).\nIf multiple matches are found, select the one with the lowest CustomerId.\nGenerate an OTP, store it, send it, and return the chosen account_id.","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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/verify_otp":{"post":{"tags":["Customer Portal Endpoints"],"summary":"Verify Otp","operationId":"verify_otp_api_verify_otp_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OTPVerificationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/{account_id}/info":{"get":{"tags":["Customer Portal Endpoints"],"summary":"Get Account Info","description":"Retrieve complete account information by calling internal endpoints.\n1. Retrieve customer details via get_customer_tracs.\n2. For each VehicleId in the customer data, retrieve vehicle details via get_vehicle_tracs.","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":{"tags":["Customer Portal Endpoints"],"summary":"Get Vehicle Details","description":"Retrieve detailed vehicle history and recall data.\n- Returns dummy service history data.\n- If the vehicle record contains Year, Make, and Model, calls the NHTSA API to retrieve recall data.","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":["Google Drive Upload"],"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":["Google Drive Upload"],"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"}}}}}}},"/subscribe":{"post":{"tags":["Mail Chimp"],"summary":"Subscribe User","description":"Add a new subscriber to a Mailchimp list.","operationId":"subscribe_user_subscribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Subscriber"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/send-email":{"post":{"tags":["Gmail Contact Us"],"summary":"Send Email","description":"Sends two emails:\n1) Primary email to 'Office@brandonstire.com' with user data and optional attachment\n2) A \"thank you\" email back to the user, picking the template from THANK_YOU_TEMPLATES\nbased on the 'topic' field.","operationId":"send_email_send_email_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_send_email_send_email_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/autonettv/posts":{"get":{"tags":["Auto Net TV"],"summary":"Get Posts","operationId":"get_posts_autonettv_posts_get","parameters":[{"name":"post_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Post Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Limit"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"}},{"name":"offset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offset"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"category_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Category Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/autonettv/categories":{"get":{"tags":["Auto Net TV"],"summary":"Get Categories","operationId":"get_categories_autonettv_categories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/autonettv/archives":{"get":{"tags":["Auto Net TV"],"summary":"Get Archives","operationId":"get_archives_autonettv_archives_get","parameters":[{"name":"interval","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Valid values: 'month' or 'year'.","default":"month","title":"Interval"},"description":"Valid values: 'month' or 'year'."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/autonettv/posts/{post_id}":{"get":{"tags":["Auto Net TV"],"summary":"Get Post By Id","operationId":"get_post_by_id_autonettv_posts__post_id__get","parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"integer","title":"Post Id"}}],"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_send_email_send_email_post":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"topic":{"type":"string","title":"Topic"},"subject":{"type":"string","title":"Subject"},"msg":{"type":"string","title":"Msg"},"attachment":{"type":"string","format":"binary","title":"Attachment"}},"type":"object","required":["name","email","topic","subject","msg"],"title":"Body_send_email_send_email_post"},"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"},"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"},"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"},"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"},"OTPVerificationRequest":{"properties":{"account_id":{"type":"integer","title":"Account Id"},"otp":{"type":"string","title":"Otp"}},"type":"object","required":["account_id","otp"],"title":"OTPVerificationRequest"},"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"},"Subscriber":{"properties":{"email":{"type":"string","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"}},"type":"object","required":["email"],"title":"Subscriber"},"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}]},"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}}}}}