{"openapi":"3.1.0","info":{"title":"Logirate API Documentation","description":"## Rate limits\n- **Per IP, per endpoint** (requests without a valid API key): 10 requests per minute. Applies to every non-POST request and to the login, refresh-token, reset-password and verify-account POSTs. Other POSTs are not limited.\n- **Per API key:** 100 requests per minute across the same endpoints. Requests with a valid API key are not subject to the per-IP limit.\n- **Verification code resend:** one request per 60 seconds per email.\n- **Login:** 5 consecutive failed logins lock the account until an administrator unlocks it (403).\n\nExceeding a limit returns `429 Too Many Requests` with a `Retry-After` header giving the number of seconds to wait before retrying.\n","contact":{"name":"Logirate Dev","email":"info@logirate.org"},"version":"V2-2026.12.03.002"},"servers":[{"url":"https://api.logirate.org","description":"Prod Server"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Mason","description":"Free consultation and newsletter administration"},{"name":"Ratings","description":"APIs for rating drivers and retrieving driver ratings"},{"name":"Reports","description":"APIs for managing driver incident reports"},{"name":"Company Oversight","description":"Super Admin company oversight endpoints"},{"name":"Demo Requests","description":"Request a Demo APIs"},{"name":"Mason","description":"Free consultation and newsletter APIs"},{"name":"Dispatchers","description":"APIs for interacting with company's dispatcher"},{"name":"Contacts","description":"APIs for managing company contacts"},{"name":"Revenue","description":"Revenue and lookup purchase metrics"},{"name":"Authentication","description":"Create, Login and Validate tokens"},{"name":"Wait List","description":"Waitlist APIs"},{"name":"Driver Onboarding","description":"APIs for field agents and recruiters to onboard drivers via mobile"},{"name":"Migrated Ratings Data","description":"Import and view ratings/feedback collected before Logirate (display only)"},{"name":"Api Key","description":"Endpoints for managing API keys"},{"name":"Company","description":"Endpoints for managing business activities"},{"name":"Logirate Config","description":"Platform Configuration"},{"name":"Config","description":"Logirate platform configuration"},{"name":"Auth","description":"In-house Auth APIs"},{"name":"Drivers","description":"Back Office driver management and onboarding"},{"name":"Audit Logs","description":"Append-only audit trail for all state-changing operations"},{"name":"Interests","description":"Waitlist and demo request administration"},{"name":"Trip Logs","description":"APIs for managing driver trip logs"},{"name":"Dashboard","description":"Super Admin Dashboard APIs"},{"name":"Sandbox Simulation","description":"Simulates admin actions on sandbox data. Requires a Test APIkey or a company token in Dev mode."},{"name":"Partner API Key","description":"Endpoints for inviting and managing partner API key access"},{"name":"Fleets","description":"APIs for managing company fleets"}],"paths":{"/ba/v1/drivers/verification/reset-status":{"put":{"tags":["Drivers"],"summary":"Bulk-reset driver verification status by NIN","description":"\tResets the verification status of the given drivers back to **Pending**\n\tand clears any recorded verification issue.\n","operationId":"driverResetStatusByNin","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetDriversStatusRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyBoolean"}}}}}}},"/ba/v1/drivers/verification/complaints/{driverId}/resolve":{"put":{"tags":["Drivers"],"summary":"Resolve a driver verification complaint","description":"\tMarks the driver's logged verification complaint as **Resolved**.\n\n\t- Only complaints that were actually logged (verificationIssueLog set) can be resolved.\n\t- Resolving is idempotent — resolving an already-resolved complaint succeeds.\n","operationId":"resolveComplaint","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyBoolean"}}}}}}},"/ba/v1/drivers/verification/complaints/{driverId}/feedback":{"put":{"tags":["Drivers"],"summary":"Respond to a driver verification complaint","description":"\tRecords the super-admin's feedback on a driver's logged verification complaint\n\tand marks the complaint as **Resolved**.\n\n\t- Only complaints that were actually logged (an issue log is set) can be responded to.\n\t- The feedback is stored in the consolidated `verification_data` JSONB column.\n","operationId":"respondToComplaint","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplaintFeedbackRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyBoolean"}}}}}}},"/ba/v1/drivers/onboarding/update-status/{driverId}":{"put":{"tags":["Drivers"],"summary":"Update driver onboarding status","description":"Updates the status of a specific onboarded driver by ID.","operationId":"updateDriverStatus","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOnboardedDriverStatus"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyBoolean"}}}}}}},"/ba/v1/drivers/onboarding/reset-status":{"put":{"tags":["Drivers"],"summary":"Reset drivers onboarding status by NIN","description":"Resets the onboarding status of drivers identified by their NIN back to Pending.","operationId":"resetDriversStatusByNin","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetDriversStatusRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyBoolean"}}}}}}},"/ba/v1/company/{companyId}/kyc/reject":{"put":{"tags":["Company Oversight"],"summary":"Reject company KYC","operationId":"rejectKyc","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyString"}}}}}}},"/ba/v1/company/{companyId}/kyc/accept":{"put":{"tags":["Company Oversight"],"summary":"Accept company KYC","operationId":"acceptKyc","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyString"}}}}}}},"/api/v1/simulate/complaints/{driverId}/resolve":{"put":{"tags":["Sandbox Simulation"],"summary":"Simulate resolving a verification complaint","description":"Marks the driver's logged verification complaint as **Resolved**.","operationId":"resolveComplaint_1","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyBoolean"}}}}}}},"/api/v1/simulate/complaints/{driverId}/feedback":{"put":{"tags":["Sandbox Simulation"],"summary":"Simulate a response to a verification complaint","description":"Records feedback on the driver's logged verification complaint and marks it as **Processed**.","operationId":"respondToComplaint_1","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplaintFeedbackRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyBoolean"}}}}}}},"/api/v1/reports/{id}":{"get":{"tags":["Reports"],"summary":"Get incident report by ID","description":"Retrieve a single incident report by its ID","operationId":"getReportById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyReportDto"}}}}}},"put":{"tags":["Reports"],"summary":"Update incident report","description":"Update an existing incident report","operationId":"updateReport","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateReportRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyReportDto"}}}}}},"delete":{"tags":["Reports"],"summary":"Delete incident report","description":"Delete an incident report","operationId":"deleteReport","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyVoid"}}}}}}},"/api/v1/partner-api-keys":{"get":{"tags":["Partner API Key"],"summary":"List active partner API keys for the company","operationId":"getPartnerKeys","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListPartnerApiKeyDto"}}}}}},"put":{"tags":["Partner API Key"],"summary":"Regenerate a partner API key","description":"Freezes the existing key and issues a new one for the same partner, emailed as a one-time link.","operationId":"regenerateKey","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegeneratePartnerKeyRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPartnerApiKeyDto"}}}}}},"post":{"tags":["Partner API Key"],"summary":"Invite a partner","description":"Generates an inactive partner API key and emails the partner a one-time link to claim it.","operationId":"invitePartner","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitePartnerRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPartnerApiKeyDto"}}}}}}},"/api/v1/mig-rated/ratings/{id}":{"get":{"tags":["Migrated Ratings Data"],"summary":"Get a previous rating","operationId":"getRating","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyMigratedRatingDto"}}}}}},"put":{"tags":["Migrated Ratings Data"],"summary":"Update a previous rating","description":"Date Submitted and Driver Number are shared with the entry's feedback, if any.","operationId":"updateRating","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigratedRatingRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyMigratedRatingDto"}}}}}},"delete":{"tags":["Migrated Ratings Data"],"summary":"Delete a previous rating","description":"The entry's feedback, if any, is kept.","operationId":"deleteRating","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyVoid"}}}}}}},"/api/v1/mig-rated/feedbacks/{id}":{"get":{"tags":["Migrated Ratings Data"],"summary":"Get a previous feedback","operationId":"getFeedback","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyMigratedRatingDto"}}}}}},"put":{"tags":["Migrated Ratings Data"],"summary":"Update a previous feedback","description":"Date Submitted and Driver Number are shared with the entry's rating, if any.","operationId":"updateFeedback","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigratedFeedbackRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyMigratedRatingDto"}}}}}},"delete":{"tags":["Migrated Ratings Data"],"summary":"Delete a previous feedback","description":"The entry's rating, if any, is kept.","operationId":"deleteFeedback","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyVoid"}}}}}}},"/api/v1/fleets/{id}":{"get":{"tags":["Fleets"],"operationId":"getFleet","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyFleetDto"}}}}}},"put":{"tags":["Fleets"],"summary":"Update fleet","description":"Update fleet details","operationId":"updateFleet","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFleetRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyFleetDto"}}}}}},"delete":{"tags":["Fleets"],"summary":"Delete fleet","description":"Delete fleet by ID","operationId":"deleteFleet","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyVoid"}}}}}}},"/api/v1/dispatchers/{driverId}":{"put":{"tags":["Dispatchers"],"summary":"Update a driver","description":"Updates a driver you currently employ. Only supplied fields are changed.\n\n**Onboarding company:** may update the driver's record (name, gender, NIN, date of birth,\nphone number, picture) as well as its own employment details.\n\n**Any other company:** only the employment details held in its own records are updated\n(phone number, email, address, fleet category, employment type, start date, unique identifier,\npicture); identity fields are ignored.\n\n**Locked fields:** once the driver's NIN is confirmed, name, NIN, gender and date of birth\ncannot be changed and a different value is rejected.\n","operationId":"updateDriver","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/UpdateDriverRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyUpdateDriverResponse"}}}}}}},"/api/v1/contacts/{id}":{"get":{"tags":["Contacts"],"summary":"Get contact","description":"Get a contact by ID for the current company","operationId":"getContact","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyContactDto"}}}}}},"put":{"tags":["Contacts"],"summary":"Update contact","description":"Update a contact for the current company","operationId":"updateContact","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContactRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyContactDto"}}}}}},"delete":{"tags":["Contacts"],"summary":"Delete contact","description":"Delete a contact.","operationId":"deleteContact","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyVoid"}}}}}}},"/ba/v1/drivers/verification/{driverId}/approve-driver":{"post":{"tags":["Drivers"],"summary":"Approve driver details.","operationId":"approveDriver","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyBoolean"}}}}}}},"/ba/v1/drivers/verification/verify-identity":{"post":{"tags":["Drivers"],"summary":"Verify a driver's identity via NIN","description":"\tHashes the NIN and calls the verification provider (QoreId in prod, mocked in dev/test).\n\tThe result is cached so repeated calls for the same NIN return instantly.\n","operationId":"verifyIdentity","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyBoolean"}}}}}}},"/ba/v1/drivers/onboarding/verify-driver":{"post":{"tags":["Drivers"],"summary":"Update driver onboarding status","description":"Updates the status of a specific onboarded driver by ID.","operationId":"verifyDriver","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyVerificationDto"}}}}}}},"/ba/v1/configs/set-tier-threshold":{"post":{"tags":["Config"],"operationId":"setTierThreshold","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetTierThresholdRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyLogirateConfigDto"}}}}}}},"/ba/v1/configs/set-rating-threshold":{"post":{"tags":["Config"],"operationId":"setRatingThreshold","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetRatingThresholdRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyLogirateConfigDto"}}}}}}},"/ba/v1/configs/set-lookup-pricing":{"post":{"tags":["Config"],"operationId":"setLookupPricing","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetLookupPricingRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyLogirateConfigDto"}}}}}}},"/ba/v1/configs/set-baseline-percent":{"post":{"tags":["Config"],"operationId":"setBaselinePercent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetBaselinePercentRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyLogirateConfigDto"}}}}}}},"/ba/v1/company/performance":{"post":{"tags":["Company Oversight"],"summary":"Recalculate monthly company performance metrics","description":"Rebuilds the stored monthly company performance metrics for the supplied month.\n\n**Parameters**\n- month: Optional, format `yyyy-MM` (for example `2025-02`). Defaults to the previous month in Africa/Lagos.\n","operationId":"recalculateMonthlyPerformanceMetrics","parameters":[{"name":"month","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyInteger"}}}}}}},"/ba/v1/company/bulk-email":{"post":{"tags":["Company Oversight"],"summary":"Send the same email to multiple companies","description":"Sends the uploaded HTML email template to every company in `companyIds`,\nreplacing the `${companyName}` placeholder with each company's name before\ndispatch. Emails are delivered to each company's registered email address;\nper-recipient failures are returned in the response instead of aborting\nthe whole dispatch.\n\n**Form fields**\n- `template` – HTML email template file (multipart)\n- `subject` – email subject\n- `companyIds` – company UUIDs, repeated once per recipient\n(e.g. `companyIds=<uuid1>&companyIds=<uuid2>`)\n","operationId":"sendBulkCompanyEmail","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/BulkCompanyEmailRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyBulkCompanyEmailResult"}}}}}}},"/ba/v1/auth/reset-password":{"post":{"tags":["Auth"],"summary":"Reset password","operationId":"resetPassword","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyString"}}}}}}},"/ba/v1/auth/refresh":{"post":{"tags":["Auth"],"summary":"Refresh in-house access token","operationId":"refreshToken","parameters":[{"name":"logirate-refresh-token","in":"cookie","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyLoginResponseGetUserResponse"}}}}}}},"/ba/v1/auth/login":{"post":{"tags":["Auth"],"summary":"In-house login","operationId":"login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyLoginResponseGetUserResponse"}}}}}}},"/api/v1/waitlist":{"post":{"tags":["Wait List"],"summary":"Join waitlist","operationId":"joinWaitlist","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyString"}}}}}}},"/api/v1/trip-logs":{"get":{"tags":["Trip Logs"],"summary":"Get company trip logs","description":"Get all trip logs for the requesting admin's company.\n\n**Filtering**\n- search (optional): Search by driver first or last name\n\n**Pagination & Sorting**\n- Supports standard pagination parameters\n- Example: `?page=0&size=10&sort=createdAt,desc`\n- With filter: `?search=John&page=0&size=10`\n","operationId":"getCompanyTripLogs","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseTripLogDto"}}}}}},"post":{"tags":["Trip Logs"],"summary":"Create trip log","description":"Create new trip logs for a driver employed at the requesting admin's company","operationId":"createTripLog","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreateTripLogRequest"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListTripLogDto"}}}}}}},"/api/v1/trip-logs/{tripLogId}/retry-rating-email":{"post":{"tags":["Trip Logs"],"summary":"Retry a failed rating email","description":"Retries the rating email for a completed trip in the authenticated company's account.","operationId":"retryRatingEmail","parameters":[{"name":"tripLogId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyTripLogDto"}}}}}}},"/api/v1/trip-logs/upload-excel":{"post":{"tags":["Trip Logs"],"summary":"Upload trip logs from Excel","description":"Upload an Excel file containing bulk trip log entries.\n\n**Required columns**\n- Driver ID: UUID of the driver (must be employed at the requesting admin's company)\n- Customer Email: Valid email address of the customer\n- Date of Trip: Date in `yyyy-MM-dd` format\n\n**Optional columns**\n- Notes: Additional notes (max 1000 characters)\n\nDownload the sample file from `GET /get-excel-sample` for the correct format.\n","operationId":"uploadTripLogsFromExcel","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListTripLogDto"}}}}}}},"/api/v1/trip-logs/rate":{"post":{"tags":["Trip Logs"],"summary":"Rate a trip","description":"Submit a rating for a completed trip.\n\n**Request Body**\n- tripId: Trip ID (required)\n- rating: Rating value 0-5 (required)\n- comments: Optional feedback comments (max 1000 chars)\n","operationId":"rateTrip","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateTripRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyVoid"}}}}}}},"/api/v1/trip-logs/end-trip":{"post":{"tags":["Trip Logs"],"summary":"Mark trips as ended","description":"Marks one or more trip logs as ended (`isCompleted = true`) and triggers rating email delivery\nfor each trip if this is the first transition to ended.\n","operationId":"endTrip","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EndTripRequest"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyVoid"}}}}}}},"/api/v1/simulate/drivers/{driverId}/reject":{"post":{"tags":["Sandbox Simulation"],"summary":"Simulate driver rejection","description":"Marks the driver's verification as **Rejected** with the given verification issue.","operationId":"rejectDriver","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"issueType","in":"query","required":true,"schema":{"type":"string","enum":["Duplicate driver image","Blurry driver image","Invalid NIN","Issue confirming DOB","Inaccurate driver name","Inaccurate driver gender"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyBoolean"}}}}}}},"/api/v1/simulate/drivers/{driverId}/approve":{"post":{"tags":["Sandbox Simulation"],"summary":"Simulate driver approval","description":"Marks the driver's verification as **Confirmed**, as a back-office admin would.","operationId":"approveDriver_1","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyBoolean"}}}}}}},"/api/v1/reports":{"post":{"tags":["Reports"],"summary":"Create incident report","description":"Create a new incident report for a driver's employment history","operationId":"createReport","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReportRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyReportDto"}}}}}}},"/api/v1/ratings/rate-driver":{"post":{"tags":["Ratings"],"summary":"Rate a driver","description":"Submit a rating for a driver based on their performance.\nRating is automatically tied to the most recent employment history\nbetween the driver and your company.\n\n**Request Body**\n- driverId: Driver's ID (required)\n- damageFree: Damage-free rating 0-5 (required)\n- fastDelivery: Fast delivery rating 0-5 (required)\n- communication: Communication rating 0-5 (required)\n- others: Custom metrics (optional)\n- comments: Feedback comments (optional, max 1000 chars)\n","operationId":"rateDriver","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateDriverRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyVoid"}}}}}}},"/api/v1/mig-rated/upload-excel":{"post":{"tags":["Migrated Ratings Data"],"summary":"Upload previous ratings/feedback from Excel","description":"**Columns**\n- Date Submitted (required): `yyyy-MM-dd`\n- Rating (optional): 1 to 5, up to 2 decimal places\n- Driver Number (optional): the driver's partner identifier or phone number at your company\n- Feedback Collected (optional)\n\nEach row needs a Rating, Feedback Collected, or both. If any row is invalid the whole file is rejected.\n","operationId":"uploadExcel","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListMigratedRatingDto"}}}}}}},"/api/v1/mig-rated/ratings":{"post":{"tags":["Migrated Ratings Data"],"summary":"Add a previous rating","operationId":"createRating","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigratedRatingRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyMigratedRatingDto"}}}}}}},"/api/v1/mig-rated/feedbacks":{"post":{"tags":["Migrated Ratings Data"],"summary":"Add a previous feedback","operationId":"createFeedback","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigratedFeedbackRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyMigratedRatingDto"}}}}}}},"/api/v1/mason/unsubscribe-newsletter":{"post":{"tags":["Mason"],"summary":"Unsubscribe from the newsletter","operationId":"unsubscribeNewsletter","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsletterSubscriptionRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyVoid"}}}}}}},"/api/v1/mason/subscribe-newsletter":{"post":{"tags":["Mason"],"summary":"Subscribe to the newsletter","operationId":"subscribeNewsletter","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsletterSubscriptionRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyString"}}}}}}},"/api/v1/mason/book-free-consultation":{"post":{"tags":["Mason"],"summary":"Book a free consultation","operationId":"bookFreeConsultation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookConsultationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyConsultationResponse"}}}}}}},"/api/v1/fleets":{"get":{"tags":["Fleets"],"summary":"Get fleets","description":"\tGet all fleets with optional filtering by assignment status and plate number.\n\n\t**Filtering**\n\t- **isAssigned** *Filter by assignment status: true=assigned to driver, false=unassigned (default: false)*\n\t- **plateNumber** *Filter by fleet's plate number (optional)*\n\n\t**Pagination & Sorting**\n\t- **page** *Page number (0-based, default: 0)*\n\t- **size** *Page size (default: 20)*\n\t- **sort** *Sort fields (example: ?sort=createdAt,desc)*\n","operationId":"getFleets","parameters":[{"name":"isAssigned","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"plateNumber","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseFleetDto"}}}}}},"post":{"tags":["Fleets"],"summary":"Create a new fleet","description":"Add a new vehicle to the company's fleet","operationId":"createFleet","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFleetRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyFleetDto"}}}}}}},"/api/v1/fleets/{id}/unassign":{"post":{"tags":["Fleets"],"summary":"Unassign driver from vehicle","description":"Remove driver assignment from a fleet/vehicle","operationId":"unassignFleetFromDriver","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyFleetDto"}}}}}}},"/api/v1/fleets/{id}/toggle-status":{"post":{"tags":["Fleets"],"summary":"Toggle fleet status","description":"Toggle vehicle status between Active and Delisted","operationId":"toggleFleetStatus","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyFleetDto"}}}}}}},"/api/v1/fleets/upload":{"post":{"tags":["Fleets"],"summary":"Bulk upload fleets","description":"Upload fleets via Excel file","operationId":"uploadFleets","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyVoid"}}}}}}},"/api/v1/fleets/assign":{"post":{"tags":["Fleets"],"operationId":"assignFleetToDriver","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignFleetRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyFleetDto"}}}}}}},"/api/v1/driver-onboarding/add-driver":{"post":{"tags":["Driver Onboarding"],"summary":"Add a driver","description":"Allows a recruiter or field agent to submit driver information collected in the field. Supports optional file uploads for profile picture and driver card.","operationId":"addDriver","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/AddDriverOnboardingRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDriverOnboardingDto"}}}}}}},"/api/v1/dispatchers/validation/re-upload":{"post":{"tags":["Dispatchers"],"summary":"Re-upload driver's NIN details.","description":"Re-upload driver's NIN details for re-validation. This is typically used when a driver's NIN was previously rejected or flagged for issues.","operationId":"reUploadDriverNin","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ReUploadDriverNinRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyBoolean"}}}}}}},"/api/v1/dispatchers/validation/log-complaint":{"post":{"tags":["Dispatchers"],"summary":"Indicate an issue with a driver's details","operationId":"logComplaint","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverVerificationComplaintRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyBoolean"}}}}}}},"/api/v1/dispatchers/upload-dispatcher-excel":{"post":{"tags":["Dispatchers"],"operationId":"uploadDispatchersFromExcel","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyVoid"}}}}}}},"/api/v1/dispatchers/re-hire":{"post":{"tags":["Dispatchers"],"summary":"Hire an existing driver","description":"Hire an existing driver by creating a new employment history. Checks for exclusive contract conflicts.","operationId":"rehireDriver","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/RehireDriverRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyRehireDriverResponse"}}}}}}},"/api/v1/dispatchers/multiple-entries":{"post":{"tags":["Dispatchers"],"summary":"Create multiple drivers (API integrations)","description":"Creates up to 100 drivers in one atomic request. The whole batch is rejected if any entry is invalid\nor duplicates an existing/in-request phone number or NIN. Entries whose `patnerIdentifier` already\nexists are returned as-is (idempotent retry). Pictures must be supplied via `profilePictureUrl`.\n","operationId":"createDispatchers","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreateDriverRequest"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListCreateDriverResponse"}}}}}}},"/api/v1/dispatchers/manual-entry":{"post":{"tags":["Dispatchers"],"operationId":"createDispatcher","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/CreateDriverRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyCreateDriverResponse"}}}}}}},"/api/v1/dispatchers/hire":{"post":{"tags":["Dispatchers"],"summary":"Hire an existing driver","description":"Hire an existing driver by creating a new employment history. Checks for exclusive contract conflicts.","operationId":"hireDriver","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/HireDriverRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyCreateDriverResponse"}}}}}}},"/api/v1/demo-requests":{"post":{"tags":["Demo Requests"],"summary":"Submit a demo request","description":"Submit a request to schedule a product demo.\n","operationId":"submitDemoRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDemoRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDemoRequestResponse"}}}}}}},"/api/v1/contacts":{"get":{"tags":["Contacts"],"summary":"Get contacts","description":"Get paginated contacts for the current company","operationId":"getContacts","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseContactDto"}}}}}},"post":{"tags":["Contacts"],"summary":"Create contact","description":"Create a contact and link it to the current company","operationId":"createContact","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContactRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyContactDto"}}}}}}},"/api/v1/company/lookup/purchase":{"post":{"tags":["Company"],"summary":"Purchase lookup units","description":"Initialize payment for purchasing lookup units using one explicit mode.\n\n**Purchase modes:**\n- `DirectUnits`: send `purchaseType=DirectUnits` with `quantity`\n- payable total = `unitPrice × quantity`\n- `Bundle`: send `purchaseType=Bundle` with `bundle`\n- payable total = selected bundle `newPrice`\n- credited units = selected bundle `noOfLookups`\n\n**Validation:**\n- `purchaseType` is required\n- Exactly one mode is allowed:\n- DirectUnits requires `quantity`, and must not include `bundle`\n- Bundle requires `bundle`, and must not include `quantity`\n\n**Example bundle request:**\n- `{ \"purchaseType\": \"Bundle\", \"quantity\": null, \"bundle\": \"1\", \"callbackUrl\": \"https://dev-app.logirate.org/payment-successful\" }`\n\n**Authorization:**\n- Only company Admin can purchase lookup units\n","operationId":"purchaseLookupUnits","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseLookupRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyLookupPurchaseDto"}}}}}}},"/api/v1/company/kyc/apply":{"post":{"tags":["Company"],"summary":"Upload company KYC","operationId":"uploadKyc","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/CompanyKycRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyString"}}}}}}},"/api/v1/company/hiring-conflicts/{conflictId}/report-issue":{"post":{"tags":["Company"],"summary":"Report an issue on a hiring conflict","description":"Report an issue explaining why there's a conflict with hiring this driver.\nFor example: \"Driver still has company properties\" or \"Driver is under contract\".\n\n**Authorization:**\n- Only the existing employer (where the driver currently works) can report issues\n- The issue description must be between 10 and 5000 characters\n","operationId":"reportConflictIssue","parameters":[{"name":"conflictId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportConflictIssueRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyReportDto"}}}}}}},"/api/v1/company/create-account":{"post":{"tags":["Company"],"summary":"Create new user account","operationId":"register","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCompanyRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyCompanyDto"}}}}}}},"/api/v1/auth/verify-account":{"post":{"tags":["Authentication"],"summary":"Verify account","operationId":"verifyAccount","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountVerificationRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyString"}}}}}}},"/api/v1/auth/reset-password":{"post":{"tags":["Authentication"],"summary":"Reset password","operationId":"resetPassword_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyString"}}}}}}},"/api/v1/auth/refresh":{"post":{"tags":["Authentication"],"summary":"Refresh access token","operationId":"refreshToken_1","parameters":[{"name":"logirate-refresh-token","in":"cookie","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyLoginResponseGetUserResponse"}}}}}}},"/api/v1/auth/login":{"post":{"tags":["Authentication"],"summary":"Authenticate user","operationId":"login_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyLoginResponseGetUserResponse"}}}}}}},"/api/v1/api-key/test":{"post":{"tags":["Api Key"],"summary":"Generate test API key","description":"Issues a new test API key immediately. No KYC required.","operationId":"generateTestKey","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyApiKeyDto"}}}}}}},"/api/v1/api-key/live":{"post":{"tags":["Api Key"],"summary":"Generate live API key","description":"Issues a live API key. Requires KYC approval. Revokes any previous active live key.","operationId":"generateLiveKey","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyApiKeyDto"}}}}}}},"/ba/v1/mason/consultations/{id}/status":{"patch":{"tags":["Mason"],"summary":"Update a consultation booking's follow-up status","operationId":"updateConsultationStatus","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConsultationStatusRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyConsultationResponse"}}}}}}},"/ba/v1/company/{companyId}/update-details":{"patch":{"tags":["Company Oversight"],"summary":"Update company details","description":"Update mutable company fields. All fields are optional; null/blank values are\nignored so existing data is preserved. Supports phoneNumber (validated & unique),\nindustryType, fleetSize, typicalRoute, deliveryVehicleType, name, creatorRole,\ncustomRole and profilePicture (file upload).\n","operationId":"updateCompanyDetails","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/UpdateCompanyRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyCompanyDto"}}}}}}},"/ba/v1/company/{companyId}/rating-weights":{"get":{"tags":["Company Oversight"],"summary":"Get company rating weights","operationId":"getRatingWeights","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyRatingWeightsResponse"}}}}}},"patch":{"tags":["Company Oversight"],"summary":"Update company rating weights","operationId":"updateRatingWeights","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRatingWeightsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyRatingWeightsResponse"}}}}}}},"/ba/v1/auth/update-password":{"patch":{"tags":["Auth"],"summary":"Change in-house user password","operationId":"changePassword","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyString"}}}}}}},"/api/v1/partner-api-keys/{id}/unfreeze":{"patch":{"tags":["Partner API Key"],"summary":"Unfreeze a previously frozen partner API key","operationId":"unfreezeKey","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyString"}}}}}}},"/api/v1/partner-api-keys/{id}/freeze":{"patch":{"tags":["Partner API Key"],"summary":"Freeze a partner API key","description":"Disables the key immediately. The partner's requests will start failing auth.","operationId":"freezeKey","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyString"}}}}}}},"/api/v1/dispatchers/{driverId}/update-info":{"patch":{"tags":["Dispatchers"],"summary":"Update driver employment details","description":"Update employment details for a driver. Only admins from the driver's current company can update these details.\n\n**Updatable Fields**\n- Phone number\n- Address\n- Fleet category\n- Employment type\n- Profile picture (file upload)\n- Start date (useful for correcting initial errors)\n\nAll fields are optional - only provided fields will be updated.\n","operationId":"updateEmploymentDetails","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/UpdateEmploymentRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyUpdateDriverResponse"}}}}}}},"/api/v1/company/update-details":{"patch":{"tags":["Company"],"summary":"Update company details","description":"Update mutable company fields (e.g. the business information provided during sign up).\n\n**Updatable fields:** phoneNumber, industryType, fleetSize, typicalRoute,\ndeliveryVehicleType, name, creatorRole, customRole, profilePicture (file upload).\n\nAll fields are optional. **Null or blank values are ignored** — a field that is left\nempty keeps its existing value. An empty list for `typicalRoute`/`deliveryVehicleType`\nis also treated as \"no change\".\n\n**Validations:**\n- `phoneNumber` is validated as a Nigerian number and normalized to E.164\n(e.g. `2349031380883`). It must not already belong to another company.\n- `fleetSize`, `typicalRoute`, `deliveryVehicleType`, `creatorRole` must be valid\nvalues from their allowed lists.\n- `name`, `industryType`, `customRole` are trimmed and length-limited.\n\n**Immutable fields (never changed here):** email, regNumber.\n","operationId":"updateCompanyDetails_1","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/UpdateCompanyRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyCompanyDto"}}}}}}},"/api/v1/company/test-mode":{"patch":{"tags":["Company"],"summary":"Toggle company sandbox/test mode","description":"Enables or disables sandbox-schema routing for this company's dashboard\n(bearer-authenticated) requests, mirroring API-key Test-environment routing.\n\nWhen enabled, this company's bearer requests read/write the `sandbox` schema\n(drivers, fleet, trip_logs, employment_history, ratings) instead of `public`,\nexactly like requests made with a Test API key.\n","operationId":"updateTestMode","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTestModeRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyCompanyDto"}}}}}}},"/api/v1/company/settings/update":{"patch":{"tags":["Company"],"summary":"Update current user's account settings","operationId":"updateMySettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountSettingsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyAccountSettingsDto"}}}}}}},"/api/v1/company/rating-weights":{"get":{"tags":["Company"],"summary":"Get company rating weights configuration","operationId":"getRatingWeights_1","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyRatingWeightsResponse"}}}}}},"patch":{"tags":["Company"],"summary":"Update rating weights","description":"Update ALL rating weights (metrics, report types, and custom) at once.\n\n**Important:** Since all weights must sum to 100%, this endpoint updates\nall weight categories together to maintain balance. This also handles\nupserting custom metrics - just include them in the otherWeights map.\n\n**Validation:**\n- Total of all weights must equal 100%\n- All weights must be positive\n","operationId":"updateRatingWeights_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRatingWeightsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyRatingWeightsResponse"}}}}}}},"/api/v1/company/hiring-conflicts/{conflictId}/resolve":{"patch":{"tags":["Company"],"summary":"Mark hiring conflict as resolved","description":"Mark a hiring conflict as resolved, indicating that the issue has been addressed\nand the conflict is no longer active.\n\n**Authorization:**\n- Only the hiring company (attempting to hire the driver) can resolve conflicts\n- Once resolved, the conflict cannot be unmarked\n","operationId":"resolveConflict","parameters":[{"name":"conflictId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyReportDto"}}}}}}},"/api/v1/auth/update-password":{"patch":{"tags":["Authentication"],"summary":"Change password","operationId":"changePassword_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyString"}}}}}}},"/ba/v1/waitlist":{"get":{"tags":["Interests"],"summary":"Fetch waitlist","operationId":"getWaitlist","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseWaitlistResponse"}}}}}}},"/ba/v1/waitlist/export":{"get":{"tags":["Interests"],"summary":"Export waitlist as Excel","operationId":"exportWaitlist","responses":{"200":{"description":"OK"}}}},"/ba/v1/revenue/purchase-list":{"get":{"tags":["Revenue"],"operationId":"getLookupPurchases","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseCompanyLookupPurchaseDto"}}}}}}},"/ba/v1/revenue/lookup-metrics":{"get":{"tags":["Revenue"],"operationId":"getLookupRevenueMetrics","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyLookupRevenueMetricsDto"}}}}}}},"/ba/v1/mason/newsletter-subscribers":{"get":{"tags":["Mason"],"summary":"Fetch newsletter subscribers","operationId":"getNewsletterSubscribers","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseNewsletterSubscriberResponse"}}}}}}},"/ba/v1/mason/newsletter-subscribers/{id}":{"get":{"tags":["Mason"],"summary":"Fetch a newsletter subscriber","operationId":"getNewsletterSubscriber","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyNewsletterSubscriberResponse"}}}}}},"delete":{"tags":["Mason"],"summary":"Delete a newsletter subscriber","operationId":"deleteNewsletterSubscriber","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyVoid"}}}}}}},"/ba/v1/mason/consultations":{"get":{"tags":["Mason"],"summary":"Fetch consultation bookings","operationId":"getConsultations","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseConsultationResponse"}}}}}}},"/ba/v1/mason/consultations/{id}":{"get":{"tags":["Mason"],"summary":"Fetch a consultation booking","operationId":"getConsultation","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyConsultationResponse"}}}}}},"delete":{"tags":["Mason"],"summary":"Delete a consultation booking","operationId":"deleteConsultation","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyVoid"}}}}}}},"/ba/v1/drivers/{driverId}/statistics":{"get":{"tags":["Drivers"],"summary":"Get driver statistics","description":"When companyId is omitted, returns statistics aggregated across all company employments.","operationId":"getDriverStatistics","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"companyId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDriverStatisticsDto"}}}}}}},"/ba/v1/drivers/{driverId}/report-summary":{"get":{"tags":["Drivers"],"summary":"Get driver total report rating (accident + theft)","description":"Returns the driver's full performance metrics including:\n- LogiScore (0–100)\n- Baseline threshold\n- Difference from baseline\n- Incident distribution:\n- Total accident reports + average severity\n- Total theft reports + average severity\n- Month-over-month report rate change\n\nUnlike the standard dispatcher metrics endpoint this call **does not**\ndeduct lookup units and does not require the caller to belong to a\nKYC-approved company.\n","operationId":"getDriverReportSummary","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDriverPerformanceMetricsDto"}}}}}}},"/ba/v1/drivers/{driverId}/rating-metrics":{"get":{"tags":["Drivers"],"summary":"Get driver rating metrics","description":"When isLookup is true and companyId is omitted, returns rating metrics across all employments.","operationId":"getDriverRatingMetrics","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"companyId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"isLookup","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"month","in":"query","required":false,"schema":{"type":"string"}},{"name":"breakdown","in":"query","required":false,"schema":{"type":"string","default":"Monthly","enum":["Day by Day","Weekly","Monthly"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListDriverRatingMetrics"}}}}}}},"/ba/v1/drivers/{driverId}/performance-stats":{"get":{"tags":["Drivers"],"summary":"Get driver performance statistics","description":"When companyId is omitted, returns statistics across all company employments.","operationId":"getDriverPerformanceStats","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"companyId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["startDate,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseDriverPerformanceStatsDto"}}}}}}},"/ba/v1/drivers/{driverId}/performance-insights":{"get":{"tags":["Drivers"],"summary":"Get driver performance insights","description":"When isLookup is true and companyId is omitted, returns insights across all employments.","operationId":"getDriverPerformanceInsights","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"companyId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"isLookup","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"month","in":"query","required":false,"schema":{"type":"string"}},{"name":"breakdown","in":"query","required":false,"schema":{"type":"string","default":"Monthly","enum":["Day by Day","Weekly","Monthly"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListDriverPerformanceMetrics"}}}}}}},"/ba/v1/drivers/{driverId}/metrics":{"get":{"tags":["Drivers"],"summary":"Get driver performance metrics","description":"When isLookup is true and companyId is omitted, returns aggregated metrics across all employments.","operationId":"getDriverPerformanceMetrics","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"companyId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"isLookup","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDriverPerformanceMetricsDto"}}}}}}},"/ba/v1/drivers/{driverId}/history":{"get":{"tags":["Drivers"],"summary":"Get employment history reports for a driver","description":"When isLookup is true and companyId is omitted, returns reports across all employments.","operationId":"getDriverHistory","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"companyId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"isLookup","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyObject"}}}}}}},"/ba/v1/drivers/{driverId}/hiring-conflicts":{"get":{"tags":["Drivers"],"summary":"Get driver hiring conflicts","description":"When companyId is omitted, returns hiring conflicts across all employments.","operationId":"getDriverHiringConflicts","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"companyId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseReportDto"}}}}}}},"/ba/v1/drivers/{driverId}/employment-details":{"get":{"tags":["Drivers"],"summary":"Get driver employment details","description":"When companyId is omitted, defaults to the caller's own company.","operationId":"getDriverEmploymentDetails","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"companyId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDriverEmploymentDetailsResponse"}}}}}}},"/ba/v1/drivers/{driverId}/details":{"get":{"tags":["Drivers"],"summary":"Get driver details with incident reports","description":"When companyId is omitted, returns details scoped to the driver's first active employment.","operationId":"getDriverDetails","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"companyId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDriverDetailsDto"}}}}}}},"/ba/v1/drivers/verification":{"get":{"tags":["Drivers"],"summary":"Get paged driver verification data","description":"\tReturns a paged list of drivers with their verification data.\n\n\t**Filtering & Search**\n\t- `search` — exact match on the driver's National Identification Number or onboarding company's name\n\t- `status` — filter by verification status (Pending, Confirmed, Rejected, Processed)\n\t- `startDate` / `endDate` — filter by record creation date (inclusive, format: yyyy-MM-dd)\n\n\t**Pagination & Sorting**\n\t- Supports standard Spring pagination parameters\n\t- Default sort: createdAt DESC\n\t- Example: `?page=0&size=20&sort=createdAt,desc`\n","operationId":"getVerificationData","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["Pending","Confirmed","Rejected","Processed"]}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseVerificationDataDto"}}}}}}},"/ba/v1/drivers/verification/validation-summary":{"get":{"tags":["Drivers"],"summary":"Driver-level validation summary","description":"\tReturns aggregated counts from the **drivers** table.\n\tWhen `companyId` is provided, counts are scoped to drivers employed by that company.\n\tOtherwise, counts cover all drivers.\n\n\t- entries submitted (total drivers)\n\t- total approved (Confirmed)\n\t- total rejected (Rejected)\n\t- issues logged (verificationIssue IS NOT NULL)\n","operationId":"getDriverValidationSummary","parameters":[{"name":"companyId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyValidationSummaryDto"}}}}}}},"/ba/v1/drivers/verification/issues":{"get":{"tags":["Drivers"],"summary":"Drivers with recorded verification issues","description":"\tReturns a paged list of drivers that have a recorded verification issue.\n\n\t**Filtering & Search**\n\t- `companyId` — filter by the company that employs the driver\n\t- `search` — searches across firstName, lastName, and NIN\n\t- `issueType` — filter by a specific issue type\n\t- `status` — filter by verification status (Pending, Confirmed, Rejected, Processed)\n\t- `startDate` / `endDate` — filter by record creation date (inclusive)\n\n\t**Pagination & Sorting**\n\t- Supports standard Spring pagination parameters\n\t- Default sort: createdAt DESC\n","operationId":"getIssuesList","parameters":[{"name":"companyId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"issueType","in":"query","required":false,"schema":{"type":"string","enum":["Unclear rider's card","Unclear profile picture","Irrelevant image uploaded"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["Pending","Confirmed","Rejected","Processed"]}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseIssueListItemDtoObject"}}}}}}},"/ba/v1/drivers/verification/complaints":{"get":{"tags":["Drivers"],"summary":"Drivers with logged verification complaints","description":"\tReturns a paged list of drivers that have logged a verification complaint.\n\n\t**Filtering & Search**\n\t- `companyId` — filter by the company that employs the driver\n\t- `search` — searches across firstName, lastName, NIN, and company name\n\t- `status` — filter by complaint processing status (Pending, Resolved)\n\t- `startDate` / `endDate` — filter by record creation date (inclusive)\n\n\t**Pagination & Sorting**\n\t- Supports standard Spring pagination parameters\n\t- Default sort: complaintSubmittedAt DESC\n","operationId":"getComplaints","parameters":[{"name":"companyId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["Pending","Processed","Resolved"]}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["complaintSubmittedAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseComplaintListItemDto"}}}}}}},"/ba/v1/drivers/status-count":{"get":{"tags":["Drivers"],"summary":"Get a company's active and exited driver counts","description":"Returns distinct driver counts for the given company:\n- `activeDrivers` — drivers with an Active employment at the company\n- `exitedDrivers` — drivers who exited and are not currently Active or Pending there\n\nReturns 404 if the company does not exist.\n","operationId":"getDriverStatusCount","parameters":[{"name":"companyId","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDriverStatusCountDto"}}}}}}},"/ba/v1/drivers/search":{"get":{"tags":["Drivers"],"summary":"Search driver by NIN","description":"Searches for a driver by their National Identification Number (NIN).\n","operationId":"searchDriverByNin","parameters":[{"name":"nin","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9]{11}$"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDriverLookupDto"}}}}}}},"/ba/v1/drivers/ranked":{"get":{"tags":["Drivers"],"summary":"Get ranked drivers","description":"Get list of drivers ranked by their overall rating (lifetime)","operationId":"getRankedDrivers","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":20,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseDriverRatingResponse"}}}}}}},"/ba/v1/drivers/onboarding/{driverId}":{"get":{"tags":["Drivers"],"summary":"Get driver details","description":"Gets the details of a specific onboarded driver by ID.","operationId":"getDriver","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyFullDriverOnboardingDto"}}}}}}},"/ba/v1/drivers/onboarding/verification-data/{nin}":{"get":{"tags":["Drivers"],"summary":"Get driver verification data","description":"Compares a driver's onboarding information against their verified NIN data.","operationId":"getDriverVerificationData","parameters":[{"name":"nin","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{11}$"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseVerificationFieldDto"}}}}}}},"/ba/v1/drivers/onboarding/validation/summary":{"get":{"tags":["Drivers"],"summary":"Get validation response summary","description":"Public summary counts for the Validation Response page: entries submitted, total approved, total rejected, and issues logged.","operationId":"getValidationSummary","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyValidationSummaryDto"}}}}}}},"/ba/v1/drivers/onboarding/validation/issues":{"get":{"tags":["Drivers"],"summary":"Get issues list","description":"Returns a paged list of onboarding records with a recorded verification issue.\n\n**Filtering & Search**\n- `userId` — filter by the BA who submitted the record\n- `search` — searches across firstName, lastName, NIN, and userName\n- `issueType` — filter by recorded issue type\n- `status` — filter by processing status (Pending, Confirmed, Rejected, Processed)\n- `startDate` — filter records created on or after this date (inclusive, format: yyyy-MM-dd)\n- `endDate` — filter records created on or before this date (inclusive, format: yyyy-MM-dd)\n\n**Pagination & Sorting**\n- Supports standard pagination parameters\n- Default sort: createdAt DESC\n","operationId":"getIssuesList_1","parameters":[{"name":"userId","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"issueType","in":"query","required":false,"schema":{"type":"string","enum":["Unclear rider's card","Unclear profile picture","Irrelevant image uploaded"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["Pending","Confirmed","Rejected","Processed"]}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseIssueListItemDtoObject"}}}}}}},"/ba/v1/drivers/onboarding/validation/issues-chart":{"get":{"tags":["Drivers"],"summary":"Get recorded issues chart data","description":"Public pie-chart-ready breakdown of recorded verification issues by type.","operationId":"getIssueBreakdownChart","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListChartPointDto"}}}}}}},"/ba/v1/drivers/onboarding/validation/issues-breakdown":{"get":{"tags":["Drivers"],"summary":"Get issue breakdown by BA","description":"Returns a paged breakdown of recorded issues grouped by the submitting BA.\n\n**Filtering & Search**\n- `issueType` — filter to a single issue type (also used as the percentage denominator)\n- `search` — searches by BA userName or userId\n\n**Pagination & Sorting**\n- Supports standard pagination parameters\n","operationId":"getIssueBreakdownByBa","parameters":[{"name":"issueType","in":"query","required":false,"schema":{"type":"string","enum":["Unclear rider's card","Unclear profile picture","Irrelevant image uploaded"]}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":20,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseIssueBreakdownDto"}}}}}}},"/ba/v1/drivers/onboarding/statistics":{"get":{"tags":["Drivers"],"summary":"Get driver onboarding statistics","description":"Gets statistics for driver onboarding.","operationId":"getDriverOnboardingStatistics","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDriverOnboardingStatisticsDto"}}}}}}},"/ba/v1/drivers/onboarding/get-paged-drivers":{"get":{"tags":["Drivers"],"summary":"Get onboarded drivers","description":"Returns a paged list of onboarded drivers.\n\n**Filtering & Search**\n- `userId` — filter by the recruiter who submitted the record\n- `search` — searches across firstName, lastName, phoneNumber, and NIN\n- `status` — filter by processing status (Pending, Confirmed, Rejected, Processed)\n- `startDate` — filter records created on or after this date (inclusive, format: yyyy-MM-dd)\n- `endDate` — filter records created on or before this date (inclusive, format: yyyy-MM-dd)\n\n**Pagination & Sorting**\n- Supports standard pagination parameters\n- Default sort: createdAt DESC\n- Example: `?page=0&size=20&sort=createdAt,desc`\n","operationId":"getDrivers","parameters":[{"name":"userId","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["Pending","Confirmed","Rejected","Processed"]}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseFullDriverOnboardingDto"}}}}}}},"/ba/v1/drivers/onboarding/export":{"get":{"tags":["Drivers"],"summary":"Export onboarded drivers","description":"Export filtered driver onboarding records to Excel (.xlsx)","operationId":"exportDrivers","parameters":[{"name":"userId","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK"}}}},"/ba/v1/demo-requests":{"get":{"tags":["Interests"],"summary":"Fetch demo requests","operationId":"getDemoRequests","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseDemoRequestResponse"}}}}}}},"/ba/v1/demo-requests/export":{"get":{"tags":["Interests"],"summary":"Export demo requests as Excel","operationId":"exportDemoRequests","responses":{"200":{"description":"OK"}}}},"/ba/v1/dashboard/route-analysis":{"get":{"tags":["Dashboard"],"summary":"Route analysis chart data","description":"Returns the number of companies per delivery route category\n(based on the routes they selected at sign-up), always all four routes:\nInter State (navy blue), Intra State (blue), Rural (green), Long Haul (yellow).\n\n`total` is the sum of the chart values. A company may select several routes,\nso it counts route selections, not distinct companies.\n","operationId":"getRouteAnalysis","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyChartSummaryDto"}}}}}}},"/ba/v1/dashboard/performance-benchmark":{"get":{"tags":["Dashboard"],"summary":"Performance benchmark distribution","description":"Splits all registered (non-deleted) companies by how their previous month's\ndriver score compares with the configured baseline:\nAbove Benchmark (blue), Below Benchmark (light blue), Meets Benchmark (yellow).\n\n`total` is the number of registered companies. Companies with no performance\nmetric for the previous month count as below the benchmark.\n","operationId":"getPerformanceBenchmark","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyChartSummaryDto"}}}}}}},"/ba/v1/dashboard/metrics":{"get":{"tags":["Dashboard"],"operationId":"getDashboardMetrics","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDashboardMetricsDto"}}}}}}},"/ba/v1/dashboard/hiring-conflicts":{"get":{"tags":["Dashboard"],"summary":"Hiring conflict distribution","description":"`total` is the number of hires (employment records) on the platform.\nThe chart splits them into Conflicts (red), the hiring conflict reports raised,\nand No Conflicts (green), the remaining hires.\n","operationId":"getHiringConflictDistribution","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyChartSummaryDto"}}}}}}},"/ba/v1/dashboard/dispatch-volume":{"get":{"tags":["Dashboard"],"summary":"Dispatch volume by vehicle type","description":"Returns aggregated fleet data grouped by vehicle type, with two values per type:\n- `totalVehicles` – total fleet vehicles of that type registered on the platform\n- `companiesUsing` – number of distinct companies that own at least one vehicle of that type\n","operationId":"getDispatchVolumeByVehicleType","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListDispatchVolumeDto"}}}}}}},"/ba/v1/configs/current":{"get":{"tags":["Config"],"operationId":"getConfig","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyLogirateConfigDto"}}}}}}},"/ba/v1/configs/all":{"get":{"tags":["Config"],"operationId":"getHistoricalConfigs","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseLogirateConfigDto"}}}}}}},"/ba/v1/company":{"get":{"tags":["Company Oversight"],"summary":"Get all registered companies","operationId":"getCompanies","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["Active","Suspended","Deleted"]}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseCompanyDto"}}}}}}},"/ba/v1/company/{companyId}/trip-logs":{"get":{"tags":["Company Oversight"],"summary":"Get trip logs for a specific company","operationId":"getCompanyTripLogs_1","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseTripLogDto"}}}}}}},"/ba/v1/company/{companyId}/transactions":{"get":{"tags":["Company Oversight"],"summary":"Get transaction logs for a company","operationId":"getTransactionLogs","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["Debit","Credit"]}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseTransactionLogDto"}}}}}}},"/ba/v1/company/{companyId}/lookup-units":{"get":{"tags":["Company Oversight"],"summary":"Get lookup unit counts for a company","operationId":"getLookupUnitCounts","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyLookupUnitCountsDto"}}}}}}},"/ba/v1/company/{companyId}/kyc/director-info":{"get":{"tags":["Company Oversight"],"summary":"Get company director KYC details","operationId":"getDirectorKyc","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDirectorKycResponse"}}}}}}},"/ba/v1/company/{companyId}/kyc/business-profile":{"get":{"tags":["Company Oversight"],"summary":"Get company business KYC profile","operationId":"getBusinessKyc","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyCompanyKycResponse"}}}}}}},"/ba/v1/company/{companyId}/insights":{"get":{"tags":["Company Oversight"],"summary":"Full insights snapshot for a partner company","description":"Returns a rich insights payload for a single partner company, including:\n- Company header (name, status, role, fleets, platform join date)\n- Driver worker-type distribution (Gig Active / Exclusive Active / Exited)\n- User exit reasons (grouped by termination reason)\n- Dispute response insights:\n- Incident reports (Theft + Accident counts)\n- Hiring conflicts received and initiated\n- Conflict issue breakdown\n- Monthly average tier-score (0–100) performance timeline\n","operationId":"getCompanyInsights","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyCompanyInsightsDto"}}}}}}},"/ba/v1/company/{companyId}/info":{"get":{"tags":["Company Oversight"],"summary":"Get company details","operationId":"getCompanyInfo","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyCompanyDto"}}}}}}},"/ba/v1/company/{companyId}/hiring-conflicts":{"get":{"tags":["Company Oversight"],"summary":"Get hiring conflicts received by a company","operationId":"getReceivedHiringConflicts","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseReportDto"}}}}}}},"/ba/v1/company/{companyId}/hiring-conflicts/total-count":{"get":{"tags":["Company Oversight"],"summary":"Get total unresolved hiring conflicts count for a company","operationId":"getTotalUnresolvedHiringConflictsCount","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyLong"}}}}}}},"/ba/v1/company/{companyId}/hiring-conflicts/responses":{"get":{"tags":["Company Oversight"],"summary":"Get hiring conflict responses for a company","operationId":"getHiringConflictResponses","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseReportDto"}}}}}}},"/ba/v1/company/{companyId}/drivers":{"get":{"tags":["Company Oversight"],"summary":"Get all drivers current/exited of a company","description":"\tSupports pagination and sorting.\n\n\t**Sorting**\n- **Allowed fields:** nin, fleetCategory, (default createdAt)\n- **Example:** ?sort=nin,asc&sort=createdAt,desc\n\n\t**Filtering**\n\t- status (ACTIVE, INACTIVE)\n\t- search *(optional)* first name, last name, full name, or NIN prefix\n","operationId":"getDrivers_1","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":20,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["Pending","Active","Exited"]}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseDriverWorkHistoryResponse"}}}}}}},"/ba/v1/company/{companyId}/driver-list":{"get":{"tags":["Company Oversight"],"summary":"Get a list of all drivers currently at company","description":"\tSupports pagination and sorting.\n\n\t**Sorting**\n- **Allowed fields:** nin, fleetCategory, (default createdAt)\n- **Example:** ?sort=nin,asc&sort=createdAt,desc\n","operationId":"getCompanyDriverList","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"isAssigned","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":20,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseCompanyDriverDto"}}}}}}},"/ba/v1/company/{companyId}/api-keys":{"get":{"tags":["Company Oversight"],"summary":"List all active API keys for a company","operationId":"getApiKeys","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListApiKeyDto"}}}}}}},"/ba/v1/company/trip-logs/all":{"get":{"tags":["Company Oversight"],"summary":"Get all trip logs across all companies","operationId":"getAllTripLogs","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseTripLogDto"}}}}}}},"/ba/v1/company/tier-distribution":{"get":{"tags":["Company Oversight"],"summary":"Company tier distribution for a single year","description":"Returns monthly counts of companies in Platinum, Gold, Silver and Risk tiers\nfor a single calendar year (January to December).\n\nCompanies with no performance metric for a month are counted as Risk.\n\n**Query Parameters**\n- `year` – optional calendar year to filter by (e.g. `2025`).\nDefaults to the current year if omitted. At most one year of data is ever returned.\n","operationId":"getCompanyTierDistribution","parameters":[{"name":"year","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListCompanyTierDistributionDto"}}}}}}},"/ba/v1/company/statistics":{"get":{"tags":["Company Oversight"],"summary":"Get companies with driver statistics","operationId":"getCompaniesStatistics","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseCompanyStatisticsDto"}}}}}}},"/ba/v1/company/performance-status":{"get":{"tags":["Company Oversight"],"summary":"Paged company performance status","description":"Returns paged company rows with company name, industry, number of drivers,\nand the previous month's performance status.\n\n**Query Parameters**\n- `search` – optional company name search term (case-insensitive, partial match)\n\n**Pagination & Sorting**\n- Default sort: `updatedAt DESC`\n- Example: `?search=acme&page=0&size=20&sort=updatedAt,desc`\n","operationId":"getCompanyPerformanceStatus","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["updatedAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseCompanyPerformanceStatusDto"}}}}}}},"/ba/v1/company/overview":{"get":{"tags":["Company Oversight"],"summary":"List all partner companies","description":"Returns a paginated overview of every company registered via the Logirate\nuser application, including:\n- Company name and email\n- Creator's role within the company\n- Typical delivery route\n- Total fleet vehicles registered\n- Total unique drivers ever listed (active + exited)\n- Account status (Active / Deleted / Suspended)\n\n**Pagination & Sorting**\n- Default sort: `createdAt DESC`\n- Example: `?page=0&size=20&sort=name,asc`\n","operationId":"getPartnerOverviews","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponsePartnerOverviewDto"}}}}}}},"/ba/v1/company/onboarding-timeline":{"get":{"tags":["Company Oversight"],"summary":"Onboarding timeline for companies in a single year","description":"Returns a chronological list of monthly company-registration counts\nfor a single calendar year, together with a running cumulative total.\nUseful for visualising growth trends over time.\n\nEach record contains:\n- `year` / `month` / `monthName`\n- `newCompanies` – registrations in that specific month\n- `cumulativeTotal` – total companies registered up to and including that month\n\n**Query Parameters**\n- `year` – optional calendar year to filter by (e.g. `2025`).\nDefaults to the current year if omitted. At most one year of data is ever returned.\n","operationId":"getCompanyOnboardingTimeline","parameters":[{"name":"year","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListCompanyOnboardingDto"}}}}}}},"/ba/v1/company/kyc":{"get":{"tags":["Company Oversight"],"summary":"Get KYC compliance status of companies","operationId":"getKycCompanies","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["kycSubmissionTime,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseKycComplianceDto"}}}}}}},"/ba/v1/company/kyc/pending-count":{"get":{"tags":["Company Oversight"],"summary":"Get pending KYC count","operationId":"getPendingKycCount","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyInteger"}}}}}}},"/ba/v1/auth/request-verification-token":{"get":{"tags":["Auth"],"summary":"Request verification token","operationId":"requestVerificationToken","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyString"}}}}}}},"/ba/v1/auth/forgot-password":{"get":{"tags":["Auth"],"summary":"Request password token","operationId":"resetPassword_2","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyString"}}}}}}},"/ba/v1/audit-logs":{"get":{"tags":["Audit Logs"],"summary":"Search audit logs with filters","operationId":"searchAuditLogs","parameters":[{"name":"entityType","in":"query","required":false,"schema":{"type":"string"}},{"name":"entityId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"userId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"operationType","in":"query","required":false,"schema":{"type":"string","enum":["Create","Update","Delete","Lookup Refresh","Login"]}},{"name":"authType","in":"query","required":false,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseAuditLogDto"}}}}}}},"/ba/v1/audit-logs/{id}":{"get":{"tags":["Audit Logs"],"summary":"Get a single audit log entry by ID","operationId":"getAuditLog","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyAuditLogDto"}}}}}}},"/api/v1/trip-logs/metrics":{"get":{"tags":["Trip Logs"],"summary":"Get trip log monthly metrics","description":"Returns monthly trip log rating metrics for the authenticated company.\n\n**Query parameters**\n- month (optional): Month in `yyyy-MM` format. Defaults to the current month in Africa/Lagos.\n\n**Response fields**\n- totalRatingsSent: completed trip logs requesting customer feedback in the selected month\n- totalRatingsReceived: ratings received for trips in the selected month\n- ratingConversionRate: `totalRatingsReceived / totalRatingsSent * 100`\n- totalRatingsSentChangePercentage: month-over-month percentage change for ratings sent\n- totalRatingsReceivedChangePercentage: month-over-month percentage change for ratings received\n","operationId":"getMonthlyMetrics","parameters":[{"name":"month","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyTripLogMonthlyMetricsDto"}}}}}}},"/api/v1/trip-logs/get-excel-sample":{"get":{"tags":["Trip Logs"],"summary":"Download trip log Excel sample","description":"Download a sample Excel file with the required columns for bulk trip log upload","operationId":"downloadTripLogSampleExcel","parameters":[{"name":"sampleVersion","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK"}}}},"/api/v1/trip-logs/driver/{driverId}":{"get":{"tags":["Trip Logs"],"summary":"Get trip logs by driver","description":"Get all trip logs for a specific driver.\n\n**Pagination & Sorting**\n- Supports standard pagination parameters\n- Example: `?page=0&size=10&sort=dateOfTrip,desc`\n","operationId":"getTripLogsByDriver","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseTripLogDto"}}}}}}},"/api/v1/reports/driver/{driverId}":{"get":{"tags":["Reports"],"summary":"Get driver's incident reports","description":"Get all incident reports for a specific driver across all employment histories.\n\n**Pagination & Sorting**\n- Supports standard pagination parameters\n- Example: `?page=0&size=10&sort=createdAt,desc`\n","operationId":"getReportsByDriver","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseReportDto"}}}}}}},"/api/v1/ratings/driver":{"get":{"tags":["Ratings"],"summary":"Get driver ratings","description":"Get the requesting company's aggregated rating for one of its drivers.\n\n**Query Parameters**\n- **id** (required): Driver ID\n- **company** (optional): Must match the authenticated company's ID; omitted defaults to that company.\n\n**Response**\n- **type**: Company name (e.g., \"ABC Logistics\")\n- **averageRating**: Overall rating at that company\n- **totalRatings**: Number of ratings at that company\n- **metricsAverage**: Average scores for each metric\n- **startDate**: Earliest employment start date\n- **endDate**: Latest employment end date (null if currently active)\n- **status**: Current employment status\n- **reportImpact**: Negative impact from incident reports\n","operationId":"getDriverRating","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"company","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDriverRatingResponse"}}}}}}},"/api/v1/partner-api-keys/redeem/{token}":{"get":{"tags":["Partner API Key"],"summary":"Redeem a partner invite link","description":"View-once: returns the plaintext API key and activates it. Fails on a second call.","operationId":"redeemInvite","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPartnerKeyRedemptionDto"}}}}}}},"/api/v1/mig-rated":{"get":{"tags":["Migrated Ratings Data"],"summary":"List migrated ratings and feedback","description":"`view`: RATINGS (has a rating), FEEDBACKS (has feedback), BOTH (all entries), COMBINED (has both).\n`from`/`to` filter on Date Submitted.\n","operationId":"search","parameters":[{"name":"view","in":"query","required":false,"schema":{"type":"string","default":"BOTH","enum":["RATINGS","FEEDBACKS","BOTH","COMBINED"]}},{"name":"driverId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["dateSubmitted,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseMigratedRatingDto"}}}}}}},"/api/v1/mig-rated/summary":{"get":{"tags":["Migrated Ratings Data"],"summary":"Monthly totals of migrated ratings and feedback","description":"`from`/`to` are months in `yyyy-MM` format, both optional.","operationId":"monthlySummary","parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListMigratedRatingSummaryDto"}}}}}}},"/api/v1/mig-rated/get-excel-sample":{"get":{"tags":["Migrated Ratings Data"],"summary":"Download migrated ratings Excel sample","operationId":"downloadSampleExcel","responses":{"200":{"description":"OK"}}}},"/api/v1/fleets/fleet-types":{"get":{"tags":["Fleets"],"summary":"Get all fleet types","description":"Returns every fleet type in the FleetType enum so clients can render available types without hardcoding them.","operationId":"getFleetTypes","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListFleetTypeDto"}}}}}}},"/api/v1/fleets/excel-sample":{"get":{"tags":["Fleets"],"summary":"Get fleet upload excel sample","description":"Download sample excel file for fleet upload","operationId":"downloadExcelSample","responses":{"200":{"description":"OK"}}}},"/api/v1/fleets/driver/{driverId}":{"get":{"tags":["Fleets"],"operationId":"getFleetAssignedToDriver","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyFleetDto"}}}}}}},"/api/v1/driver-onboarding/get-drivers":{"get":{"tags":["Driver Onboarding"],"summary":"Get onboarded drivers","description":"Returns a paged list of onboarded drivers.\n\n**Filtering & Search**\n- `userId` — filter by the recruiter who submitted the record\n- `search` — searches across firstName, lastName, phoneNumber, and NIN\n- `startDate` — filter records created on or after this date (inclusive, format: yyyy-MM-dd)\n- `endDate` — filter records created on or before this date (inclusive, format: yyyy-MM-dd)\n\n**Pagination & Sorting**\n- Supports standard pagination parameters\n- Default sort: createdAt DESC\n- Example: `?page=0&size=20&sort=createdAt,desc`\n","operationId":"getDrivers_2","parameters":[{"name":"userId","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseDriverOnboardingDto"}}}}}}},"/api/v1/dispatchers":{"get":{"tags":["Dispatchers"],"summary":"Find dispatcher by NIN","operationId":"findDriverByNin","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDriverLookupDto"}}}}}}},"/api/v1/dispatchers/{driverId}/statistics":{"get":{"tags":["Dispatchers"],"summary":"Get driver statistics","description":"Get comprehensive statistics for a driver including:\n- Current companies (active employments)\n- Previous companies (ended employments)\n- Total trips completed\n- Total ratings received\n- Average rating across all ratings\n","operationId":"getDriverStatistics_1","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDriverStatisticsDto"}}}}}}},"/api/v1/dispatchers/{driverId}/rating-metrics":{"get":{"tags":["Dispatchers"],"summary":"Get driver rating metrics","description":"Get daily average ratings for a driver in a given month.\nUsed to render the Rating Metric trend chart.\n\n**Parameters**\n- month: Optional, format `YYYY-MM` (e.g. `2025-02`). Defaults to current year-month.\n- year: Optional calendar year. When provided without month, returns metrics for the full year.\n- isLookup: Optional, defaults to false. When true, collates ratings across all companies.\n","operationId":"getDriverRatingMetrics_1","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"month","in":"query","required":false,"schema":{"type":"string"}},{"name":"year","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"isLookup","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"breakdown","in":"query","required":false,"schema":{"type":"string","default":"Monthly","enum":["Day by Day","Weekly","Monthly"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListDriverRatingMetrics"}}}}}}},"/api/v1/dispatchers/{driverId}/performance-stats":{"get":{"tags":["Dispatchers"],"summary":"Get driver performance statistics","description":"Get detailed performance statistics for a driver based on their employment history.\nIncludes company name, employment type, time at company, and incident report counts.\n\n**Pagination & Sorting**\n- Supports standard pagination parameters\n- Sorted by start date (most recent first)\n- Example: `?page=0&size=10`\n","operationId":"getDriverPerformanceStats_1","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["startDate,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseDriverPerformanceStatsDto"}}}}}}},"/api/v1/dispatchers/{driverId}/performance-insights":{"get":{"tags":["Dispatchers"],"summary":"Get driver performance insights","description":"Get daily weighted performance scores for a driver in a given month.\nUsed to render the Performance History chart.\n\n**Parameters**\n- month: Optional, format `YYYY-MM` (e.g. `2025-02`). Defaults to current year-month.\n- year: Optional calendar year. When provided without month, returns metrics for the full year.\n- isLookup: Optional, defaults to false. When true, collates ratings across all companies.\n","operationId":"getDriverPerformanceInsights_1","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"month","in":"query","required":false,"schema":{"type":"string"}},{"name":"year","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"isLookup","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"breakdown","in":"query","required":false,"schema":{"type":"string","default":"Monthly","enum":["Day by Day","Weekly","Monthly"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListDriverPerformanceMetrics"}}}}}}},"/api/v1/dispatchers/{driverId}/metrics":{"get":{"tags":["Dispatchers"],"summary":"Get driver performance metrics","description":"Get overall performance metrics for a driver including LogiScore,\nbaseline comparison, and incident distribution.\n\n**Parameters**\n- isLookup: Optional, defaults to false. When true, collates metrics across all companies.\n","operationId":"getDriverPerformanceMetrics_1","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"isLookup","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDriverPerformanceMetricsDto"}}}}}}},"/api/v1/dispatchers/{driverId}/history":{"get":{"tags":["Dispatchers"],"summary":"Get employment history reports","description":"Get all incident reports for a specific employment history.\n\n**Pagination & Sorting**\n- Supports standard pagination parameters\n- Example: `?page=0&size=10&sort=severityRating,desc`\n","operationId":"getReportsByEmploymentHistory","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"isLookup","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseReportDto"}}}}}}},"/api/v1/dispatchers/{driverId}/hiring-conflicts":{"get":{"tags":["Dispatchers"],"summary":"Get driver hiring conflicts","description":"Get all hiring conflict reports for a specific driver.\n\n**Pagination & Sorting**\n- Supports standard pagination parameters\n- Sorted by creation date (most recent first)\n- Example: `?page=0&size=10&sort=severityRating,desc`\n","operationId":"getDriverHiringConflicts_1","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseReportDto"}}}}}}},"/api/v1/dispatchers/{driverId}/feedbacks":{"get":{"tags":["Dispatchers"],"summary":"Get driver feedbacks (Customer Feedback Log)","description":"Retrieves the paginated customer feedback log for a driver within the current user's company. Optionally filter by whole-star rating (1-5).","operationId":"getDriverFeedbacks","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"rating","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseDriverFeedback"}}}}}}},"/api/v1/dispatchers/{driverId}/feedbacks/metrics":{"get":{"tags":["Dispatchers"],"summary":"Get driver feedback analysis metrics","description":"Returns positive/negative/neutral feedback counts, average rating, total feedback count and their change vs the preceding period. Defaults to the current month vs the previous month when no date range is provided. startDate/endDate are inclusive.","operationId":"getDriverFeedbackMetrics","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDriverFeedbackMetrics"}}}}}}},"/api/v1/dispatchers/{driverId}/feedbacks/counts":{"get":{"tags":["Dispatchers"],"summary":"Get driver feedback rating distribution","description":"Returns one chart point per whole-star rating (1-5) with the count of feedbacks for that rating, plus a final \"All\" point for the total count.","operationId":"getDriverFeedbackCounts","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListChartPointDto"}}}}}}},"/api/v1/dispatchers/{driverId}/exit-history":{"get":{"tags":["Dispatchers"],"summary":"Get all exit history for a driver","description":"Returns every exit record of the driver at the current user's company, most recent first.\nA driver may have more than one exit record when they were re-hired and left again.\n`rehired` indicates the driver has returned to this company at least once.\n","operationId":"getDriverExitHistory","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListDriverWorkHistoryResponse"}}}}}}},"/api/v1/dispatchers/{driverId}/employment-details":{"get":{"tags":["Dispatchers"],"summary":"Get driver employment details for your company","description":"Fetch driver details and assigned fleets specific to the current user's company.","operationId":"getDriverEmploymentDetails_1","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDriverEmploymentDetailsResponse"}}}}}}},"/api/v1/dispatchers/{driverId}/details":{"get":{"tags":["Dispatchers"],"summary":"Get driver details with incident reports","description":"Get detailed information about a dispatcher including full employment history\nwith incident reports.\n","operationId":"getDriverDetailsWithReports","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDriverDetailsDto"}}}}}}},"/api/v1/dispatchers/search":{"get":{"tags":["Dispatchers"],"summary":"Search driver by NIN","description":"Searches for a driver by their National Identification Number (NIN).\n","operationId":"searchDriverByNin_1","parameters":[{"name":"nin","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9]{11}$"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDriverLookupDto"}}}}}}},"/api/v1/dispatchers/ranked":{"get":{"tags":["Dispatchers"],"summary":"Get ranked drivers","description":"Get list of drivers ranked by their overall rating (lifetime)","operationId":"getRankedDrivers_1","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":20,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseDriverRatingResponse"}}}}}}},"/api/v1/dispatchers/previous-companies":{"get":{"tags":["Dispatchers"],"summary":"Fetch dispatchers previous companies","operationId":"getPreviousCompanies","parameters":[{"name":"nin","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListPreviousCompanyDto"}}}}}}},"/api/v1/dispatchers/get-excel-sample":{"get":{"tags":["Dispatchers"],"operationId":"downloadDispatcherSampleExcel","responses":{"200":{"description":"OK"}}}},"/api/v1/dispatchers/active-engagements":{"get":{"tags":["Dispatchers"],"summary":"Fetch driver's active company engagements","description":"Returns all companies where the driver currently has an active employment record.\n\n**Use case:** Identify whether a driver holds simultaneous active contracts at multiple companies.\n","operationId":"getActiveEngagements","parameters":[{"name":"nin","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListPreviousCompanyDto"}}}}}}},"/api/v1/configs/current":{"get":{"tags":["Logirate Config"],"operationId":"getConfig_1","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyLogirateConfigDto"}}}}}}},"/api/v1/configs/all":{"get":{"tags":["Logirate Config"],"operationId":"getHistoricalConfigs_1","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseLogirateConfigDto"}}}}}}},"/api/v1/company/vehicle-status":{"get":{"tags":["Company"],"summary":"Get company vehicle status chart data","description":"Returns the company's fleet status split as a two-point chart.\n\nThe list contains:\n- `Active Vehicles` with the blue palette color\n- `Inactive Vehicles` with the light-blue palette color\n","operationId":"getVehicleStatus","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListChartPointDto"}}}}}}},"/api/v1/company/vehicle-categories":{"get":{"tags":["Company"],"summary":"Get company vehicle categories","description":"\tReturns a list of valid categories the company recognizes and/or uses.\n","operationId":"getVehicleCategories","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListFleetTypeDto"}}}}}}},"/api/v1/company/transactions":{"get":{"tags":["Company"],"summary":"Get transaction logs","description":"Retrieve paginated transaction logs for the authenticated user's company.\nOptionally filter by transaction type and/or free-text search.\n\n**Filtering**\n- `type` *(optional)* — restrict to `Credit` or `Debit` transactions\n\n**Search**\n- `search` *(optional)* — case-insensitive partial match across:\n- `description` — the context label of the transaction (e.g. \"NIN search\", \"Lookup purchase\")\n- `transactionType` — the type name (`Credit` / `Debit`)\n- Blank or omitted → no text filter; results are controlled only by `type` if provided\n- `type` and `search` can be combined freely (e.g. `?type=Credit&search=lookup`)\n\n**Pagination & Sorting**\n- Default sort: `createdAt DESC`\n- Example: `?type=Credit&search=lookup&page=0&size=20`\n","operationId":"getTransactionLogs_1","parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["Debit","Credit"]}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseTransactionLogDto"}}}}}}},"/api/v1/company/settings":{"get":{"tags":["Company"],"summary":"Get current user's account settings","operationId":"getMySettings","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyAccountSettingsDto"}}}}}}},"/api/v1/company/search-drivers":{"get":{"tags":["Company"],"summary":"Search drivers","description":"\tPaginated search for drivers in company.\n\n\t**Filtering**\n\t- **search** *First name or last name of driver (optional)*\n\t- **isAssigned** *Filter by assignment status: true=assigned fleet, false=unassigned, not provided=all (default: false)*\n\n\t**Pagination & Sorting**\n\t- **page** *Page number (0-based, default: 0)*\n\t- **size** *Page size (default: 20)*\n\t- **sort** *Sort fields (example: ?sort=createdAt,desc)*\n","operationId":"searchDrivers","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"isAssigned","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":20,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["firstName,ASC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseLimitedDriverDto"}}}}}}},"/api/v1/company/report-summary":{"get":{"tags":["Company"],"summary":"Get company-wide driver report summary","description":"Returns an aggregated driver report summary across all **active** drivers in the company.\n\nUnlike the per-driver back-office endpoint, this call rolls the metrics up company-wide:\n- `activeDriverCount` – number of active drivers included in the aggregation\n- `logiScore` – average LogiScore (0–100) across active drivers\n- `baseline` – configured baseline threshold\n- `difference` – average LogiScore minus baseline\n- `incidentDistribution`:\n- Total accident reports + average severity (active drivers)\n- Total theft reports + average severity (active drivers)\n- Month-over-month report rate change\n","operationId":"getCompanyReportSummary","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyCompanyReportSummaryDto"}}}}}}},"/api/v1/company/rated-drivers":{"get":{"tags":["Company"],"summary":"Get paginated list of company's rated drivers","description":"Returns paginated list of all drivers in the authenticated company with their ratings and trip counts.\n\n**Fields:**\n- `driverName` – full name of the driver\n- `driverImageUrl` – profile image URL\n- `averageRating` – average rating across all trips with the company\n- `numberOfTrips` – total number of trips completed with the company\n- `logirateScore` – calculated logirate score for the driver\n\n**Filtering:**\n- `topRated` *(optional, default false)* — when `true`, returns only drivers whose\nactive LogiScore is **on/above the configured baseline**, ranked from highest to lowest.\nThe `sort` parameter is ignored.\n- `leastRated` *(optional, default false)* — when `true`, returns only drivers whose\nactive LogiScore is **below the configured baseline**, ranked from lowest to highest.\nThe `sort` parameter is ignored.\n- `topRated` and `leastRated` are mutually exclusive; passing both returns a 400 error.\n\n**Sorting (default):**\n- Default sort is `logirateScore` descending\n- Also supports sorting by driver name or employment start date\n- Example: ?sort=driverName,asc or ?sort=startDate,desc\n","operationId":"getRatedDrivers","parameters":[{"name":"topRated","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"leastRated","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["logirateScore,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseRatedDriverDto"}}}}}}},"/api/v1/company/overview-metrics":{"get":{"tags":["Company"],"summary":"Get company overview metrics","description":"Returns a summary of the authenticated company's active workforce and fleet.\n\n**Fields:**\n- `totalDrivers` – currently active drivers for the company\n- `totalVehicles` – total fleet vehicles on the company account\n- `totalAssignedDrivers` – unique drivers currently assigned to a vehicle\n- `exceedRate` – percentage of active drivers whose lifetime score with the company exceeds the configured baseline\n","operationId":"getOverviewMetrics","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyCompanyOverviewMetricsDto"}}}}}}},"/api/v1/company/lookup-units":{"get":{"tags":["Company"],"summary":"Get lookup unit counts","description":"Get the available and free lookup unit counts for the company.\n\n**Fields returned:**\n- `availableLookupCount` – purchased units remaining\n- `freeLookupCount` – free trial units remaining\n- `totalAvailableLookupCount` – sum of both\n","operationId":"getLookupUnitCounts_1","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyLookupUnitCountsDto"}}}}}}},"/api/v1/company/kyc/status":{"get":{"tags":["Company"],"summary":"Get company KYC status","description":"Get the KYC status of the currently signed-in company.\n\n**Possible KYC statuses:**\n- NotInitialized: KYC process not started\n- Pending: KYC submitted and under review\n- Accepted: KYC approved\n- Rejected: KYC rejected\n","operationId":"getKycStatus","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyCompanyKycStatusDto"}}}}}}},"/api/v1/company/kyc/director-info":{"get":{"tags":["Company"],"summary":"Get company director details","operationId":"getDirectorKyc_1","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyDirectorKycResponse"}}}}}}},"/api/v1/company/kyc/business-profile":{"get":{"tags":["Company"],"summary":"Get company business profile","operationId":"getBusinessKyc_1","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyCompanyKycResponse"}}}}}}},"/api/v1/company/hiring-conflicts":{"get":{"tags":["Company"],"summary":"Get all hiring conflicts received by the company","description":"Get all hiring conflict reports that were received by this company.\nThese are reports created by other companies when they attempt to hire drivers\nwho are already employed at this company.\n\n**Search**\n- `search` *(optional)* — case-insensitive partial match across:\n- `description` — the body text of the conflict report\n- `conflictIssue` — the reported issue filed against the conflict\n- `company.name` — name of the existing employer (this company)\n- `hiringCompany.name` — name of the company attempting the hire\n- Blank or omitted → no text filter; all conflicts for the company are returned\n\n**Pagination & Sorting**\n- Supports standard pagination parameters\n- Default sort: `createdAt DESC`\n- Example: `?search=transport&page=0&size=10&sort=createdAt,desc`\n","operationId":"getReceivedHiringConflicts_1","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseReportDto"}}}}}}},"/api/v1/company/hiring-conflicts/{conflictId}":{"get":{"tags":["Company"],"summary":"Get specific hiring conflict details","description":"Get detailed information about a specific hiring conflict including any reported issues\nand resolution status.\n\n**Authorization:**\n- Both the existing employer and the hiring company can view the conflict\n- The existing employer is the company where the driver currently works\n- The hiring company is the company attempting to hire the driver\n","operationId":"getConflictById","parameters":[{"name":"conflictId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyReportDto"}}}}}}},"/api/v1/company/hiring-conflicts/total-count":{"get":{"tags":["Company"],"summary":"Get total count of unresolved hiring conflicts","operationId":"getTotalUnresolvedHiringConflictsCount_1","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyLong"}}}}}}},"/api/v1/company/hiring-conflicts/responses":{"get":{"tags":["Company"],"summary":"Get all hiring conflict responses for the hiring company","description":"Get all hiring conflict reports of a company.\nThese are conflicts created when this company attempted to hire drivers\nwho were already employed elsewhere.\n\n**Search**\n- `search` *(optional)* — case-insensitive partial match across:\n- `description` — the body text of the conflict report\n- `conflictIssue` — the reported issue filed against the conflict\n- `companyName` — name of the existing employer\n- Blank or omitted → no text filter; all matching conflicts are returned\n\n**Pagination & Sorting**\n- Supports standard pagination parameters\n- Default sort: `createdAt DESC`\n- Example: `?search=contract&page=0&size=10&sort=createdAt,desc`\n","operationId":"getHiringConflictResponses_1","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["createdAt,DESC"],"items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseReportDto"}}}}}}},"/api/v1/company/get-company-info":{"get":{"tags":["Company"],"summary":"Get company details","operationId":"getCompanyDetail","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyCompanyDto"}}}}}}},"/api/v1/company/fleet-volumes":{"get":{"tags":["Company"],"summary":"Get fleet volume distribution by type","description":"\tReturns a list of chart points showing the distribution of fleet vehicles by type for the authenticated company.\n\n\t**Fields:**\n\t- `name` – fleet type (e.g., Truck, Van, Bike, etc.)\n\t- `value` – count of vehicles of that type\n","operationId":"getFleetVolumes","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListChartPointDto"}}}}}}},"/api/v1/company/drivers":{"get":{"tags":["Company"],"summary":"Get all drivers current/exited of a company","description":"\tSupports pagination and sorting.\n\n\t**Sorting**\n\t- Sorted in descending order by startDate\n\n\t**Filtering**\n\t- status: `exited` returns exited drivers; `not-exited` returns all non-exited statuses (including Pending)\n\t- search *(optional)* first name, last name, full name, or NIN prefix\n","operationId":"getDrivers_3","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","default":["startDate,DESC"],"items":{"type":"string"}}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseDriverWorkHistoryResponse"}}}}}}},"/api/v1/company/driver-status":{"get":{"tags":["Company"],"summary":"Get company driver status chart data","description":"Returns the company's currently active drivers split by employment type as a two-point chart.\n\nThe list contains:\n- `Gig Drivers` with the blue palette color\n- `Exclusive Drivers` with the light-blue palette color\n\nReturns 404 if the company does not exist.\n","operationId":"getDriverStatus","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListChartPointDto"}}}}}}},"/api/v1/company/driver-list":{"get":{"tags":["Company"],"summary":"Get a list of all drivers currently at company","description":"\tSupports pagination and sorting.\n\n\t**Sorting**\n- Sorted in descending order by startDate\n","operationId":"getCompanyDriverList_1","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"isAssigned","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":20,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyPagedDataResponseCompanyDriverDto"}}}}}}},"/api/v1/company/business-types":{"get":{"tags":["Company"],"summary":"Get all business types","description":"Returns every business type in the BusinessType enum so clients can render available types without hardcoding them.","operationId":"getBusinessTypes","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListBusinessTypeDto"}}}}}}},"/api/v1/auth/user-roles":{"get":{"tags":["Authentication"],"summary":"Get all Logirate roles","description":"Returns every role in the LogirateRole enum so clients can render available roles without hardcoding them.","operationId":"getRoles","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListLogirateRoleDto"}}}}}}},"/api/v1/auth/request-verification-token":{"get":{"tags":["Authentication"],"summary":"Request verification token","operationId":"requestVerificationToken_1","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyString"}}}}}}},"/api/v1/auth/forgot-password":{"get":{"tags":["Authentication"],"summary":"Request password token","operationId":"resetPassword_3","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyString"}}}}}}},"/api/v1/api-key/get-key-info":{"get":{"tags":["Api Key"],"summary":"Get the active API key for the company","operationId":"getApiKeys_1","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyListApiKeyDto"}}}}}}},"/ba/v1/drivers/verification/{driverId}/reject-driver":{"delete":{"tags":["Drivers"],"summary":"Reject driver details.","description":"Marks the driver's verification as Rejected and records the verification issue that triggered the rejection.","operationId":"rejectDriver_1","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"issueType","in":"query","required":true,"schema":{"type":"string","enum":["Duplicate driver image","Blurry driver image","Invalid NIN","Issue confirming DOB","Inaccurate driver name","Inaccurate driver gender"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyBoolean"}}}}}}},"/api/v1/trip-logs/{id}":{"delete":{"tags":["Trip Logs"],"summary":"Delete trip log","description":"Remove a trip log by ID","operationId":"deleteTripLog","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyVoid"}}}}}}},"/api/v1/partner-api-keys/{id}":{"delete":{"tags":["Partner API Key"],"summary":"Permanently delete a partner API key","operationId":"deleteKey","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyString"}}}}}}},"/api/v1/dispatchers/{driverId}/exit":{"delete":{"tags":["Dispatchers"],"summary":"Exit a driver","description":"Exit a driver from the company.\n\n**Request Body**\n- exitDate: The date of exit\n- exitReason: The reason for exit\n- rehireEligibility: Whether the driver is eligible for rehire\n- exitComments: Additional comments about the exit\n","operationId":"exitDriver","parameters":[{"name":"driverId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExitDriverRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyVoid"}}}}}}},"/api/v1/company/{companyId}":{"delete":{"tags":["Company"],"summary":"Delete company and all associated data","description":"Permanently soft-deletes a company and cascades the deletion:\n- Company `accountStatus` set to `Deleted` and `isDataDeleted = true`\n- All company users marked as `Deleted` (login revoked)\n- API key hard-deleted\n\n**Security:**\n- Requires current user's password for confirmation\n- Password must match the authenticated user's password\n","operationId":"deleteCompany","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteCompanyRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseBodyVoid"}}}}}}}},"components":{"schemas":{"ResetDriversStatusRequest":{"type":"object","properties":{"nins":{"type":"array","items":{"type":"string"},"minItems":1}},"required":["nins"]},"ResponseBodyBoolean":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"boolean"}}},"ComplaintFeedbackRequest":{"type":"object","properties":{"feedback":{"type":"string","minLength":1}},"required":["feedback"]},"UpdateOnboardedDriverStatus":{"type":"object","properties":{"status":{"type":"string","enum":["Pending","Confirmed","Rejected","Processed"]},"issue":{"type":"string","enum":["Unclear rider's card","Unclear profile picture","Irrelevant image uploaded"]}},"required":["status"]},"ResponseBodyString":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"string"}}},"UpdateReportRequest":{"type":"object","properties":{"description":{"type":"string","maxLength":1000,"minLength":0},"severityRating":{"type":"integer","format":"int32","maximum":10,"minimum":1},"reportType":{"type":"string","enum":["Hiring Conflict","Accident","Theft"]},"companyId":{"type":"string","format":"uuid"}}},"ReportDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"description":{"type":"string"},"severityRating":{"type":"integer","format":"int32"},"reportType":{"type":"string","enum":["Hiring Conflict","Accident","Theft"]},"companyName":{"type":"string"},"driverName":{"type":"string"},"driverId":{"type":"string","format":"uuid"},"hiringCompanyName":{"type":"string"},"conflictIssue":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ResponseBodyReportDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ReportDto"}}},"RegeneratePartnerKeyRequest":{"type":"object","properties":{"id":{"type":"string","minLength":1},"expirationDays":{"type":"integer","format":"int32","maximum":3650,"minimum":1}},"required":["expirationDays","id"]},"PartnerApiKeyDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"partnerName":{"type":"string"},"partnerEmail":{"type":"string"},"environment":{"type":"string","enum":["Test","Live"]},"status":{"type":"string","enum":["Pending","Active","Frozen"]},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"lastUsedAt":{"type":"string","format":"date-time"}}},"ResponseBodyPartnerApiKeyDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PartnerApiKeyDto"}}},"MigratedRatingRequest":{"type":"object","properties":{"dateSubmitted":{"type":"string","format":"date"},"driverNumber":{"type":"string"},"rating":{"type":"number","maximum":5.00,"minimum":1.00}},"required":["dateSubmitted","rating"]},"MigratedRatingDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"dateSubmitted":{"type":"string","format":"date"},"rating":{"type":"number"},"feedback":{"type":"string"},"driverNumber":{"type":"string"},"driverId":{"type":"string","format":"uuid"},"driverName":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ResponseBodyMigratedRatingDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/MigratedRatingDto"}}},"MigratedFeedbackRequest":{"type":"object","properties":{"dateSubmitted":{"type":"string","format":"date"},"driverNumber":{"type":"string"},"feedback":{"type":"string","maxLength":5000,"minLength":0}},"required":["dateSubmitted","feedback"]},"CreateFleetRequest":{"type":"object","properties":{"vehicleCategory":{"type":"string","description":"Type of vehicle","enum":["Keke","Bicycle","Bus","Car","Bike","Tanker","Trailer","Truck","Lorry","Van"],"example":"Bike"},"plateNumber":{"type":"string","description":"License plate number of the vehicle","example":"KJA-123-AB","minLength":1}},"required":["plateNumber","vehicleCategory"]},"FleetDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"fleetPlateNumber":{"type":"string"},"type":{"type":"string","enum":["Keke","Bicycle","Bus","Car","Bike","Tanker","Trailer","Truck","Lorry","Van"]},"assignedDriver":{"type":"string"},"status":{"type":"string","enum":["Active","Delisted"]}}},"ResponseBodyFleetDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/FleetDto"}}},"UpdateDriverRequest":{"type":"object","description":"Request to update a driver. Omitted fields are left unchanged.","properties":{"firstName":{"type":"string","description":"Identity field. Only applied for the onboarding company and locked once the driver's NIN is confirmed."},"lastName":{"type":"string","description":"Identity field. Only applied for the onboarding company and locked once the driver's NIN is confirmed."},"gender":{"type":"string","description":"Identity field. Only applied for the onboarding company and locked once the driver's NIN is confirmed.","enum":["Male","Female"]},"nin":{"type":"string","description":"Identity field. Only applied for the onboarding company and locked once the driver's NIN is confirmed."},"dateOfBirth":{"type":"string","format":"date","description":"Identity field. Only applied for the onboarding company and locked once the driver's NIN is confirmed."},"phoneNumber":{"type":"string"},"email":{"type":"string"},"address":{"type":"string"},"fleetCategory":{"type":"string","enum":["Keke","Bicycle","Bus","Car","Bike","Tanker","Trailer","Truck","Lorry","Van"]},"employmentType":{"type":"string","enum":["Exclusive","Gig","N/A"]},"startDate":{"type":"string","format":"date"},"patnerIdentifier":{"type":"string","description":"Partner-supplied rider reference, unique per company"},"profilePicture":{"type":"string","format":"binary","description":"Driver's profile picture. Takes precedence over profilePictureUrl."},"profilePictureUrl":{"type":"string","description":"Publicly accessible URL of the driver's picture, used when no file is uploaded"}}},"ResponseBodyUpdateDriverResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/UpdateDriverResponse"}}},"UpdateDriverResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"firstName":{"type":"string"},"lastName":{"type":"string"},"gender":{"type":"string","enum":["Male","Female"]},"dateOfBirth":{"type":"string","format":"date"},"phoneNumber":{"type":"string"},"email":{"type":"string"},"address":{"type":"string"},"profilePicture":{"type":"string"},"imageUploaded":{"type":"boolean"},"fleetCategory":{"type":"string","enum":["Keke","Bicycle","Bus","Car","Bike","Tanker","Trailer","Truck","Lorry","Van"]},"employmentType":{"type":"string","enum":["Exclusive","Gig","N/A"]},"startDate":{"type":"string","format":"date"},"timeAtCompany":{"type":"string"},"patnerIdentifier":{"type":"string"},"currentCompanyName":{"type":"string"},"currentCompanyId":{"type":"string","format":"uuid"}}},"UpdateContactRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"email":{"type":"string","minLength":1}},"required":["email","name"]},"ContactDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"totalTrips":{"type":"integer","format":"int64"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ResponseBodyContactDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ContactDto"}}},"VerificationRequest":{"type":"object","properties":{"nin":{"type":"string"},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1}},"required":["firstName","lastName","nin"]},"ResponseBodyVerificationDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/VerificationDto"}}},"VerificationDto":{"type":"object","properties":{"firstName":{"type":"string"},"middleName":{"type":"string"},"lastName":{"type":"string"},"phone":{"type":"string"},"photo":{"type":"string"},"dateOfBirth":{"type":"string","format":"date"},"address":{"type":"string"},"gender":{"type":"string","enum":["Male","Female"]}}},"SetTierThresholdRequest":{"type":"object","properties":{"platinum":{"type":"integer","format":"int32"},"gold":{"type":"integer","format":"int32"},"silver":{"type":"integer","format":"int32"}},"required":["gold","platinum","silver"]},"Bundle":{"type":"object","properties":{"bundleId":{"type":"integer","format":"int32"},"newPrice":{"type":"number"},"originalPrice":{"type":"number"},"discount":{"type":"integer","format":"int32"},"numberOfLookups":{"type":"integer","format":"int32"}}},"LogirateConfigDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"unitPrice":{"type":"number"},"apiRate":{"type":"number"},"baseline":{"type":"number"},"ratingThreshold":{"type":"integer","format":"int64"},"tierThreshold":{"$ref":"#/components/schemas/PerformanceTier"},"createdAt":{"type":"string","format":"date-time"},"expiredAt":{"type":"string","format":"date-time"},"pricingBundle":{"type":"array","items":{"$ref":"#/components/schemas/Bundle"}}}},"PerformanceTier":{"type":"object","properties":{"platinum":{"type":"integer","format":"int32"},"gold":{"type":"integer","format":"int32"},"silver":{"type":"integer","format":"int32"},"risk":{"type":"integer","format":"int32"}}},"ResponseBodyLogirateConfigDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/LogirateConfigDto"}}},"SetRatingThresholdRequest":{"type":"object","properties":{"ratingThreshold":{"type":"integer","format":"int64","minimum":1}},"required":["ratingThreshold"]},"SetLookupPricingRequest":{"type":"object","properties":{"unitPrice":{"type":"number","minimum":0.01},"apiRate":{"type":"number","minimum":0.01},"pricingBundle":{"type":"array","items":{"$ref":"#/components/schemas/SetupLookupBundleRequest"}}}},"SetupLookupBundleRequest":{"type":"object","properties":{"newPrice":{"type":"number","minimum":1.00},"originalPrice":{"type":"number","minimum":1.00},"discount":{"type":"integer","format":"int32","minimum":1},"numberOfLookups":{"type":"integer","format":"int32","minimum":1}},"required":["discount","newPrice","numberOfLookups","originalPrice"]},"SetBaselinePercentRequest":{"type":"object","properties":{"baseline":{"type":"number","minimum":0.00}}},"ResponseBodyInteger":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"integer","format":"int32"}}},"BulkCompanyEmailRequest":{"type":"object","description":"Request to send the same email to one or more companies. The uploaded HTML template is rendered per company with its name substituted for the `${companyName}` placeholder.","properties":{"subject":{"type":"string","description":"Subject of the email","example":"Important update for all partners","minLength":1},"companyIds":{"type":"array","description":"IDs of the companies to send the email to","items":{"type":"string","format":"uuid"},"minItems":1},"template":{"type":"string","format":"binary","description":"HTML email template file containing the ${companyName} placeholder"}},"required":["companyIds","subject"]},"BulkCompanyEmailResult":{"type":"object","description":"Outcome of a bulk company email dispatch","properties":{"recipients":{"type":"integer","format":"int32","description":"Number of companies the email was targeted at"},"sentCount":{"type":"integer","format":"int32","description":"Number of emails sent successfully"},"failedCount":{"type":"integer","format":"int32","description":"Number of companies the email could not be sent to"},"failures":{"type":"array","description":"Per-recipient failure details (empty when everything succeeded)","items":{"$ref":"#/components/schemas/Failure"}}}},"Failure":{"type":"object","properties":{"companyId":{"type":"string","format":"uuid"},"email":{"type":"string"},"reason":{"type":"string"}}},"ResponseBodyBulkCompanyEmailResult":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/BulkCompanyEmailResult"}}},"ResetPasswordRequest":{"type":"object","properties":{"token":{"type":"string","minLength":1},"newPassword":{"type":"string","maxLength":2147483647,"minLength":8},"confirmPassword":{"type":"string","minLength":1}},"required":["confirmPassword","newPassword","token"]},"GetUserResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"accountRole":{"type":"string","enum":["SuperAdmin","WaitListAdmin","Admin","User"]},"role":{"type":"string"},"verificationStatus":{"type":"string","enum":["Verified","Pending","Failed"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"phoneNumber":{"type":"string"},"profilePicture":{"type":"string"},"companyId":{"type":"string","format":"uuid"},"isWithinFreeTrial":{"type":"boolean"},"registrationNumber":{"type":"string"},"isTestMode":{"type":"boolean"},"gender":{"type":"string","enum":["Male","Female"]}}},"LoginResponseGetUserResponse":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/GetUserResponse"},"accessToken":{"$ref":"#/components/schemas/TokenResponse"},"refreshToken":{"$ref":"#/components/schemas/TokenResponse"}}},"ResponseBodyLoginResponseGetUserResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/LoginResponseGetUserResponse"}}},"TokenResponse":{"type":"object","properties":{"token":{"type":"string"},"expiryTimeInSeconds":{"type":"integer","format":"int64"}}},"LoginRequestDto":{"type":"object","properties":{"email":{"type":"string","minLength":1},"password":{"type":"string","maxLength":2147483647,"minLength":8}},"required":["email","password"]},"WaitlistRequest":{"type":"object","properties":{"email":{"type":"string","minLength":1},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1}},"required":["email","firstName","lastName"]},"CreateTripLogRequest":{"type":"object","properties":{"driverId":{"type":"string","format":"uuid"},"customerEmail":{"type":"array","items":{"type":"string"},"minItems":1},"dateOfTrip":{"type":"string","format":"date"},"notes":{"type":"string","maxLength":1000,"minLength":0},"isCompleted":{"type":"boolean"},"patnerIdentifier":{"type":"string","maxLength":255,"minLength":0}},"required":["customerEmail","dateOfTrip","driverId"]},"ResponseBodyListTripLogDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/TripLogDto"}}}},"TripLogDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"driverId":{"type":"string","format":"uuid"},"driverName":{"type":"string"},"companyName":{"type":"string"},"customerEmail":{"type":"string"},"dateOfTrip":{"type":"string","format":"date"},"notes":{"type":"string"},"ratingEmailSent":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"patnerIdentifier":{"type":"string"},"completed":{"type":"boolean"}}},"ResponseBodyTripLogDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/TripLogDto"}}},"RateTripRequest":{"type":"object","properties":{"tripId":{"type":"string","format":"uuid"},"rating":{"type":"number","maximum":5.0,"minimum":0.0},"comments":{"type":"string","maxLength":1000,"minLength":0}},"required":["rating","tripId"]},"ResponseBodyVoid":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{}}},"EndTripRequest":{"type":"object","properties":{"tripLogId":{"type":"string","format":"uuid"},"endDateOfTrip":{"type":"string","format":"date"}},"required":["tripLogId"]},"CreateReportRequest":{"type":"object","properties":{"driverId":{"type":"string","format":"uuid"},"companyId":{"type":"string","format":"uuid"},"description":{"type":"string","maxLength":1000,"minLength":0},"severityRating":{"type":"integer","format":"int32","maximum":5,"minimum":1},"reportType":{"type":"string","enum":["Hiring Conflict","Accident","Theft"]}},"required":["driverId","reportType","severityRating"]},"RateDriverRequest":{"type":"object","properties":{"driverId":{"type":"string","format":"uuid"},"tripId":{"type":"string","format":"uuid"},"rating":{"type":"number","maximum":5.0,"minimum":0.0}},"required":["driverId","rating"]},"InvitePartnerRequest":{"type":"object","properties":{"partnerName":{"type":"string","minLength":1},"partnerEmail":{"type":"string","minLength":1},"environment":{"type":"string","enum":["Test","Live"]},"expirationDays":{"type":"integer","format":"int32","maximum":3650,"minimum":1}},"required":["environment","expirationDays","partnerEmail","partnerName"]},"ResponseBodyListMigratedRatingDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/MigratedRatingDto"}}}},"NewsletterSubscriptionRequest":{"type":"object","properties":{"email":{"type":"string","minLength":1}},"required":["email"]},"BookConsultationRequest":{"type":"object","properties":{"email":{"type":"string","minLength":1},"fullName":{"type":"string","minLength":1},"phone":{"type":"string","minLength":1},"option":{"type":"string","minLength":1}},"required":["email","fullName","option","phone"]},"ConsultationResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string"},"fullName":{"type":"string"},"phone":{"type":"string"},"option":{"type":"string"},"status":{"type":"string","enum":["Pending","Contacted","Closed"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ResponseBodyConsultationResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ConsultationResponse"}}},"AssignFleetRequest":{"type":"object","properties":{"plateNumber":{"type":"string","description":"Plate number of the vehicle to assign"},"driverId":{"type":"string","format":"uuid","description":"ID of the driver to assign the fleet to"},"employmentType":{"type":"string","description":"Type of employment for this assignment","enum":["Exclusive","Gig","N/A"],"example":"Exclusive"}},"required":["driverId","employmentType","plateNumber"]},"AddDriverOnboardingRequest":{"type":"object","properties":{"userId":{"type":"string","minLength":1},"userName":{"type":"string","minLength":1},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"email":{"type":"string"},"phoneNumber":{"type":"string","minLength":1},"dateOfBirth":{"type":"string","format":"date"},"address":{"type":"string"},"gender":{"type":"string","enum":["Male","Female"]},"employmentType":{"type":"string","enum":["Exclusive","Gig","N/A"]},"fleetTypes":{"type":"array","items":{"type":"string"}},"nin":{"type":"string"},"previousEmployer":{"type":"string"},"employementStartDate":{"type":"string","format":"date"},"profilePicture":{"type":"string","format":"binary"},"driverCard":{"type":"string","format":"binary"}},"required":["dateOfBirth","employmentType","firstName","lastName","nin","phoneNumber","userId","userName"]},"DriverOnboardingDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"userName":{"type":"string"},"userId":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"phoneNumber":{"type":"string"},"profilePicture":{"type":"string"},"dateOfBirth":{"type":"string","format":"date"},"driverCard":{"type":"string"},"address":{"type":"string"},"gender":{"type":"string","enum":["Male","Female"]},"employmentType":{"type":"string","enum":["Exclusive","Gig","N/A"]},"fleetTypes":{"type":"array","items":{"type":"string"}},"previousEmployer":{"type":"string"},"employementStartDate":{"type":"string","format":"date"},"createdAt":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["Pending","Confirmed","Rejected","Processed"]}}},"ResponseBodyDriverOnboardingDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/DriverOnboardingDto"}}},"ReUploadDriverNinRequest":{"type":"object","properties":{"driverId":{"type":"string","format":"uuid"},"firstName":{"type":"string"},"lastName":{"type":"string"},"profilePicture":{"type":"string","format":"binary"},"dateOfBirth":{"type":"string","format":"date"},"gender":{"type":"string","enum":["Male","Female"]},"nin":{"type":"string"}},"required":["driverId"]},"DriverVerificationComplaintRequest":{"type":"object","properties":{"driverId":{"type":"string","format":"uuid"},"verificationIssueLog":{"type":"string","minLength":1}},"required":["driverId","verificationIssueLog"]},"RehireDriverRequest":{"type":"object","properties":{"driverId":{"type":"string","format":"uuid"},"firstName":{"type":"string"},"lastName":{"type":"string"},"startDate":{"type":"string","format":"date"},"phoneNumber":{"type":"string"},"email":{"type":"string"},"profilePicture":{"type":"string","format":"binary"},"address":{"type":"string"},"plateNumber":{"type":"string"},"employmentType":{"type":"string","enum":["Exclusive","Gig","N/A"]}},"required":["driverId","employmentType"]},"EmploymentHistoryDto":{"type":"object","properties":{"companyName":{"type":"string"},"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"terminationReason":{"type":"string"},"totalTheftReport":{"type":"integer","format":"int64"},"employmentType":{"type":"string","enum":["Exclusive","Gig","N/A"]},"totalAccidentReport":{"type":"integer","format":"int64"},"rating":{"type":"number"},"reHiringEligibility":{"type":"boolean"},"phoneNumber":{"type":"string"},"address":{"type":"string"},"profilePicture":{"type":"string"},"patnerIdentifier":{"type":"string"}}},"RehireDriverResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"currentEmployment":{"$ref":"#/components/schemas/EmploymentHistoryDto"},"profilePicture":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"phoneNumber":{"type":"string"},"dateOfBirth":{"type":"string","format":"date"},"numberOfFleet":{"type":"integer","format":"int32"},"gender":{"type":"string","enum":["Male","Female"]}}},"ResponseBodyRehireDriverResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/RehireDriverResponse"}}},"CreateDriverRequest":{"type":"object","properties":{"profilePicture":{"type":"string","format":"binary"},"profilePictureUrl":{"type":"string"},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"email":{"type":"string"},"phoneNumber":{"type":"string","minLength":1},"startDate":{"type":"string","format":"date"},"fleetCategory":{"type":"string","enum":["Keke","Bicycle","Bus","Car","Bike","Tanker","Trailer","Truck","Lorry","Van"]},"gender":{"type":"string","enum":["Male","Female"]},"dateOfBirth":{"type":"string","format":"date"},"nin":{"type":"string"},"employmentType":{"type":"string","enum":["Exclusive","Gig","N/A"]},"address":{"type":"string"},"patnerIdentifier":{"type":"string"}},"required":["dateOfBirth","employmentType","firstName","fleetCategory","lastName","nin","phoneNumber"]},"CreateDriverResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"currentEmployment":{"$ref":"#/components/schemas/EmploymentHistoryDto"},"profilePicture":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"phoneNumber":{"type":"string"},"dateOfBirth":{"type":"string","format":"date"},"numberOfFleet":{"type":"integer","format":"int32"},"gender":{"type":"string","enum":["Male","Female"]},"patnerIdentifier":{"type":"string"}}},"ResponseBodyListCreateDriverResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CreateDriverResponse"}}}},"ResponseBodyCreateDriverResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CreateDriverResponse"}}},"HireDriverRequest":{"type":"object","properties":{"nin":{"type":"string"},"startDate":{"type":"string","format":"date"},"phoneNumber":{"type":"string"},"profilePicture":{"type":"string","format":"binary"},"address":{"type":"string","minLength":1},"plateNumber":{"type":"string"},"employmentType":{"type":"string","enum":["Exclusive","Gig","N/A"]}},"required":["address","employmentType","nin","startDate"]},"CreateDemoRequest":{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"phoneNumber":{"type":"string","minLength":1},"businessEmail":{"type":"string","minLength":1},"companyName":{"type":"string","minLength":1},"websiteUrl":{"type":"string"},"country":{"type":"string","minLength":1},"fleetSize":{"type":"string","minLength":1},"hearAboutUs":{"type":"string"},"hearAboutUsOther":{"type":"string"},"message":{"type":"string"}},"required":["businessEmail","companyName","country","firstName","fleetSize","lastName","phoneNumber"]},"DemoRequestResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"firstName":{"type":"string"},"lastName":{"type":"string"},"phoneNumber":{"type":"string"},"businessEmail":{"type":"string"},"companyName":{"type":"string"},"websiteUrl":{"type":"string"},"country":{"type":"string"},"fleetSize":{"type":"string"},"hearAboutUs":{"type":"string"},"hearAboutUsOther":{"type":"string"},"message":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"ResponseBodyDemoRequestResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/DemoRequestResponse"}}},"CreateContactRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"email":{"type":"string","minLength":1}},"required":["email","name"]},"PurchaseLookupRequest":{"type":"object","properties":{"purchaseType":{"type":"string","enum":["DirectUnits","Bundle"]},"quantity":{"type":"integer","format":"int64","minimum":1},"bundle":{"type":"string"},"callbackUrl":{"type":"string"}},"required":["purchaseType"]},"LookupPurchaseDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"amount":{"type":"number"},"amountInMinor":{"type":"integer","format":"int64"},"quantity":{"type":"integer","format":"int64"},"transactionRef":{"type":"string"},"paymentMethod":{"type":"string"},"paymentProvider":{"type":"string"},"paymentStatus":{"type":"string"},"authorizationUrl":{"type":"string"},"accessCode":{"type":"string"},"gatewayMessage":{"type":"string"},"availableLookUpCount":{"type":"number"},"createdAt":{"type":"string","format":"date-time"}}},"ResponseBodyLookupPurchaseDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/LookupPurchaseDto"}}},"CompanyKycRequest":{"type":"object","properties":{"directorOneId":{"type":"string","format":"binary"},"directorOneIdentificationType":{"type":"string","enum":["NIN","Passport","Driver's License"]},"directorTwoId":{"type":"string","format":"binary"},"directorTwoIdentificationType":{"type":"string","enum":["NIN","Passport","Driver's License"]}}},"ReportConflictIssueRequest":{"type":"object","properties":{"issueType":{"type":"string","maxLength":5000,"minLength":10}},"required":["issueType"]},"CreateCompanyRequest":{"type":"object","properties":{"phoneNumber":{"type":"string"},"businessName":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9 &]+$"},"email":{"type":"string","minLength":1},"password":{"type":"string","maxLength":2147483647,"minLength":8},"accountCreatorRole":{"type":"string","enum":["Fleet Manager","Fleet Owner","Founder/C-Level","Operations Manager","Operations Director","Distribution Manager","Logistics Manager","Role Not Listed"]},"customRole":{"type":"string"},"registrationNumber":{"type":"string"},"fleetSize":{"type":"string","enum":["0 - 10","10 - 50","50 - 100","100 - 500","500+"]},"typicalRoute":{"type":"array","items":{"type":"string","enum":["Inter State","Intra State","Rural","Long Haul"]},"minItems":1},"deliveryVehicleTypes":{"type":"array","items":{"type":"string","enum":["Keke","Bicycle","Bus","Car","Bike","Tanker","Trailer","Truck","Lorry","Van"]},"minItems":1},"industryType":{"type":"string"},"businessType":{"type":"string","enum":["Sole Proprietor","Limited Liability Company","Public Liability Company"]}},"required":["accountCreatorRole","businessName","deliveryVehicleTypes","email","fleetSize","industryType","password","registrationNumber","typicalRoute"]},"AccountSettingsDto":{"type":"object","properties":{"companyId":{"type":"string","format":"uuid"},"notified":{"type":"boolean"},"autosave":{"type":"boolean"}}},"CompanyDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"phoneNumber":{"type":"string"},"accountCreatorRole":{"type":"string"},"registrationNumber":{"type":"string"},"fleetSize":{"type":"string","enum":["0 - 10","10 - 50","50 - 100","100 - 500","500+"]},"fleetCategories":{"type":"array","items":{"type":"string","enum":["Keke","Bicycle","Bus","Car","Bike","Tanker","Trailer","Truck","Lorry","Van"]}},"totalDrivers":{"type":"integer","format":"int64"},"kycStatus":{"type":"string","enum":["Required","Pending","Accepted","Declined"]},"industryType":{"type":"string"},"businessType":{"type":"string","enum":["Sole Proprietor","Limited Liability Company","Public Liability Company"]},"status":{"type":"string"},"typicalRoute":{"type":"array","items":{"type":"string","enum":["Inter State","Intra State","Rural","Long Haul"]}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"availableLookupCount":{"type":"number"},"freeLookupCount":{"type":"number"},"totalAvailableLookupCount":{"type":"number"},"totalLookupInitiated":{"type":"integer","format":"int64"},"profilePicture":{"type":"string"},"isWithinFreeTrial":{"type":"boolean"},"isTestMode":{"type":"boolean"},"isDeleted":{"type":"boolean"},"accountSettings":{"$ref":"#/components/schemas/AccountSettingsDto"}}},"ResponseBodyCompanyDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CompanyDto"}}},"AccountVerificationRequestDto":{"type":"object","properties":{"email":{"type":"string","minLength":1},"otp":{"type":"string","maxLength":6,"minLength":6}},"required":["email","otp"]},"ApiKeyDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"keyId":{"type":"string"},"environment":{"type":"string","enum":["Test","Live"]},"active":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"plainKey":{"type":"string"}}},"ResponseBodyApiKeyDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ApiKeyDto"}}},"UpdateConsultationStatusRequest":{"type":"object","properties":{"status":{"type":"string","enum":["Pending","Contacted","Closed"]}},"required":["status"]},"UpdateCompanyRequest":{"type":"object","description":"Request to update mutable company details. All fields are optional; null or blank values are ignored so existing data is preserved.","properties":{"name":{"type":"string","description":"Company/business display name","maxLength":200,"minLength":0},"phoneNumber":{"type":"string","description":"Company phone number (e.g. 9031380833). Blank/omitted values are ignored.","example":9031380833},"industryType":{"type":"string","description":"Industry type (e.g. Logistics, Fishery, FMCG)","maxLength":100,"minLength":0},"fleetSize":{"type":"string","description":"Fleet size range","enum":["0 - 10","10 - 50","50 - 100","100 - 500","500+"]},"typicalRoute":{"type":"array","description":"Typical delivery routes","items":{"type":"string","enum":["Inter State","Intra State","Rural","Long Haul"]}},"creatorRole":{"type":"string","description":"Role of the person who created the account","enum":["Fleet Manager","Fleet Owner","Founder/C-Level","Operations Manager","Operations Director","Distribution Manager","Logistics Manager","Role Not Listed"]},"customRole":{"type":"string","description":"Custom role label (used when creatorRole is RoleNotListed)","maxLength":100,"minLength":0},"deliveryVehicleType":{"type":"array","description":"List of vehicle types used by the company","items":{"type":"string","enum":["Keke","Bicycle","Bus","Car","Bike","Tanker","Trailer","Truck","Lorry","Van"]}},"profilePicture":{"type":"string","format":"binary","description":"Company logo / profile picture (multipart upload)"}}},"UpdateRatingWeightsRequest":{"type":"object","properties":{"metricWeights":{"type":"object","additionalProperties":{"type":"number"}},"reportTypeWeights":{"type":"object","additionalProperties":{"type":"number"}},"otherWeights":{"type":"object","additionalProperties":{"type":"number"}}},"required":["metricWeights","reportTypeWeights"]},"RatingWeightsResponse":{"type":"object","properties":{"metricWeights":{"type":"object","additionalProperties":{"type":"number"}},"reportTypeWeights":{"type":"object","additionalProperties":{"type":"number"}},"otherWeights":{"type":"object","additionalProperties":{"type":"number"}},"valid":{"type":"boolean"}}},"ResponseBodyRatingWeightsResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/RatingWeightsResponse"}}},"ChangePasswordRequest":{"type":"object","properties":{"oldPassword":{"type":"string","minLength":1},"newPassword":{"type":"string","maxLength":2147483647,"minLength":8},"confirmPassword":{"type":"string","minLength":1}},"required":["confirmPassword","newPassword","oldPassword"]},"UpdateEmploymentRequest":{"type":"object","description":"Request to update driver employment details","properties":{"phoneNumber":{"type":"string","description":"Driver's phone number"},"address":{"type":"string","description":"Driver's address","example":123},"fleetCategory":{"type":"string","description":"Fleet/Vehicle category assigned to the driver","enum":["Keke","Bicycle","Bus","Car","Bike","Tanker","Trailer","Truck","Lorry","Van"]},"employmentType":{"type":"string","description":"Type of employment (Exclusive or Contractual)","enum":["Exclusive","Gig","N/A"]},"profilePicture":{"type":"string","format":"binary","description":"Driver's profile picture"},"startDate":{"type":"string","format":"date","description":"Employment start date (useful for correcting initial errors)","example":"2024-01-15"},"patnerIdentifier":{"type":"string","description":"Partner-supplied rider reference (e.g. an external system's rider ID), unique per company"}}},"UpdateTestModeRequest":{"type":"object","description":"Request to toggle a company's sandbox/test-mode routing for dashboard requests.","properties":{"isTestMode":{"type":"boolean","description":"true to route this company's bearer-authenticated requests to the sandbox schema; false for production."}},"required":["isTestMode"]},"UpdateAccountSettingsRequest":{"type":"object","properties":{"notified":{"type":"boolean"},"autosave":{"type":"boolean"}}},"ResponseBodyAccountSettingsDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/AccountSettingsDto"}}},"PagedDataResponseWaitlistResponse":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/WaitlistResponse"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseWaitlistResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseWaitlistResponse"}}},"WaitlistResponse":{"type":"object","properties":{"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"CompanyLookupPurchaseDto":{"type":"object","properties":{"dateOfPurchase":{"type":"string","format":"date-time"},"companyName":{"type":"string"},"companyId":{"type":"string","format":"uuid"},"unit":{"type":"integer","format":"int64"},"amount":{"type":"number"}}},"PagedDataResponseCompanyLookupPurchaseDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/CompanyLookupPurchaseDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseCompanyLookupPurchaseDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseCompanyLookupPurchaseDto"}}},"LookupRevenueMetricsDto":{"type":"object","properties":{"totalRevenueGenerated":{"type":"number"},"weeklyLookupRevenue":{"type":"number"},"percentageChangeFromLastWeek":{"type":"number"}}},"ResponseBodyLookupRevenueMetricsDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/LookupRevenueMetricsDto"}}},"NewsletterSubscriberResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"PagedDataResponseNewsletterSubscriberResponse":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/NewsletterSubscriberResponse"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseNewsletterSubscriberResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseNewsletterSubscriberResponse"}}},"ResponseBodyNewsletterSubscriberResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/NewsletterSubscriberResponse"}}},"PagedDataResponseConsultationResponse":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/ConsultationResponse"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseConsultationResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseConsultationResponse"}}},"DriverStatisticsDto":{"type":"object","properties":{"driverId":{"type":"string","format":"uuid"},"fullName":{"type":"string"},"currentCompaniesCount":{"type":"integer","format":"int32"},"previousCompaniesCount":{"type":"integer","format":"int32"},"totalTrips":{"type":"integer","format":"int64"},"totalRatings":{"type":"integer","format":"int64"},"averageRating":{"type":"number"}}},"ResponseBodyDriverStatisticsDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/DriverStatisticsDto"}}},"DriverPerformanceMetricsDto":{"type":"object","properties":{"logiScore":{"type":"number"},"baseline":{"type":"number"},"difference":{"type":"number"},"incidentDistribution":{"$ref":"#/components/schemas/IncidentDistributionDto"}}},"IncidentDistributionDto":{"type":"object","properties":{"totalReports":{"type":"integer","format":"int64"},"theftReports":{"type":"integer","format":"int64"},"accidentReports":{"type":"integer","format":"int64"},"avgTheftSeverity":{"type":"number"},"avgAccidentSeverity":{"type":"number"},"reportRate":{"type":"number"}}},"ResponseBodyDriverPerformanceMetricsDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/DriverPerformanceMetricsDto"}}},"DriverRatingMetrics":{"type":"object","properties":{"period":{"type":"string","example":"Week 1"},"periodStart":{"type":"string","format":"date","example":"2026-05-01"},"periodEnd":{"type":"string","format":"date","example":"2026-05-07"},"noOfRatings":{"type":"integer","format":"int32","example":3},"averageRating":{"type":"number","example":2.5},"ratingClass":{"type":"string","example":2},"ratingColor":{"type":"string","example":"#FB923C"}}},"ResponseBodyListDriverRatingMetrics":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/DriverRatingMetrics"}}}},"DriverPerformanceStatsDto":{"type":"object","properties":{"companyName":{"type":"string"},"employmentType":{"type":"string","enum":["Exclusive","Gig","N/A"]},"timeAtCompany":{"type":"integer","format":"int64"},"employmentStatus":{"type":"string","enum":["Pending","Active","Exited"]},"hiringConflictCount":{"type":"integer","format":"int64"},"accidentReportCount":{"type":"integer","format":"int64"},"theftReportCount":{"type":"integer","format":"int64"}}},"PagedDataResponseDriverPerformanceStatsDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/DriverPerformanceStatsDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseDriverPerformanceStatsDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseDriverPerformanceStatsDto"}}},"DriverPerformanceMetrics":{"type":"object","properties":{"period":{"type":"string","example":"Week 1"},"periodStart":{"type":"string","format":"date","example":"2026-05-01"},"periodEnd":{"type":"string","format":"date","example":"2026-05-07"},"noOfRatings":{"type":"integer","format":"int32","example":3},"weightedScore":{"type":"number","example":75.0}}},"ResponseBodyListDriverPerformanceMetrics":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/DriverPerformanceMetrics"}}}},"ResponseBodyObject":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{}}},"PagedDataResponseReportDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/ReportDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseReportDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseReportDto"}}},"DriverEmploymentDetailsResponse":{"type":"object","description":"Response object for driver employment details specific to the requesting company","properties":{"id":{"type":"string","format":"uuid","description":"Driver's unique identifier"},"firstName":{"type":"string","description":"Driver's first name"},"lastName":{"type":"string","description":"Driver's last name"},"email":{"type":"string","description":"Driver's email address"},"phoneNumber":{"type":"string","description":"Driver's phone number"},"dateOfBirth":{"type":"string","format":"date","description":"Driver's date of birth"},"profilePicture":{"type":"string","description":"URL to driver's profile picture"},"imageUploaded":{"type":"boolean","description":"Whether the driver has a valid profile picture uploaded"},"gender":{"type":"string","description":"Driver's gender","enum":["Male","Female"]},"employmentStatus":{"type":"string","description":"Current employment status with the company","enum":["Pending","Active","Exited"]},"employmentType":{"type":"string","description":"Type of employment (Exclusive, Contractual, etc.)","enum":["Exclusive","Gig","N/A"]},"fleetCategory":{"type":"string","description":"Category of vehicle in the employment agreement","enum":["Keke","Bicycle","Bus","Car","Bike","Tanker","Trailer","Truck","Lorry","Van"]},"startDate":{"type":"string","format":"date","description":"Date when employment started"},"address":{"type":"string","description":"Address on file"},"assignedFleet":{"$ref":"#/components/schemas/FleetDto","description":"Company fleet assigned to this driver"},"reports":{"type":"array","description":"Reports associated with this employment history","items":{"$ref":"#/components/schemas/ReportDto"}},"averageRating":{"type":"number","description":"Average rating of the driver"},"totalNumberOfRatings":{"type":"integer","format":"int32","description":"Total number of ratings received at this company"},"timeAtCompany":{"type":"string","description":"Time at company in years"}}},"ResponseBodyDriverEmploymentDetailsResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/DriverEmploymentDetailsResponse"}}},"DriverDetailsDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"currentEmployment":{"$ref":"#/components/schemas/EmploymentHistoryDetailsResponse"},"activeEmployments":{"type":"array","items":{"$ref":"#/components/schemas/EmploymentHistoryDetailsResponse"}},"pastEmployments":{"type":"array","items":{"$ref":"#/components/schemas/EmploymentHistoryDetailsResponse"}},"profilePicture":{"type":"string"},"imageUploaded":{"type":"boolean"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"phoneNumber":{"type":"string"},"dateOfBirth":{"type":"string","format":"date"},"startDate":{"type":"string","format":"date"},"numberOfFleet":{"type":"integer","format":"int32"},"gender":{"type":"string","enum":["Male","Female"]},"ratings":{"$ref":"#/components/schemas/RatingResponse"}}},"EmploymentHistoryDetailsResponse":{"type":"object","properties":{"companyName":{"type":"string"},"profilePicture":{"type":"string"},"employmentType":{"type":"string","enum":["Exclusive","Gig","N/A"]},"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"terminationReason":{"type":"string"},"totalTheftReport":{"type":"integer","format":"int64"},"totalAccidentReport":{"type":"integer","format":"int64"},"rating":{"type":"number"},"reHiringEligibility":{"type":"boolean"},"phoneNumber":{"type":"string"},"address":{"type":"string"},"reports":{"type":"array","items":{"$ref":"#/components/schemas/ReportDto"}}}},"RatingResponse":{"type":"object","properties":{"overallRating":{"type":"number"},"damageFree":{"type":"number"},"fastDelivery":{"type":"number"},"communication":{"type":"number"},"others":{"type":"object","additionalProperties":{"type":"number"}}}},"ResponseBodyDriverDetailsDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/DriverDetailsDto"}}},"PagedDataResponseVerificationDataDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/VerificationDataDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseVerificationDataDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseVerificationDataDto"}}},"VerificationDataDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"logId":{"type":"string","format":"uuid"},"dateUploaded":{"type":"string","format":"date-time"},"driverName":{"type":"string"},"phoneNumber":{"type":"string"},"nin":{"type":"string"},"dateOfBirth":{"type":"string","format":"date"},"status":{"type":"string","enum":["Pending","Confirmed","Rejected","Processed"]},"companyName":{"type":"string"},"driverImage":{"type":"string"},"employmentType":{"type":"string"},"gender":{"type":"string","enum":["Male","Female"]}}},"ResponseBodyValidationSummaryDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ValidationSummaryDto"}}},"ValidationSummaryDto":{"type":"object","properties":{"entriesSubmitted":{"type":"integer","format":"int64"},"totalApproved":{"type":"integer","format":"int64"},"totalRejected":{"type":"integer","format":"int64"},"issuesLogged":{"type":"integer","format":"int64"}}},"IssueListItemDtoObject":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"logId":{"type":"string","format":"uuid"},"dateSubmitted":{"type":"string","format":"date-time"},"assignedBa":{"type":"string"},"company":{"type":"string"},"driverName":{"type":"string"},"processedDate":{"type":"string","format":"date-time"},"issueRecorded":{},"verificationStatus":{"type":"string","enum":["Pending","Confirmed","Rejected","Processed"]}}},"PagedDataResponseIssueListItemDtoObject":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/IssueListItemDtoObject"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseIssueListItemDtoObject":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseIssueListItemDtoObject"}}},"ComplaintListItemDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"logId":{"type":"string","format":"uuid"},"driverName":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"company":{"type":"string"},"submittedAt":{"type":"string","format":"date-time"},"complaint":{"type":"string"},"rejectionReason":{"type":"string"},"status":{"type":"string","enum":["Pending","Processed","Resolved"]},"verificationStatus":{"type":"string","enum":["Pending","Confirmed","Rejected","Processed"]},"feedback":{"type":"string"}}},"PagedDataResponseComplaintListItemDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/ComplaintListItemDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseComplaintListItemDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseComplaintListItemDto"}}},"DriverStatusCountDto":{"type":"object","properties":{"activeDrivers":{"type":"integer","format":"int64"},"exitedDrivers":{"type":"integer","format":"int64"}}},"ResponseBodyDriverStatusCountDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/DriverStatusCountDto"}}},"DriverLookupDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"profilePicture":{"type":"string"},"imageUploaded":{"type":"boolean"},"firstName":{"type":"string"},"lastName":{"type":"string"},"address":{"type":"string"},"gender":{"type":"string","enum":["Male","Female"]},"fleetCategories":{"type":"array","items":{"type":"string","enum":["Keke","Bicycle","Bus","Car","Bike","Tanker","Trailer","Truck","Lorry","Van"]},"uniqueItems":true},"email":{"type":"string"},"phoneNumber":{"type":"string"},"dateOfBirth":{"type":"string","format":"date"},"numberOfFleet":{"type":"integer","format":"int32"},"averageRating":{"type":"number"},"totalNumberOfRatings":{"type":"integer","format":"int32"},"employmentCount":{"type":"integer","format":"int32"},"rehired":{"type":"boolean"},"canRehire":{"type":"boolean"},"currentCompanyName":{"type":"string"},"currentCompanyId":{"type":"string","format":"uuid"},"startDate":{"type":"string","format":"date"},"lastCompanyName":{"type":"string"},"lastStartDate":{"type":"string","format":"date"},"lastEndDate":{"type":"string","format":"date"},"terminationReason":{"type":"string"},"hiringEligibility":{"type":"boolean"},"totalAccidents":{"type":"integer","format":"int64"},"employmentType":{"type":"string","enum":["Exclusive","Gig","N/A"]},"totalConflicts":{"type":"integer","format":"int64"},"totalThefts":{"type":"integer","format":"int64"},"exitReview":{"type":"string"},"reviewer":{"type":"string"},"timeAtCompany":{"type":"string"},"avgTimeline":{"type":"string"}}},"ResponseBodyDriverLookupDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/DriverLookupDto"}}},"DriverRatingResponse":{"type":"object","properties":{"driverId":{"type":"string","format":"uuid"},"name":{"type":"string"},"type":{"type":"string"},"averageRating":{"type":"number"},"totalRatings":{"type":"integer","format":"int32"},"companyId":{"type":"string","format":"uuid"},"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"status":{"type":"string","enum":["Pending","Active","Exited"]},"createdAt":{"type":"string","format":"date-time"}}},"PagedDataResponseDriverRatingResponse":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/DriverRatingResponse"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseDriverRatingResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseDriverRatingResponse"}}},"FullDriverOnboardingDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"userName":{"type":"string"},"userId":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"phoneNumber":{"type":"string"},"profilePicture":{"type":"string"},"dateOfBirth":{"type":"string","format":"date"},"driverCard":{"type":"string"},"address":{"type":"string"},"gender":{"type":"string","enum":["Male","Female"]},"employmentType":{"type":"string","enum":["Exclusive","Gig","N/A"]},"fleetTypes":{"type":"array","items":{"type":"string"}},"previousEmployer":{"type":"string"},"employementStartDate":{"type":"string","format":"date"},"createdAt":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["Pending","Confirmed","Rejected","Processed"]},"name":{"type":"string"},"nin":{"type":"string"}}},"ResponseBodyFullDriverOnboardingDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/FullDriverOnboardingDto"}}},"PagedDataResponseVerificationFieldDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/VerificationFieldDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseVerificationFieldDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseVerificationFieldDto"}}},"VerificationFieldDto":{"type":"object","properties":{"fieldVerifiable":{"type":"string"},"driverInformation":{"type":"string"},"verifiedData":{"type":"string"}}},"ChartPointDto":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"integer","format":"int64"},"color":{"type":"string"},"textColor":{"type":"string"}}},"ResponseBodyListChartPointDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ChartPointDto"}}}},"IssueBreakdownDto":{"type":"object","properties":{"userId":{"type":"string"},"associatedBa":{"type":"string"},"issues":{"type":"integer","format":"int64"},"percentage":{"type":"number"}}},"PagedDataResponseIssueBreakdownDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/IssueBreakdownDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseIssueBreakdownDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseIssueBreakdownDto"}}},"DriverOnboardingStatisticsDto":{"type":"object","properties":{"totalOnboardings":{"type":"integer","format":"int64"},"pendingOnboardings":{"type":"integer","format":"int64"},"approvedOnboardings":{"type":"integer","format":"int64"},"rejectedOnboardings":{"type":"integer","format":"int64"},"processedOnboardings":{"type":"integer","format":"int64"}}},"ResponseBodyDriverOnboardingStatisticsDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/DriverOnboardingStatisticsDto"}}},"PagedDataResponseFullDriverOnboardingDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/FullDriverOnboardingDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseFullDriverOnboardingDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseFullDriverOnboardingDto"}}},"PagedDataResponseDemoRequestResponse":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/DemoRequestResponse"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseDemoRequestResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseDemoRequestResponse"}}},"ChartSummaryDto":{"type":"object","properties":{"total":{"type":"integer","format":"int64"},"chart":{"type":"array","items":{"$ref":"#/components/schemas/ChartPointDto"}}}},"ResponseBodyChartSummaryDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ChartSummaryDto"}}},"DashboardMetricsDto":{"type":"object","properties":{"approvedPartners":{"type":"integer","format":"int64"},"activePartners":{"type":"integer","format":"int64"},"rejectedPartners":{"type":"integer","format":"int64"},"deletedPartners":{"type":"integer","format":"int64"},"revenue":{"type":"number"},"hiredDrivers":{"type":"integer","format":"int64"},"listedDrivers":{"type":"integer","format":"int64"},"gigDrivers":{"type":"integer","format":"int64"},"exclusiveDrivers":{"type":"integer","format":"int64"},"activeVehicles":{"type":"integer","format":"int64"},"pendingKycRequests":{"type":"integer","format":"int64"},"ratingCount":{"type":"integer","format":"int64"}}},"ResponseBodyDashboardMetricsDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/DashboardMetricsDto"}}},"DispatchVolumeDto":{"type":"object","properties":{"vehicleType":{"type":"string"},"totalVehicles":{"type":"integer","format":"int64"},"companiesUsing":{"type":"integer","format":"int64"}}},"ResponseBodyListDispatchVolumeDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/DispatchVolumeDto"}}}},"PagedDataResponseLogirateConfigDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/LogirateConfigDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseLogirateConfigDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseLogirateConfigDto"}}},"PagedDataResponseCompanyDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/CompanyDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseCompanyDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseCompanyDto"}}},"PagedDataResponseTripLogDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/TripLogDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseTripLogDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseTripLogDto"}}},"PagedDataResponseTransactionLogDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/TransactionLogDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseTransactionLogDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseTransactionLogDto"}}},"TransactionLogDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"units":{"type":"number"},"amount":{"type":"number"},"rate":{"type":"number"},"transactionType":{"type":"string","enum":["Debit","Credit"]},"description":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"LookupUnitCountsDto":{"type":"object","properties":{"availableLookupCount":{"type":"number"},"freeLookupCount":{"type":"number"},"totalAvailableLookupCount":{"type":"number"}}},"ResponseBodyLookupUnitCountsDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/LookupUnitCountsDto"}}},"DirectorDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"phoneNumber":{"type":"string"},"kycType":{"type":"string","enum":["NIN","Passport","Driver's License"]},"kycDocUrl":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"DirectorKycResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"phoneNumber":{"type":"string"},"registrationNumber":{"type":"string"},"status":{"type":"string","enum":["Required","Pending","Accepted","Declined"]},"directors":{"type":"array","items":{"$ref":"#/components/schemas/DirectorDto"}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ResponseBodyDirectorKycResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/DirectorKycResponse"}}},"CompanyKycResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"phoneNumber":{"type":"string"},"registrationNumber":{"type":"string"},"industryType":{"type":"string"},"tin":{"type":"string"},"fleetSize":{"type":"string","enum":["0 - 10","10 - 50","50 - 100","100 - 500","500+"]},"fleetTypes":{"type":"array","items":{"type":"string","enum":["Keke","Bicycle","Bus","Car","Bike","Tanker","Trailer","Truck","Lorry","Van"]}},"typicalRoute":{"type":"array","items":{"type":"string","enum":["Inter State","Intra State","Rural","Long Haul"]}},"accountRole":{"type":"string","enum":["Fleet Manager","Fleet Owner","Founder/C-Level","Operations Manager","Operations Director","Distribution Manager","Logistics Manager","Role Not Listed"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isWithinFreeTrial":{"type":"boolean"}}},"ResponseBodyCompanyKycResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CompanyKycResponse"}}},"CompanyInsightsDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"accountStatus":{"type":"string"},"userRoleName":{"type":"string"},"categoryOfFleets":{"type":"array","items":{"type":"string","enum":["Keke","Bicycle","Bus","Car","Bike","Tanker","Trailer","Truck","Lorry","Van"]}},"lookupCount":{"type":"integer","format":"int64"},"onPlatformSince":{"type":"string","format":"date-time"},"profilePicture":{"type":"string"},"workerTypeDistribution":{"type":"array","items":{"$ref":"#/components/schemas/ChartPointDto"}},"exitReasons":{"type":"array","items":{"$ref":"#/components/schemas/ChartPointDto"}},"conflictIssues":{"type":"array","items":{"$ref":"#/components/schemas/ChartPointDto"}},"reports":{"type":"array","items":{"$ref":"#/components/schemas/ChartPointDto"}},"conflicts":{"type":"array","items":{"$ref":"#/components/schemas/ChartPointDto"}},"performanceTimeline":{"type":"array","items":{"$ref":"#/components/schemas/MonthlyPerformanceDto"}}}},"MonthlyPerformanceDto":{"type":"object","properties":{"year":{"type":"integer","format":"int32"},"month":{"type":"integer","format":"int32"},"monthName":{"type":"string"},"averageTierScore":{"type":"number"}}},"ResponseBodyCompanyInsightsDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CompanyInsightsDto"}}},"ResponseBodyLong":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"integer","format":"int64"}}},"DriverWorkHistoryResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"driverId":{"type":"string","format":"uuid"},"companyId":{"type":"string","format":"uuid"},"profilePicture":{"type":"string"},"imageUploaded":{"type":"boolean"},"name":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"phoneNumber":{"type":"string"},"dateOfBirth":{"type":"string","format":"date"},"address":{"type":"string"},"gender":{"type":"string","enum":["Male","Female"]},"companyName":{"type":"string"},"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"status":{"type":"string","enum":["Pending","Active","Exited"]},"employmentType":{"type":"string","enum":["Exclusive","Gig","N/A"]},"verificationStatus":{"type":"string","enum":["Pending","Confirmed","Rejected","Processed"]},"terminationReason":{"type":"string"},"totalTheftReport":{"type":"integer","format":"int64"},"totalAccidentReport":{"type":"integer","format":"int64"},"timeSpent":{"type":"string"},"rating":{"type":"number"},"reHiringEligibility":{"type":"boolean"},"rehired":{"type":"boolean"},"reviewer":{"type":"string"}}},"PagedDataResponseDriverWorkHistoryResponse":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/DriverWorkHistoryResponse"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseDriverWorkHistoryResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseDriverWorkHistoryResponse"}}},"CompanyDriverDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"profilePicture":{"type":"string"},"imageUploaded":{"type":"boolean"},"firstName":{"type":"string"},"lastName":{"type":"string"},"address":{"type":"string"},"gender":{"type":"string","enum":["Male","Female"]},"fleetCategories":{"type":"array","items":{"type":"string","enum":["Keke","Bicycle","Bus","Car","Bike","Tanker","Trailer","Truck","Lorry","Van"]},"uniqueItems":true},"email":{"type":"string"},"phoneNumber":{"type":"string"},"dateOfBirth":{"type":"string","format":"date"},"numberOfFleet":{"type":"integer","format":"int32"},"averageRating":{"type":"number"},"totalNumberOfRatings":{"type":"integer","format":"int32"},"employmentCount":{"type":"integer","format":"int32"},"rehired":{"type":"boolean"},"canRehire":{"type":"boolean"},"currentCompanyName":{"type":"string"},"currentCompanyId":{"type":"string","format":"uuid"},"startDate":{"type":"string","format":"date"},"lastCompanyName":{"type":"string"},"lastStartDate":{"type":"string","format":"date"},"lastEndDate":{"type":"string","format":"date"},"terminationReason":{"type":"string"},"hiringEligibility":{"type":"boolean"},"totalAccidents":{"type":"integer","format":"int64"},"employmentType":{"type":"string","enum":["Exclusive","Gig","N/A"]},"totalConflicts":{"type":"integer","format":"int64"},"totalThefts":{"type":"integer","format":"int64"},"exitReview":{"type":"string"},"reviewer":{"type":"string"},"timeAtCompany":{"type":"string"},"avgTimeline":{"type":"string"},"patnerIdentifier":{"type":"string"}}},"PagedDataResponseCompanyDriverDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/CompanyDriverDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseCompanyDriverDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseCompanyDriverDto"}}},"ResponseBodyListApiKeyDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ApiKeyDto"}}}},"CompanyTierDistributionDto":{"type":"object","properties":{"year":{"type":"integer","format":"int32"},"month":{"type":"integer","format":"int32"},"monthName":{"type":"string"},"totalCompanies":{"type":"integer","format":"int32"},"platinumCount":{"type":"integer","format":"int32"},"goldCount":{"type":"integer","format":"int32"},"silverCount":{"type":"integer","format":"int32"},"riskCount":{"type":"integer","format":"int32"}}},"ResponseBodyListCompanyTierDistributionDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CompanyTierDistributionDto"}}}},"CompanyStatisticsDto":{"type":"object","properties":{"companyId":{"type":"string","format":"uuid"},"companyName":{"type":"string"},"totalDrivers":{"type":"integer","format":"int64"},"activeDrivers":{"type":"integer","format":"int64"},"exitedDrivers":{"type":"integer","format":"int64"}}},"PagedDataResponseCompanyStatisticsDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/CompanyStatisticsDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseCompanyStatisticsDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseCompanyStatisticsDto"}}},"CompanyPerformanceStatusDto":{"type":"object","properties":{"companyName":{"type":"string"},"companyIndustry":{"type":"string"},"noOfDrivers":{"type":"integer","format":"int64"},"performanceStatus":{"type":"string"}}},"PagedDataResponseCompanyPerformanceStatusDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/CompanyPerformanceStatusDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseCompanyPerformanceStatusDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseCompanyPerformanceStatusDto"}}},"PagedDataResponsePartnerOverviewDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/PartnerOverviewDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"PartnerOverviewDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"roleInCompany":{"type":"string"},"typicalRoute":{"type":"string"},"totalFleets":{"type":"integer","format":"int64"},"listedDrivers":{"type":"integer","format":"int64"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"ResponseBodyPagedDataResponsePartnerOverviewDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponsePartnerOverviewDto"}}},"CompanyOnboardingDto":{"type":"object","properties":{"year":{"type":"integer","format":"int32"},"month":{"type":"integer","format":"int32"},"monthName":{"type":"string"},"newCompanies":{"type":"integer","format":"int64"},"cumulativeTotal":{"type":"integer","format":"int64"}}},"ResponseBodyListCompanyOnboardingDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CompanyOnboardingDto"}}}},"KycComplianceDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"numberOfDirectors":{"type":"integer","format":"int32"},"kycStatus":{"type":"string","enum":["Required","Pending","Accepted","Declined"]},"submittedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"isWithinFreeTrial":{"type":"boolean"}}},"PagedDataResponseKycComplianceDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/KycComplianceDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseKycComplianceDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseKycComplianceDto"}}},"AuditLogDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"userId":{"type":"string","format":"uuid"},"userEmail":{"type":"string"},"authType":{"type":"string"},"ipAddress":{"type":"string"},"userAgent":{"type":"string"},"operationType":{"type":"string","enum":["Create","Update","Delete","Lookup Refresh","Login"]},"entityType":{"type":"string"},"entityId":{"type":"string","format":"uuid"},"oldState":{},"newState":{},"description":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"PagedDataResponseAuditLogDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/AuditLogDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseAuditLogDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseAuditLogDto"}}},"ResponseBodyAuditLogDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/AuditLogDto"}}},"ResponseBodyTripLogMonthlyMetricsDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/TripLogMonthlyMetricsDto"}}},"TripLogMonthlyMetricsDto":{"type":"object","properties":{"month":{"type":"string"},"totalRatingsSent":{"type":"integer","format":"int64"},"totalRatingsReceived":{"type":"integer","format":"int64"},"ratingConversionRate":{"type":"number","format":"double"},"totalRatingsSentChangePercentage":{"type":"number","format":"double"},"totalRatingsReceivedChangePercentage":{"type":"number","format":"double"}}},"ResponseBodyDriverRatingResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/DriverRatingResponse"}}},"ResponseBodyListPartnerApiKeyDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PartnerApiKeyDto"}}}},"PartnerKeyRedemptionDto":{"type":"object","properties":{"plainKey":{"type":"string"},"companyName":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"}}},"ResponseBodyPartnerKeyRedemptionDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PartnerKeyRedemptionDto"}}},"PagedDataResponseMigratedRatingDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/MigratedRatingDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseMigratedRatingDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseMigratedRatingDto"}}},"MigratedRatingSummaryDto":{"type":"object","properties":{"period":{"type":"string"},"year":{"type":"integer","format":"int32"},"month":{"type":"integer","format":"int32"},"totalEntries":{"type":"integer","format":"int64"},"ratingCount":{"type":"integer","format":"int64"},"feedbackCount":{"type":"integer","format":"int64"},"averageRating":{"type":"number"}}},"ResponseBodyListMigratedRatingSummaryDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/MigratedRatingSummaryDto"}}}},"PagedDataResponseFleetDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/FleetDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseFleetDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseFleetDto"}}},"FleetTypeDto":{"type":"object","properties":{"name":{"type":"string"},"displayName":{"type":"string"}}},"ResponseBodyListFleetTypeDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/FleetTypeDto"}}}},"PagedDataResponseDriverOnboardingDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/DriverOnboardingDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseDriverOnboardingDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseDriverOnboardingDto"}}},"DriverFeedback":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"customerEmail":{"type":"string"},"rating":{"type":"number"},"comment":{"type":"string"},"tripDate":{"type":"string","format":"date"},"createdAt":{"type":"string","format":"date-time"}}},"PagedDataResponseDriverFeedback":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/DriverFeedback"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseDriverFeedback":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseDriverFeedback"}}},"DriverFeedbackMetrics":{"type":"object","properties":{"positiveCount":{"type":"integer","format":"int64"},"negativeCount":{"type":"integer","format":"int64"},"totalCount":{"type":"integer","format":"int64"},"positivePercentage":{"type":"number"},"averageRating":{"type":"number"},"averageRatingChange":{"type":"number"},"totalCountChangePercent":{"type":"number"}}},"ResponseBodyDriverFeedbackMetrics":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/DriverFeedbackMetrics"}}},"ResponseBodyListDriverWorkHistoryResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/DriverWorkHistoryResponse"}}}},"PreviousCompanyDto":{"type":"object","properties":{"companyName":{"type":"string"},"phoneNumber":{"type":"string"},"employmentType":{"type":"string","enum":["Exclusive","Gig","N/A"]},"employmentStatus":{"type":"string","enum":["Pending","Active","Exited"]},"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"terminationReason":{"type":"string"},"hiringEligibility":{"type":"boolean"},"triggeredConflict":{"type":"boolean"},"rehired":{"type":"boolean"},"totalThefts":{"type":"integer","format":"int64"},"totalAccidents":{"type":"integer","format":"int64"},"totalConflicts":{"type":"integer","format":"int64"},"exitReview":{"type":"string"},"timeAtCompany":{"type":"string"},"reviewer":{"type":"string"}}},"ResponseBodyListPreviousCompanyDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PreviousCompanyDto"}}}},"PagedDataResponseContactDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/ContactDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseContactDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseContactDto"}}},"LimitedDriverDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"profilePicture":{"type":"string"},"imageUploaded":{"type":"boolean"},"name":{"type":"string"},"employmentType":{"type":"string","enum":["Exclusive","Gig","N/A"]}}},"PagedDataResponseLimitedDriverDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/LimitedDriverDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"ResponseBodyPagedDataResponseLimitedDriverDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseLimitedDriverDto"}}},"CompanyReportSummaryDto":{"type":"object","properties":{"activeDriverCount":{"type":"integer","format":"int64"},"logiScore":{"type":"number"},"baseline":{"type":"number"},"difference":{"type":"number"},"incidentDistribution":{"$ref":"#/components/schemas/IncidentDistributionDto"}}},"ResponseBodyCompanyReportSummaryDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CompanyReportSummaryDto"}}},"PagedDataResponseRatedDriverDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/RatedDriverDto"}},"totalPages":{"type":"integer","format":"int64"},"totalRecords":{"type":"integer","format":"int64"}}},"RatedDriverDto":{"type":"object","properties":{"driverName":{"type":"string"},"driverImageUrl":{"type":"string"},"averageRating":{"type":"number"},"numberOfTrips":{"type":"integer","format":"int64"},"logirateScore":{"type":"number"}}},"ResponseBodyPagedDataResponseRatedDriverDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PagedDataResponseRatedDriverDto"}}},"CompanyOverviewMetricsDto":{"type":"object","properties":{"totalDrivers":{"type":"integer","format":"int64"},"totalVehicles":{"type":"integer","format":"int64"},"totalAssignedDrivers":{"type":"integer","format":"int64"},"totalDriversChangePercentage":{"type":"number","format":"double"},"totalVehiclesChangePercentage":{"type":"number","format":"double"},"totalAssignedDriversChangePercentage":{"type":"number","format":"double"},"exceedRate":{"type":"number"}}},"ResponseBodyCompanyOverviewMetricsDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CompanyOverviewMetricsDto"}}},"CompanyKycStatusDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kycStatus":{"type":"string","enum":["Required","Pending","Accepted","Declined"]},"submittedAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ResponseBodyCompanyKycStatusDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CompanyKycStatusDto"}}},"BusinessTypeDto":{"type":"object","properties":{"name":{"type":"string"},"displayName":{"type":"string"}}},"ResponseBodyListBusinessTypeDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/BusinessTypeDto"}}}},"LogirateRoleDto":{"type":"object","properties":{"name":{"type":"string"},"displayName":{"type":"string"}}},"ResponseBodyListLogirateRoleDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/LogirateRoleDto"}}}},"ExitDriverRequest":{"type":"object","properties":{"exitReason":{"type":"string","minLength":1},"exitDate":{"type":"string","format":"date"},"rehireEligibility":{"type":"boolean"},"exitComments":{"type":"string","minLength":1}},"required":["exitComments","exitDate","exitReason","rehireEligibility"]},"DeleteCompanyRequest":{"type":"object","description":"Request to delete a company account with password confirmation and reason","properties":{"password":{"type":"string","description":"Current user's password for confirmation","minLength":1},"reason":{"type":"string","description":"Reason for deleting the company account","maxLength":1000,"minLength":10}},"required":["password","reason"]}},"securitySchemes":{"bearerAuth":{"type":"http","name":"Authorization","in":"header","scheme":"bearer","bearerFormat":"JWT"},"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"}}}}