{"openapi":"3.0.0","servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/FOTEEV_1/alpha0/1.1"},{"description":"alpha API","url":"http://api.zyrafa.top"},{"description":"MapBox API","url":"https://api.mapbox.com"}],"info":{"description":"alpha0 API","version":"1","title":"alpha0 API","contact":{"email":"foteev@gmail.com"},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"tags":[{"name":"admins","description":"Secured Admin-only calls"},{"name":"developers","description":"Operations available to regular developers"},{"name":"company_and_finances","description":"Operations about company_and_finances"},{"name":"users","description":"Operations about users"},{"name":"freights_and_orders","description":"Operations about freights_and_orders"},{"name":"vehicles_and_assets","description":"Operations about vehicles_and_assets"},{"name":"geodata","description":"Operations about geodata"},{"name":"messages","description":"Operations about messages"},{"name":"docs","description":"Operations about docs"}],"paths":{"/directions/v5/mapbox/driving-traffic/16.392357,48.197419;16.403512,48.191112":{"get":{"tags":["geodata"],"description":"Auto generated using Swagger Inspector","parameters":[{"name":"access_token","in":"query","schema":{"type":"string"},"example":"pk.eyJ1IjoidmlkcGFsY2FyIiwiYSI6ImNsM3Nsa2dkMjAwM3YzY3FxdG8yY2RqM3UifQ.DuzWPpqZAwiJ0gOjQ96VMg"},{"name":"overview","in":"query","schema":{"type":"string"},"example":"full"},{"name":"geometries","in":"query","schema":{"type":"string"},"example":"geojson"},{"name":"alternatives","in":"query","schema":{"type":"boolean"},"example":"true"},{"name":"language","in":"query","schema":{"type":"string"},"example":"en"},{"name":"steps","in":"query","schema":{"type":"boolean"},"example":"true"}],"responses":{"200":{"description":"Auto generated using Swagger Inspector"}},"servers":[{"url":"https://api.mapbox.com"}]},"servers":[{"url":"https://api.mapbox.com"}]},"/company":{"post":{"tags":["company_and_finances"],"summary":"Create company","operationId":"createCompany","responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Company"}}}},"400":{"description":"Invalid Company"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}}},"description":"vehicle placed for purchasing","required":true}},"get":{"tags":["company_and_finances"],"summary":"Get all companies","operationId":"getcompanies","responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Company"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Company"}}}}}}}},"/company/{companyId}":{"get":{"tags":["company_and_finances"],"summary":"Find company by ID","description":"Find company by ID","operationId":"getCompanyById","parameters":[{"name":"companyId","in":"path","description":"ID of company that needs to be fetched","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Company"}}}},"400":{"description":"Invalid ID supplied"},"404":{"description":"Company not found"}}},"post":{"tags":["company_and_finances"],"summary":"Updates a company in the store with form data","operationId":"updateCompany","parameters":[{"name":"companyId","in":"path","description":"ID of company that needs to be updated","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Company"}}}}}},"delete":{"tags":["company_and_finances"],"summary":"Delete company by ID","description":"For valid response try integer IDs with positive integer value.\\ \\ Negative or non-integer values will generate API errors","operationId":"deleteCompany","parameters":[{"name":"companyId","in":"path","description":"ID of the company that needs to be deleted","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"invalid ID supplied"},"404":{"description":"company not found"}}}},"/payment_data":{"post":{"tags":["company_and_finances"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentData"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PaymentData"}}}},"400":{"description":"Invalid"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentData"}}},"description":"placed","required":true}},"get":{"tags":["company_and_finances"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PaymentData"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PaymentData"}}}}}}}},"/payment_data/{id}":{"get":{"tags":["company_and_finances"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentData"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PaymentData"}}}},"400":{"description":"invalid ID supplied"},"404":{"description":"not found"}}},"post":{"tags":["company_and_finances"],"summary":"Updates in the store with form data","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentData"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PaymentData"}}}}}},"delete":{"tags":["company_and_finances"],"summary":"Delete by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"not found"}}}},"/group":{"post":{"tags":["company_and_finances"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Group"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Group"}}}},"400":{"description":"Invalid"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Group"}}},"description":"placed","required":true}},"get":{"tags":["company_and_finances"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Group"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Group"}}}}}}}},"/group/{id}":{"get":{"tags":["company_and_finances"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Group"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Group"}}}},"400":{"description":"invalid ID supplied"},"404":{"description":"not found"}}},"post":{"tags":["company_and_finances"],"summary":"Updates in the store with form data","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Group"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Group"}}}}}},"delete":{"tags":["company_and_finances"],"summary":"Delete by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"not found"}}}},"/vehicle":{"post":{"tags":["vehicles_and_assets"],"summary":"Place an vehicle","operationId":"placeVehicle","responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Vehicle"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Vehicle"}}}},"400":{"description":"Invalid Vehicle"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Vehicle"}}},"description":"vehicle placed for purchasing","required":true}},"get":{"tags":["vehicles_and_assets"],"summary":"Get all vehicles","operationId":"getVehicles","responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Vehicle"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Vehicle"}}}}}}}},"/vehicle/{vehicleId}":{"get":{"tags":["vehicles_and_assets"],"summary":"Find vehicle by ID","operationId":"getVehicleById","parameters":[{"name":"vehicleId","in":"path","description":"ID of vehicle that needs to be fetched","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Vehicle"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Vehicle"}}}},"400":{"description":"Invalid ID supplied"},"404":{"description":"Vehicle not found"}}},"post":{"tags":["vehicles_and_assets"],"summary":"Updates a vehicle in the store with form data","operationId":"updateVehicle","parameters":[{"name":"vehicleId","in":"path","description":"ID of vehicle that needs to be updated","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Vehicle"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Vehicle"}}}}}},"delete":{"tags":["vehicles_and_assets"],"summary":"Delete vehicle by ID","description":"For valid response try integer IDs with positive integer value.\\ \\ Negative or non-integer values will generate API errors","operationId":"deleteVehicle","parameters":[{"name":"vehicleId","in":"path","description":"ID of the vehicle that needs to be deleted","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"Vehicle not found"}}}},"/asset":{"post":{"tags":["vehicles_and_assets"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Asset"}}}},"400":{"description":"Invalid"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}},"description":"placed","required":true}},"get":{"tags":["vehicles_and_assets"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}}}}}}}},"/asset/{id}":{"get":{"tags":["vehicles_and_assets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Asset"}}}},"400":{"description":"invalid ID supplied"},"404":{"description":"not found"}}},"post":{"tags":["vehicles_and_assets"],"summary":"Updates in the store with form data","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Asset"}}}}}},"delete":{"tags":["vehicles_and_assets"],"summary":"Delete by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"not found"}}}},"/cargo_data":{"post":{"tags":["vehicles_and_assets"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoData"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CargoData"}}}},"400":{"description":"Invalid"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoData"}}},"description":"placed","required":true}},"get":{"tags":["vehicles_and_assets"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CargoData"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CargoData"}}}}}}}},"/cargo_data/{id}":{"get":{"tags":["vehicles_and_assets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoData"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CargoData"}}}},"400":{"description":"invalid ID supplied"},"404":{"description":"not found"}}},"post":{"tags":["vehicles_and_assets"],"summary":"Updates in the store with form data","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoData"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CargoData"}}}}}},"delete":{"tags":["vehicles_and_assets"],"summary":"Delete by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"not found"}}}},"/vehicle_telemetry":{"post":{"tags":["vehicles_and_assets"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleTelemetry"}},"application/xml":{"schema":{"$ref":"#/components/schemas/VehicleTelemetry"}}}},"400":{"description":"Invalid"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleTelemetry"}}},"description":"placed","required":true}},"get":{"tags":["vehicles_and_assets"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VehicleTelemetry"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VehicleTelemetry"}}}}}}}},"/vehicle_telemetry/{id}":{"get":{"tags":["vehicles_and_assets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleTelemetry"}},"application/xml":{"schema":{"$ref":"#/components/schemas/VehicleTelemetry"}}}},"400":{"description":"invalid ID supplied"},"404":{"description":"not found"}}},"post":{"tags":["vehicles_and_assets"],"summary":"Updates in the store with form data","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleTelemetry"}},"application/xml":{"schema":{"$ref":"#/components/schemas/VehicleTelemetry"}}}}}},"delete":{"tags":["vehicles_and_assets"],"summary":"Delete by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"not found"}}}},"/vehicle_cycle":{"post":{"tags":["vehicles_and_assets"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleCycle"}},"application/xml":{"schema":{"$ref":"#/components/schemas/VehicleCycle"}}}},"400":{"description":"Invalid"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleCycle"}}},"description":"placed","required":true}},"get":{"tags":["vehicles_and_assets"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VehicleCycle"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VehicleCycle"}}}}}}}},"/vehicle_cycle/{id}":{"get":{"tags":["vehicles_and_assets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleCycle"}},"application/xml":{"schema":{"$ref":"#/components/schemas/VehicleCycle"}}}},"400":{"description":"invalid ID supplied"},"404":{"description":"not found"}}},"post":{"tags":["vehicles_and_assets"],"summary":"Updates in the store with form data","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleCycle"}},"application/xml":{"schema":{"$ref":"#/components/schemas/VehicleCycle"}}}}}},"delete":{"tags":["vehicles_and_assets"],"summary":"Delete by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"not found"}}}},"/vehicle_schedule":{"post":{"tags":["vehicles_and_assets"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleSchedule"}},"application/xml":{"schema":{"$ref":"#/components/schemas/VehicleSchedule"}}}},"400":{"description":"Invalid"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleSchedule"}}},"description":"placed","required":true}},"get":{"tags":["vehicles_and_assets"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VehicleSchedule"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VehicleSchedule"}}}}}}}},"/vehicle_schedule/{id}":{"get":{"tags":["vehicles_and_assets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleSchedule"}},"application/xml":{"schema":{"$ref":"#/components/schemas/VehicleSchedule"}}}},"400":{"description":"invalid ID supplied"},"404":{"description":"not found"}}},"post":{"tags":["vehicles_and_assets"],"summary":"Updates in the store with form data","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleSchedule"}},"application/xml":{"schema":{"$ref":"#/components/schemas/VehicleSchedule"}}}}}},"delete":{"tags":["vehicles_and_assets"],"summary":"Delete by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"not found"}}}},"/user":{"post":{"tags":["users"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}},"application/xml":{"schema":{"$ref":"#/components/schemas/User"}}}},"400":{"description":"Invalid"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":"placed","required":true}},"get":{"tags":["users"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/User"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/User"}}}}}}}},"/user/{id}":{"get":{"tags":["users"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}},"application/xml":{"schema":{"$ref":"#/components/schemas/User"}}}},"400":{"description":"invalid ID supplied"},"404":{"description":"not found"}}},"post":{"tags":["users"],"summary":"Updates in the store with form data","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}},"application/xml":{"schema":{"$ref":"#/components/schemas/User"}}}}}},"delete":{"tags":["users"],"summary":"Delete by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"not found"}}}},"/driver_performance":{"post":{"tags":["users"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverPerformance"}},"application/xml":{"schema":{"$ref":"#/components/schemas/DriverPerformance"}}}},"400":{"description":"Invalid"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverPerformance"}}},"description":"placed","required":true}},"get":{"tags":["users"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DriverPerformance"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DriverPerformance"}}}}}}}},"/driver_performance/{id}":{"get":{"tags":["users"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverPerformance"}},"application/xml":{"schema":{"$ref":"#/components/schemas/DriverPerformance"}}}},"400":{"description":"invalid ID supplied"},"404":{"description":"not found"}}},"post":{"tags":["users"],"summary":"Updates in the store with form data","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverPerformance"}},"application/xml":{"schema":{"$ref":"#/components/schemas/DriverPerformance"}}}}}},"delete":{"tags":["users"],"summary":"Delete by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"not found"}}}},"/fleet_user_performance":{"post":{"tags":["users"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetUserPerformance"}},"application/xml":{"schema":{"$ref":"#/components/schemas/FleetUserPerformance"}}}},"400":{"description":"Invalid"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetUserPerformance"}}},"description":"placed","required":true}},"get":{"tags":["users"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FleetUserPerformance"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FleetUserPerformance"}}}}}}}},"/fleet_user_performance/{id}":{"get":{"tags":["users"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetUserPerformance"}},"application/xml":{"schema":{"$ref":"#/components/schemas/FleetUserPerformance"}}}},"400":{"description":"invalid ID supplied"},"404":{"description":"not found"}}},"post":{"tags":["users"],"summary":"Updates in the store with form data","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetUserPerformance"}},"application/xml":{"schema":{"$ref":"#/components/schemas/FleetUserPerformance"}}}}}},"delete":{"tags":["users"],"summary":"Delete by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"not found"}}}},"/freight":{"post":{"tags":["freights_and_orders"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Freight"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Freight"}}}},"400":{"description":"Invalid"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Freight"}}},"description":"placed","required":true}},"get":{"tags":["freights_and_orders"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Freight"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Freight"}}}}}}}},"/freight/{id}":{"get":{"tags":["freights_and_orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Freight"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Freight"}}}},"400":{"description":"invalid ID supplied"},"404":{"description":"not found"}}},"post":{"tags":["freights_and_orders"],"summary":"Updates in the store with form data","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Freight"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Freight"}}}}}},"delete":{"tags":["freights_and_orders"],"summary":"Delete by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"not found"}}}},"/freight_requirements":{"post":{"tags":["freights_and_orders"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreightRequirements"}},"application/xml":{"schema":{"$ref":"#/components/schemas/FreightRequirements"}}}},"400":{"description":"Invalid"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreightRequirements"}}},"description":"placed","required":true}},"get":{"tags":["freights_and_orders"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreightRequirements"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreightRequirements"}}}}}}}},"/freight_requirements/{id}":{"get":{"tags":["freights_and_orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreightRequirements"}},"application/xml":{"schema":{"$ref":"#/components/schemas/FreightRequirements"}}}},"400":{"description":"invalid ID supplied"},"404":{"description":"not found"}}},"post":{"tags":["freights_and_orders"],"summary":"Updates in the store with form data","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreightRequirements"}},"application/xml":{"schema":{"$ref":"#/components/schemas/FreightRequirements"}}}}}},"delete":{"tags":["freights_and_orders"],"summary":"Delete by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"not found"}}}},"/load":{"post":{"tags":["freights_and_orders"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Load"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Load"}}}},"400":{"description":"Invalid"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Load"}}},"description":"placed","required":true}},"get":{"tags":["freights_and_orders"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Load"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Load"}}}}}}}},"/load/{id}":{"get":{"tags":["freights_and_orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Load"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Load"}}}},"400":{"description":"invalid ID supplied"},"404":{"description":"not found"}}},"post":{"tags":["freights_and_orders"],"summary":"Updates in the store with form data","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Load"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Load"}}}}}},"delete":{"tags":["freights_and_orders"],"summary":"Delete by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"not found"}}}},"/orders":{"post":{"tags":["freights_and_orders"],"summary":"Place an order","operationId":"placeOrder","responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"description":"Invalid Order"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}},"description":"order placed for purchasing","required":true}},"get":{"tags":["freights_and_orders"],"summary":"Get all orders","operationId":"getOrders","responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Order"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Order"}}}}}}}},"/orders/{orderId}":{"get":{"tags":["freights_and_orders"],"summary":"Find purchase order by ID","operationId":"getOrderById","parameters":[{"name":"orderId","in":"path","description":"ID of order that needs to be fetched","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"description":"Invalid ID supplied"},"404":{"description":"Order not found"}}},"post":{"tags":["freights_and_orders"],"summary":"Updates a order in the store with form data","operationId":"updateOrderWithForm","parameters":[{"name":"orderId","in":"path","description":"ID of order that needs to be updated","required":true,"schema":{"type":"integer"}}],"responses":{"405":{"description":"Invalid input"}},"requestBody":{"$ref":"#/components/requestBodies/Order"}},"delete":{"tags":["freights_and_orders"],"summary":"Delete purchase order by ID","description":"For valid response try integer IDs with positive integer value.\\ \\ Negative or non-integer values will generate API errors","operationId":"deleteOrder","parameters":[{"name":"orderId","in":"path","description":"ID of the order that needs to be deleted","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"Order not found"}}}},"/address":{"post":{"tags":["geodata"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Address"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Address"}}}},"400":{"description":"Invalid"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Address"}}},"description":"placed","required":true}},"get":{"tags":["geodata"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Address"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Address"}}}}}}}},"/address/{id}":{"get":{"tags":["geodata"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Address"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Address"}}}},"400":{"description":"invalid ID supplied"},"404":{"description":"not found"}}},"post":{"tags":["geodata"],"summary":"Updates in the store with form data","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Address"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Address"}}}}}},"delete":{"tags":["geodata"],"summary":"Delete by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"not found"}}}},"/coordinates":{"post":{"tags":["geodata"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Coordinates"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Coordinates"}}}},"400":{"description":"Invalid"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Coordinates"}}},"description":"placed","required":true}},"get":{"tags":["geodata"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Coordinates"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Coordinates"}}}}}}}},"/coordinates/{id}":{"get":{"tags":["geodata"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Coordinates"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Coordinates"}}}},"400":{"description":"invalid ID supplied"},"404":{"description":"not found"}}},"post":{"tags":["geodata"],"summary":"Updates in the store with form data","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Coordinates"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Coordinates"}}}}}},"delete":{"tags":["geodata"],"summary":"Delete by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"not found"}}}},"/spot":{"post":{"tags":["geodata"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Spot"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Spot"}}}},"400":{"description":"Invalid"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Spot"}}},"description":"placed","required":true}},"get":{"tags":["geodata"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Spot"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Spot"}}}}}}}},"/spot/{id}":{"get":{"tags":["geodata"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Spot"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Spot"}}}},"400":{"description":"invalid ID supplied"},"404":{"description":"not found"}}},"post":{"tags":["geodata"],"summary":"Updates in the store with form data","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Spot"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Spot"}}}}}},"delete":{"tags":["geodata"],"summary":"Delete by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"not found"}}}},"/route":{"post":{"tags":["geodata"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Route"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Route"}}}},"400":{"description":"Invalid"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Route"}}},"description":"placed","required":true}},"get":{"tags":["geodata"],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Route"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Route"}}}}}}}},"/route/{id}":{"get":{"tags":["geodata"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Route"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Route"}}}},"400":{"description":"invalid ID supplied"},"404":{"description":"not found"}}},"post":{"tags":["geodata"],"summary":"Updates in the store with form data","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Route"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Route"}}}}}},"delete":{"tags":["geodata"],"summary":"Delete by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"not found"}}}},"/docs":{"post":{"tags":["docs"],"summary":"Create docs","operationId":"createDocs","responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Document"}}}}}},"get":{"tags":["docs"],"summary":"Get all docs","operationId":"getDocs","responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Document"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Document"}}}}}}}},"/docs/{documentId}":{"get":{"tags":["docs"],"summary":"Find document by ID","operationId":"getDocumentById","parameters":[{"name":"documentId","in":"path","description":"ID of document that needs to be fetched","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Document"}}}},"400":{"description":"Invalid ID supplied"},"404":{"description":"Document not found"}}},"post":{"tags":["docs"],"summary":"Updates a documwnt in the store with form data","operationId":"updateDocument","parameters":[{"name":"documentId","in":"path","description":"ID of document that needs to be updated","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"Document not found"}}},"delete":{"tags":["docs"],"summary":"Delete document by ID","description":"For valid response try integer IDs with positive integer value.\\ \\ Negative or non-integer values will generate API errors","operationId":"deleteDocument","parameters":[{"name":"documentId","in":"path","description":"ID of the document that needs to be deleted","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"Document not found"}}}},"/messages":{"post":{"tags":["messages"],"summary":"Create messages","operationId":"createmessages","responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Message"}}}}}},"get":{"tags":["messages"],"summary":"Get all messages","operationId":"getmessages","parameters":[{"name":"senderId","in":"query","description":"Sort by Sender","required":false,"schema":{"type":"string"}},{"name":"receiverId","in":"query","description":"Sort by Receiver","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Message"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Message"}}}}}}}},"/messages/{MessageId}":{"get":{"tags":["messages"],"summary":"Find Message by ID","operationId":"getMessageById","parameters":[{"name":"MessageId","in":"path","description":"ID of Message that needs to be fetched","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Message"}}}},"400":{"description":"Invalid ID supplied"},"404":{"description":"Message not found"}}},"post":{"tags":["messages"],"summary":"Updates a documwnt in the store with form data","operationId":"updateMessage","parameters":[{"name":"MessageId","in":"path","description":"ID of Message that needs to be updated","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"Message not found"}}},"delete":{"tags":["messages"],"summary":"Delete Message by ID","description":"For valid response try integer IDs with positive integer value.\\ \\ Negative or non-integer values will generate API errors","operationId":"deleteMessage","parameters":[{"name":"MessageId","in":"path","description":"ID of the Message that needs to be deleted","required":true,"schema":{"type":"integer"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"Message not found"}}}}},"components":{"requestBodies":{"ProductCategory":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Order"}}},"description":"ProductCategory object that needs to be added to the marketplace","required":true},"Order":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Order"}}},"description":"Order object that needs to be added to the marketplace","required":true}},"schemas":{"Company":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string","example":"Roga i kopyta Sp. z o.o."},"companyType":{"type":"array","items":{"$ref":"#/components/schemas/CompanyType"}},"taxNumber(NIP)":{"type":"string","example":1234567890},"country":{"$ref":"#/components/schemas/Country"},"addressOffice":{"$ref":"#/components/schemas/Address"},"addressPost":{"$ref":"#/components/schemas/Address"},"addressTerminals":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"IBAN":{"type":"string","minLength":26,"maxLength":26},"SWIFT":{"type":"string"},"paymentData":{"$ref":"#/components/schemas/PaymentData"},"contactPerson":{"type":"string","example":"Jan Kowalski, Manager"},"email":{"type":"string","format":"email","example":"jan@gmail.com"},"phone":{"type":"string","example":48123456789},"otherContact":{"type":"string","example":"Messenger +34342323423"},"ratePerKm":{"type":"number","example":1.2},"rating":{"type":"number","example":4.5},"additionalInfo":{"type":"string","example":"Wysyłka dokumentów pocztą"},"status":{"$ref":"#/components/schemas/CompanyStatus"},"groups":{"type":"array","items":{"$ref":"#/components/schemas/Group"}},"orders":{"type":"array","items":{"$ref":"#/components/schemas/Order"}},"notes":{"type":"string"}}},"PaymentData":{"type":"object","properties":{"id":{"type":"integer"},"currency":{"$ref":"#/components/schemas/Currency"},"paymentTerms":{"$ref":"#/components/schemas/PaymentTermin"},"paymentPeriod":{"type":"integer","format":"int64","example":30},"paymentType":{"$ref":"#/components/schemas/PaymentType"},"VAT":{"type":"number"}}},"PaymentTermin":{"type":"object","properties":{"id":{"type":"integer"},"termin":{"$ref":"#/components/schemas/PaymentTerminEnum"}}},"PaymentTerminEnum":{"type":"string","enum":["deferred","payment_on_unloading","payment_in_advance"]},"Currency":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"code":{"$ref":"#/components/schemas/CurrencyCode"},"symbol":{"type":"string"}}},"CurrencyCode":{"type":"string","enum":["AMD","AZN","BAM","BGN","BYN","CHF","CZK","DKK","EUR","GBP","GEL","HUF","ISK","MDL","MKD","NOK","PLN","RON","RSD","SEK","TRY","UAH"]},"PaymentType":{"type":"object","properties":{"id":{"type":"integer"},"type":{"$ref":"#/components/schemas/PaymentTypeEnum"}}},"PaymentTypeEnum":{"type":"string","enum":["CASH","BANK_TRANSFER","CHECK","ENCASHMENT","CREDIT_LETTER","CARD","OTHER"]},"CompanyStatus":{"type":"object","properties":{"id":{"type":"integer"},"status":{"$ref":"#/components/schemas/CompanyStatusEnum"}}},"CompanyStatusEnum":{"type":"string","enum":["ACTIVE","SUSPEND","PENDING","ARCHIVED","OTHER"]},"CompanyType":{"type":"object","properties":{"id":{"type":"integer"},"type":{"$ref":"#/components/schemas/CompanyTypeEnum"}}},"CompanyTypeEnum":{"type":"string","enum":["OWN_COMPANY","FORWARDER","CARRIER","PROVIDER"]},"WorkingDays":{"enum":["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"]},"Group":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"users":{"type":"array","items":{"$ref":"#/components/schemas/User"}},"vehicles":{"type":"array","items":{"$ref":"#/components/schemas/Vehicle"}},"assets":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}},"documents":{"type":"array","items":{"$ref":"#/components/schemas/Document"}}}},"Asset":{"type":"object","properties":{"id":{"type":"integer"},"type":{"$ref":"#/components/schemas/CargoType"},"company":{"$ref":"#/components/schemas/Company"},"number":{"type":"string","description":"Unique asset number","example":"CF4563MC"},"model":{"type":"string","description":"Asset model name, if it exists","example":"Cargobull P38.14"},"vin":{"type":"string","example":"ZD3232313144FFWW332"},"group":{"$ref":"#/components/schemas/Group"},"eldDeviceId":{"type":"string","example":"D1754"},"externalIdsAttributes":{"type":"string","example":"D1754"},"cargoData":{"$ref":"#/components/schemas/CargoData"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/Document"}},"notes":{"type":"string"}}},"CargoData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string","example":"Standard semi 13.6"},"height":{"type":"number","example":3.7},"width":{"type":"number"},"length":{"type":"number","example":5},"weight":{"type":"number","example":15.5},"weightMax":{"type":"number","example":15.5},"axleAmount":{"type":"integer","default":2},"axleLoad":{"type":"number","example":15.5},"axleLoadMax":{"type":"number","example":15.5},"maxEuroPalletsLoad":{"type":"integer","example":14},"cargoSpaceHeight":{"type":"number"},"cargoSpaceLength":{"type":"number"},"cargoSpaceWidth":{"type":"number"},"cargoSpaceVolume":{"type":"number"},"maxCargoWeight":{"type":"number"},"maxAssetWeight":{"type":"number","example":25}}},"CargoType":{"type":"object","properties":{"id":{"type":"integer"},"type":{"$ref":"#/components/schemas/CargoTypeEnum"}}},"CargoTypeEnum":{"type":"string","enum":["curtainsider","cooler","standard-tent","box","open-box","isotherm","meathanging","food-tanker","tanker","other","car-transporter","dump-truck","petroleum-tanker","chemical-tanker","gas-tanker","silos","mega","coilmulde","log-trailer","platform-trailer","hook-truck","low-loader","truck","swap-body-system","20-standard","40-standard","45-standard","joloda","BDE","walkingfloor","tank-body-20","tank-body-40","jumbo","no_cargo"]},"Vehicle":{"type":"object","description":"Info about a vehicle","properties":{"id":{"type":"integer"},"company":{"$ref":"#/components/schemas/Company"},"number":{"type":"string","description":"Unique vehicle number","example":"CF4563MC"},"class":{"$ref":"#/components/schemas/VehicleClass"},"model":{"type":"string","description":"Vehicle model name, if it exists","example":"Volvo P38.14"},"vin":{"type":"string","example":"ZD3232313144FFWW332"},"eldDeviceId":{"type":"string","example":"D1754"},"externalIdsAttributes":{"type":"string","example":"D1754"},"cargoType":{"$ref":"#/components/schemas/CargoType"},"cargoData":{"$ref":"#/components/schemas/CargoData"},"asset":{"$ref":"#/components/schemas/Asset"},"hasTelemetry":{"type":"boolean","description":"If the vehicle can collect telemetry data","example":true},"group":{"$ref":"#/components/schemas/Group"},"fuelType":{"$ref":"#/components/schemas/FuelType"},"availableAssetTypes":{"type":"array","items":{"$ref":"#/components/schemas/CargoType"}},"documents":{"type":"array","items":{"$ref":"#/components/schemas/Document"}},"vehicleTelemetry":{"$ref":"#/components/schemas/VehicleTelemetry"},"isAvailable":{"type":"boolean"},"isAvailableForPartialLoad":{"type":"boolean"},"vehicleSchedule":{"$ref":"#/components/schemas/VehicleSchedule"}}},"FuelType":{"type":"object","properties":{"id":{"type":"integer"},"type":{"$ref":"#/components/schemas/FuelTypeEnum"}}},"FuelTypeEnum":{"type":"string","enum":["DIESEL","GASOLINE","PROPANE","LNG","CNG","ETHANOL","METHANOL","ELECTRO","OTHER"]},"VehicleStatus":{"type":"object","properties":{"id":{"type":"integer"},"status":{"$ref":"#/components/schemas/VehicleStatusEnum"}}},"VehicleStatusEnum":{"type":"string","enum":["DRIVING","STOP","PARKING","TANKING","MAINTENANCE"]},"VehicleTelemetry":{"type":"object","properties":{"id":{"type":"integer"},"totalMileage":{"type":"number","example":8615},"totalFuelConsumption":{"type":"number","example":86153},"engineHours":{"type":"number","description":"Total number of worked hours by the vehicle","example":21765},"status":{"$ref":"#/components/schemas/VehicleStatus"},"statusTime":{"type":"number","description":"Time period in current status. Timestamp in seconds"},"statusStart":{"type":"string","description":"Time when status starts. Timestamp with timezone"},"statusEnd":{"type":"string","description":"Time when status ends or actual time. Timestamp with timezone"},"speed":{"type":"number"},"coordinates":{"$ref":"#/components/schemas/Coordinates"},"fuel":{"type":"number","example":154.4},"fuelConsumption":{"type":"number","example":22.3}}},"VehicleClass":{"type":"object","properties":{"id":{"type":"integer"},"class":{"$ref":"#/components/schemas/VehicleClassEnum"}}},"VehicleClassEnum":{"type":"string","enum":["bus","lorry","double_trailer","solo","any_size","other"]},"User":{"type":"object","required":["email","role"],"properties":{"id":{"type":"string","example":"46c2cd1b-57c4-4530-a8aa-3c639b35f231"},"first_name":{"type":"string","example":"Jan"},"second_name":{"type":"string","example":"Kowalski"},"email":{"type":"string","format":"email","example":"jan@gmail.com","description":"unique"},"username":{"type":"string","format":"email","example":"jan@gmail.com","description":"unique"},"password":{"type":"string","format":"password"},"roles":{"type":"array","items":{"$ref":"#/components/schemas/UserRole"}},"phone":{"type":"string","example":48123456789},"groups":{"type":"array","description":"Array of Company users group ID user belongs to","items":{"$ref":"#/components/schemas/Group"}},"externalIdsAttributes":{"type":"array","items":{"type":"object"}},"avatar":{"type":"string","format":"url","example":"/assets/avatars/jan.jpg"},"companies":{"type":"array","items":{"$ref":"#/components/schemas/Company"}},"documents":{"type":"array","items":{"$ref":"#/components/schemas/Document"}},"fleetUserPerformance":{"$ref":"#/components/schemas/FleetUserPerformance"},"driverPerformance":{"$ref":"#/components/schemas/DriverPerformance"},"messageList":{"$ref":"#/components/schemas/MessageList"},"driverId":{"type":"string"},"driverAppPin":{"type":"integer"},"coordinates":{"$ref":"#/components/schemas/Coordinates"},"driverPrimaryCycle":{"type":"string"},"hosRegion":{"$ref":"#/components/schemas/HosRegion"},"isReturningDepot":{"type":"boolean","description":"Plus HoS is acceptable if returning to base"},"depot":{"$ref":"#/components/schemas/Address"},"dutyStatus":{"$ref":"#/components/schemas/DutyStatus"},"driverSchedule":{"$ref":"#/components/schemas/DriverSchedule"}}},"UserRole":{"type":"object","properties":{"id":{"type":"integer"},"role":{"$ref":"#/components/schemas/UserRoleEnum"}}},"UserRoleEnum":{"type":"string","enum":["ADMIN","SYSTEM","ANALYTICS","DRIVER","FLEET_USER","OWNER"]},"HosRegion":{"type":"object","properties":{"id":{"type":"integer"},"region":{"$ref":"#/components/schemas/HosRegionEnum"}}},"HosRegionEnum":{"type":"string","enum":["EU","US","UA","OTHER"],"description":"Time periods regulations for rest and drive"},"OperationType":{"type":"object","properties":{"id":{"type":"integer"},"type":{"$ref":"#/components/schemas/OperationTypeEnum"}}},"OperationTypeEnum":{"type":"string","enum":["REST","TANKING","UNLOAD","LOAD","WAITING","MAINTENANCE","EMPTY_RUN","FERRY","CUSTOMS"]},"RestType":{"type":"object","properties":{"id":{"type":"integer"},"type":{"$ref":"#/components/schemas/RestTypeEnum"}}},"RestTypeEnum":{"type":"string","enum":["15M","30M","45M","3H","7H","9H","11H","24H","45H","OTHER"]},"DriveType":{"type":"object","properties":{"id":{"type":"integer"},"type":{"$ref":"#/components/schemas/DriveTypeEnum"}}},"DriveTypeEnum":{"type":"string","enum":["4H30M","6H","9H","10H","13H","15H","56H","90H","OTHER"]},"DutyStatus":{"type":"object","properties":{"id":{"type":"integer"},"status":{"$ref":"#/components/schemas/DutyStatusEnum"}}},"DutyStatusEnum":{"type":"string","enum":["OFF_DUTY","ON_DUTY","SLEEPER","DRIVING","WAITING","ARRIVED","LOADING_STARTED","UNLOADING_STARTED","LOADING_FINISHED","UNLOADING_FINISHED","NOT_LOADED","NOT_UNLOADED","LOADING_REFUSED","UNLOADING_REFUSED"]},"DriverPerformance":{"type":"object","properties":{"id":{"type":"integer"},"user":{"$ref":"#/components/schemas/User"},"rank":{"type":"number","format":"double","example":4.5},"reactionTime":{"type":"number","format":"double","example":4.5},"accuracy":{"type":"number","format":"double","example":4.5},"fuelConsumption":{"type":"number","format":"double","example":4.5}}},"FleetUserPerformance":{"type":"object","properties":{"id":{"type":"integer"},"user":{"$ref":"#/components/schemas/User"},"rank":{"type":"number","format":"double","example":4.5},"reactionTime":{"type":"number","format":"double","example":4.5},"hosAccuracy":{"type":"number","format":"double","example":4.5},"emptyRuns":{"type":"number","format":"double","example":4.5},"deliveriesStats":{"type":"number","format":"double","example":4.5}}},"Document":{"type":"object","properties":{"id":{"type":"integer"},"docType":{"$ref":"#/components/schemas/DocType"},"uploader":{"$ref":"#/components/schemas/User"},"company":{"$ref":"#/components/schemas/Company"},"user":{"$ref":"#/components/schemas/User"},"group":{"$ref":"#/components/schemas/Group"},"vehicle":{"$ref":"#/components/schemas/Vehicle"},"asset":{"$ref":"#/components/schemas/Asset"},"docForm":{"$ref":"#/components/schemas/DocForm"},"docJsonFields":{"type":"object"},"notes":{"type":"string"},"attachments":{"type":"array","items":{"type":"object"}},"docUploadTime":{"type":"string","description":"Timestamp with timezone"},"docDate":{"type":"string","description":"Timestamp with timezone"},"expiringDate":{"type":"string","description":"Timestamp with timezone"},"status":{"$ref":"#/components/schemas/DocStatus"}}},"DocStatus":{"type":"object","properties":{"id":{"type":"integer"},"status":{"$ref":"#/components/schemas/DocStatusEnum"}}},"DocStatusEnum":{"type":"string","enum":["ARCHIVED","DRAFT","PENDING_APPROVAL","APPROVED","CANCELLED","FINAL","DECLINED","EXPIRED","NOT_VALID","SUSPENDED","SENT","OTHER"]},"DocForm":{"type":"object","properties":{"id":{"type":"integer"},"form":{"$ref":"#/components/schemas/DocFormEnum"}}},"DocFormEnum":{"type":"string","enum":["PNG","JPG","PDF","DOCX","XLSX","CSV","YML","XML","TXT","JSON","OTHER"]},"DocType":{"type":"object","properties":{"id":{"type":"integer"},"type":{"$ref":"#/components/schemas/DocTypeEnum"}}},"DocTypeEnum":{"type":"string","enum":["ID","PASSPORT","DRIVER_LICENSE","A1_PERMIT","PUP_STATEMENT","RESIDENCE_CARD","CERT_QUAL","VISA","ADR","EKUZ","KKK_CARD","PROFORMA","INVOICE","CMR","ORDER","BILL","BILL_OF_LANDING","PACKING_LIST","EXPORT_LIST","LETTER","RECEIPT","CERT_ORIGIN","INSURANCE","LICENSE","NOTICE","REGISTRATION","LOG_DAILY","CERT_INSPECTION","OTHER"]},"Address":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"street":{"type":"string","maxLength":80},"city":{"type":"string","maxLength":40},"zipCode":{"type":"string","maxLength":10},"state":{"type":"string","maxLength":40},"country":{"$ref":"#/components/schemas/Country"},"coordinates":{"$ref":"#/components/schemas/Coordinates"},"workingHourMin":{"type":"integer","minimum":0,"maximum":24},"workingHourMax":{"type":"integer","minimum":0,"maximum":24},"workingDays":{"type":"array","items":{"$ref":"#/components/schemas/WorkingDays"}},"contactPerson":{"type":"string","example":"Jan Kowalski, Manager"},"email":{"type":"string","format":"email","example":"jan@gmail.com"},"phone":{"type":"string","example":48123456789},"averageReactionTime":{"type":"integer","example":20},"averageSpentTime":{"type":"integer","example":60},"notes":{"type":"string","example":"Terminal A17 z lewej strony"}}},"Coordinates":{"type":"object","required":["lat","lon"],"properties":{"lat":{"$ref":"#/components/schemas/Lat"},"lon":{"$ref":"#/components/schemas/Lon"}}},"Lat":{"type":"number","minimum":-90,"maximum":90,"format":"double"},"Lon":{"type":"number","minimum":-180,"maximum":180,"format":"double"},"Freight":{"type":"object","properties":{"id":{"type":"integer"},"externalId":{"type":"string"},"multistop":{"type":"boolean"},"publishDate":{"type":"string","description":"Timestamp with timezone"},"decisionDate":{"type":"string","description":"Timestamp with timezone"},"company":{"$ref":"#/components/schemas/Company"},"paymentValue":{"type":"number"},"paymentData":{"$ref":"#/components/schemas/PaymentData"},"quickPayTransEu":{"type":"boolean"},"requirements":{"$ref":"#/components/schemas/FreightRequirements"},"spots":{"type":"array","items":{"$ref":"#/components/schemas/Spot"}},"freightRank":{"type":"number"}}},"FreightRequirements":{"type":"object","properties":{"isFtl":{"type":"boolean","description":"Is a full truck load"},"cargoType":{"type":"array","items":{"$ref":"#/components/schemas/CargoType"}},"vehicleType":{"type":"array","items":{"$ref":"#/components/schemas/VehicleClass"}}}},"Load":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"amount":{"type":"number"},"type":{"$ref":"#/components/schemas/LoadType"},"dangerousLoad":{"type":"boolean"},"unCode":{"type":"string"},"adrClass":{"type":"string"},"isStackable":{"type":"boolean"},"height":{"type":"number","example":3.7},"width":{"type":"number"},"length":{"type":"number","example":5},"weight":{"type":"number","example":15.5},"volume":{"type":"number"}}},"LoadType":{"type":"object","properties":{"id":{"type":"integer"},"type":{"$ref":"#/components/schemas/LoadTypeEnum"}}},"LoadTypeEnum":{"type":"string","enum":["europalette","big-bag","log","bag","barrel","carton","piece","cubic","box","other","roll","cp1_chemical_palette","cp2_chemical_palette","cp3_chemical_palette","cp4_chemical_palette","cp5_chemical_palette","cp6_chemical_palette","cp7_chemical_palette","cp8_chemical_palette","cp9_chemical_palette","20gp_dry_van","40gp_dry_van","40hc_high_cube","45hc_high_cube","20re_temperature_controlled","40re_temperature_controlled","40rh_temperature_controlled_high_cube","20ot_open_top","40ot_open_top","40hw_palette_high_cube","45hw_palette_high_cube","20vh_ventilated_container","eur_6","eur_2","eur_3","container_palette","oversized"]},"Spot":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"isFerry":{"type":"boolean"},"isCustoms":{"type":"boolean"},"operationType":{"$ref":"#/components/schemas/OperationType"},"isEarlierAcceptable":{"type":"boolean"},"isLateAcceptable":{"type":"boolean"},"isActual":{"type":"boolean"},"isNext":{"type":"boolean"},"isPrevious":{"type":"boolean"},"ETA":{"type":"string","description":"Estimated arriving time. Timestamp with timezone"},"ATA":{"type":"string","description":"Actual arriving time. Timestamp with timezone"},"EPL":{"type":"integer","description":"Estimated pickup/loading"},"APL":{"type":"integer","description":"Actual pickup/loading"},"estimateFinishTime":{"type":"string","description":"Timestamp with timezone"},"actualFinishTime":{"type":"string","description":"Timestamp with timezone"},"address":{"$ref":"#/components/schemas/Address"},"load":{"$ref":"#/components/schemas/Load"}}},"Order":{"type":"object","properties":{"id":{"type":"integer"},"freight":{"$ref":"#/components/schemas/Freight"},"vehicle":{"$ref":"#/components/schemas/Vehicle"},"status":{"$ref":"#/components/schemas/OrderStatus"},"route":{"$ref":"#/components/schemas/Route"},"createdBy":{"$ref":"#/components/schemas/User"},"approvedBy":{"$ref":"#/components/schemas/User"}}},"OrderStatus":{"type":"object","properties":{"id":{"type":"integer"},"status":{"$ref":"#/components/schemas/OrderStatusEnum"}}},"OrderStatusEnum":{"type":"string","enum":["INITIAL","DRAFT","CREATED","AWAITING_APPROVAL","PENDING","ACCEPTED","SENDED","CONFIRMED","VEHICLE_ARRIVED","LOADING_STARTED","UNLOADING_STARTED","LOADING_FINISHED","UNLOADING_FINISHED","VEHICLE_LEFT","NOT_LOADED","NOT_UNLOADED","LOADING_REFUSED","UNLOADING_REFUSED","NO_VEHICLE","DELIVERING","DELAYING","ARRIVAL","EARLY_ARRIVAL","ACCIDENT","DELIVERED","RETURNED","CLOSED"]},"Country":{"type":"object","properties":{"id":{"type":"integer"},"iso":{"$ref":"#/components/schemas/CountryCode"},"name":{"type":"string"},"nicename":{"type":"string"},"iso3":{"type":"string"},"numcode":{"type":"integer"},"phonecode":{"type":"integer"}}},"CountryCode":{"type":"string","example":"pl","enum":["ad","af","al","am","at","az","ba","be","bg","by","ch","cy","cz","de","dk","dz","ee","eg","es","fi","fr","gb","ge","gr","hr","hu","ie","il","iq","ir","is","it","kg","kz","li","lt","lu","lv","ma","mc","md","me","mk","mt","nl","no","pk","pl","pt","ro","rs","ru","se","si","sk","sm","tj","tm","tn","tr","ua","uz","xk"]},"Message":{"type":"object","properties":{"id":{"type":"integer"},"sender":{"$ref":"#/components/schemas/User"},"receiver":{"$ref":"#/components/schemas/User"},"message":{"type":"string","example":"Hello!"},"dateTime":{"type":"string","example":"12.02.2023 15:19:21"},"readDateTime":{"type":"string","example":"12.02.2023T15:22:10+00:00"},"attachment":{"type":"object","description":"Photos, other docs"}}},"MessageList":{"type":"object","properties":{"id":{"type":"integer"},"prev_offset":{"type":"integer","example":0},"next_offset":{"type":"integer","example":5},"message":{"type":"array","items":{"$ref":"#/components/schemas/Message"}}}},"DriverCycle":{"type":"object","properties":{"id":{"type":"integer"},"user":{"$ref":"#/components/schemas/User"},"userId":{"type":"string"},"restStart":{"type":"string","description":"Timestamp with timezone"},"restFinish":{"type":"string","description":"Timestamp with timezone"},"restType":{"$ref":"#/components/schemas/RestType"},"driveStart":{"type":"string","description":"Timestamp with timezone"},"driveFinish":{"type":"string","description":"Timestamp with timezone"},"driveType":{"$ref":"#/components/schemas/DriveType"},"shiftStart":{"type":"string","description":"Timestamp with timezone"},"shiftEnd":{"type":"string","description":"Timestamp with timezone"},"workStart":{"type":"string","description":"Timestamp with timezone"},"workEnd":{"type":"string","description":"Timestamp with timezone"}}},"VehicleCycle":{"type":"object","properties":{"id":{"type":"integer"},"drivers":{"type":"array","items":{"$ref":"#/components/schemas/User"}},"nextDriverChangeoverTime":{"type":"integer","description":"Timestamp for driver1 shiftEnd/driver2 shiftStart"},"orders":{"type":"array","items":{"$ref":"#/components/schemas/Order"},"description":"All orders in actual vechicle cycle"},"start":{"type":"string","description":"Timestamp with timezone"},"end":{"type":"string","description":"Timestamp with timezone"}}},"DriverSchedule":{"type":"array","items":{"$ref":"#/components/schemas/DriverCycle"}},"VehicleSchedule":{"type":"array","items":{"$ref":"#/components/schemas/VehicleCycle"}},"RouteStatus":{"type":"object","properties":{"id":{"type":"integer"},"status":{"$ref":"#/components/schemas/RouteStatusEnum"}}},"RouteStatusEnum":{"type":"string","enum":["waiting_for_acceptance","accepted","declined","modified"]},"Route":{"type":"object","properties":{"id":{"type":"integer"},"mapLink":{"type":"string","example":"https://goo.gl/maps/hVGCA8sw2y8QUCfx5"},"spots":{"type":"array","items":{"$ref":"#/components/schemas/Spot"},"description":"Let there be array"},"tollFee":{"type":"number"},"ferryFee":{"type":"number"},"EstimateFuelConsumption":{"type":"number"},"status":{"$ref":"#/components/schemas/RouteStatus"},"notes":{"type":"string"}}}}}}