Skip to content

Administrator Guide ​

Admins have unrestricted access to CBS — all booking actions, all reports, user management, and the full settings panel. This guide covers the admin-only areas: user management, role configuration, and the complete settings reference.


User management ​

Users are staff accounts that log in to CBS. Each user has a role (which controls what they can see and do), an office, and optionally a full HR profile.

User fields ​

FieldDescription
emailLogin email address — must be unique
passwordSet on creation; staff can change their own password
first_name / last_nameDisplay name throughout the system
roleLinked role from settings.roles — controls permissions
office_id / officeWhich office this user belongs to
verifiedWhether the account email has been verified
disabledSet to true to lock the account without deleting it
primary_phone / mobile_phoneContact numbers
systemSystem/bot users — not human staff; protected from normal edits

HR profile fields (optional) ​

Users can have a full employee HR record attached:

SectionFields
PersonalDate of birth, gender, nationality, marital status, TRN, NIS
EmploymentEmployee ID, department, job title, employment type, date hired, date terminated, salary, pay frequency, supervisor, status
Emergency contactsName, relationship, phone, email
Next of kinName, relationship, phone, email, address, occupation
EducationInstitution, degree, field of study, start/end dates, graduated
Career historyCompany, job title, start/end dates, description, reason for leaving
DeductionsDeduction name, type (statutory/voluntary/garnishment/loan/other), amount or percentage, active flag
DocumentsID, TRN, NIS, passport, driver's licence, contract, certificate, police record — each with URL, expiry date
HR NotesGeneral, performance, disciplinary, or HR notes with author and date

Activity tracking ​

CBS records last_active (last API call) and last_login (last login timestamp) automatically on each user. The app_version and server_version at last login are also stored — useful for debugging version mismatches.

Creating / editing users ​

Via POST /api/post-user and PATCH /api/patch-user. Via the dashboard: Dashboard → Users → Add User or the user's edit page.

To disable a user without deleting them: set disabled: true.


Roles & permissions ​

Roles are defined in settings.roles. Each role has:

FieldDescription
idUnique role identifier (e.g. admin, accountant, csr)
nameDisplay name
descriptionWhat this role does
disabledDisable the entire role
permissionsArray of resource permission objects
allowed_routesAPI routes this role can call

Permission actions (per resource) ​

Each permission entry specifies which actions are allowed on a given resource:

ActionMeaning
viewCan view a single record
createCan create new records
updateCan edit existing records
deleteCan delete records
verifyCan run verification (e.g. QuickBooks)
listCan view lists / search results
searchCan use search
exportCan export/download reports

Built-in role access summary ​

FeatureAdminAccountantCSRBooking Agent
All booking actions✅———
QuickBooks verification✅✅❌❌
Booking Logs / Log Report✅✅❌❌
Manage car / rental class✅❌✅✅
Switch car✅❌✅—
Manage customer✅❌✅—
Booking Actions (email)✅❌✅—
Settings✅❌❌❌
User management✅❌❌❌

Settings reference ​

Settings are a single document stored in MongoDB (looked up by env.SETTINGS_ID). All sections are editable via PATCH /api/patch-setting.

Design & branding (settings.design) ​

Controls the look of the dashboard UI and generated documents.

FieldDefaultDescription
company_name"Minute Car Rentals"Name shown on documents and emails
legal_company_name—Full legal entity name for contracts and addendums
brand_tagline—Tagline shown in marketing emails and headers
brand_short_name—Short abbreviation for sender name suffix (e.g. "MCR")
logo—Uploaded logo image (stored in R2)

Theme colours (settings.design.theme):

FieldDefaultDescription
primary#2196F3Main brand colour
secondary#1a2b4bSecondary colour
accent#ff7ea6Accent colour
tertiary#1a2b4bTertiary colour
warning#ffb300Warning state colour
danger#ef5350Error/danger colour
success#4caf50Success state colour
info#03a9f4Info state colour
toolbar_stylewhiteToolbar style: white / colored / secondary / tertiary / dark
sidenav_stylewhiteSidenav style: same options as toolbar

Document appearance (settings.design.docs):

FieldDefaultDescription
primary_color#2196F3Primary colour for invoice/contract documents
accent_color#ff7ea6Accent colour for documents
border_color#e2e8f0Table and section border colour
text_color#1e293bMain body text colour
muted_text_color#64748bSecondary/label text colour
light_bg#f8fafcTable header and footer background
header_styleclassicDocument header layout: classic / modern / minimal

Email configuration (settings.email) ​

FieldDescription
sender_nameDisplay name for outgoing emails (e.g. "Minute Car Rentals - MCR")
sender_emailFrom address (e.g. hello@minute.rentals)
reply_to_emailReply-to address
bcc_emailsComma-separated BCC addresses for all system emails
contract_bcc_emailsComma-separated BCC addresses specifically for contract-signing emails
dev_emailAdmin/developer alert address for system notifications
speedia_sender_emailSender email for the Speedia AI assistant (via Brevo)
speedia_sender_nameSender display name for Speedia

Offices (settings.offices) ​

Each office is a physical location/branch:

FieldDescription
idUnique office identifier
nameOffice display name
branch_codeShort branch code
headquarterstrue if this is the HQ
address_line_1/2, city, state, country, zipPhysical address
mobile_phone_number / landline_phone_numberContact numbers
emailOffice email
coordinatesGeoJSON point for mapping

Offices are referenced throughout the system — users have an office_id, chart-of-accounts entries are scoped to an office, and locations can be linked to offices.


General settings & operational governance (settings.timezone, settings.booking) ​

Controls system-wide operational rules, operating timezone, and vehicle allocation constraints:

SettingField PathDefaultDescription
Business Timezonesettings.timezoneAmerica/JamaicaPrimary operating timezone (IANA identifier) used for automated tasks, recurring billing schedules, and date displays.
Booking Invoice Tolerancesettings.booking.invoice_tolerance0.10Acceptable variance allowed when reconciling invoice amounts (e.g. during switch-car rate splits) before a discrepancy warning is flagged.
Maintenance Vehicle Bookingssettings.booking.allow_maintenance_bookingfalseWhen enabled, vehicles flagged as in maintenance or with open claims can still be assigned/booked. When disabled, they are hidden from assignment pickers.
Strict Car Availabilitysettings.booking.enable_strict_car_availabilitytrueWhen enabled, prevents booking or assigning any vehicle that overlaps with an existing active or confirmed booking.
Auto-Assign Carssettings.booking.auto_assign_carstrueAutomatically selects and assigns an approved, available car matching rental class and branch when a booking is created or imported via TSD.
Turnaround Buffer Timesettings.booking.car_assignment_buffer_hours1Turnaround cleaning and inspection buffer (in hours) applied before pickup and after dropoff to prevent double-booking (default: 1 hr). Located under Dashboard → Settings → General Settings.
Strict Branch Matchsettings.booking.auto_assign_match_branchtrueRestricts car auto-assignment strictly to vehicles stationed at the booking's pickup branch code.

Industry-Standard Car Assignment Lifecycle: ​

In modern car rental systems (OTA/GDS standards):

  • Pending Reservations: Category/rental class is reserved. Vehicle inventory remains in the class pool to maximize fleet flexibility. When auto-assign is enabled on creation or TSD import, an optimal vehicle is assigned immediately with an AUTO visual indicator so lot dispatch can prepare turnaround.
  • Confirmed Bookings: Assigned vehicles have their operational status transitioned to booked via car_states sync.
  • Active / On-Trip: When check-out checklist and contracts are completed, vehicle status is marked active.
  • Cancelled / No-Show: The vehicle assignment is immediately released back to the idle pool and available for dispatch.
  • Turnaround Buffer: 1 hour buffer turnaround allows quick turnarounds for city lots while guarding against turnaround collisions.

Booking settings (settings.booking) ​

These drive the dropdowns and selections in the booking wizard:

Multi-Tenancy Invoice Profiles (settings.invoice_profiles) ​

For multi-entity or branded operations (e.g. U-Save vs Minute Car Rentals), CBS supports distinct Invoice Profiles:

FieldDescription
idUnique profile identifier (e.g. usave_jm, default)
nameTrading entity/brand display name
legal_company_nameRegistered legal entity name for contracts and addendums
tax_idTax Registration / TRN / VAT / GCT Number
is_defaultFallback profile if no specific channel/office matches
channelsBooking channels/providers assigned to this profile (e.g. ['usave', 'carrentals_com'])
office_idsOffices or branches governed by this entity
bank_detailsBank name, account number, routing/SWIFT wire instructions for invoices
design / emailProfile-specific branding, logos, accent colors, and email sender headers

Booking settings (settings.booking) ​

SettingDescription
locationsPickup/drop-off location list — each with location_id, name, airport flag, delivery_fee, address, office link, and coordinates
addonsAvailable extras (GPS, child seat, etc.)
checklistsVehicle inspection checklist items shown at checkout
insurance_plansInsurance plan cards shown in Step 4 of the booking wizard
rental_classesRental class cards shown in Step 3 (Economy, Mid-size, SUV, etc.). Now supports enterprise defaults: default_insurance_plan_id, invoice_profile_id, and turnaround_buffer_hours_override.
ratesBooking rate presets per rental class — daily_booking_rate, extension_rate, cleaning_fee, daily_motor_vehicle_registration_rate.
rate_schedulesEmbedded seasonal and scheduled rate periods (e.g. Winter Peak, Long-Term Discount) with priority rankings and declarative if/else conditions (duration tiers, channels, lead times).
auto_assign_carsMaster toggle to auto-assign cars when bookings are created or uploaded with rental class.
car_assignment_buffer_hoursVehicle cleaning and turnaround buffer between rentals (default 2 hrs).
auto_assign_match_branchStrictly enforce pickup branch matching during auto-assignment.
providers / sourcesBooking source options (Flexways, direct, etc.) — each can carry a surcharge and royalties structure
allow_fee_tax_togglingBoolean toggle (true/false). When false (default), tax checkboxes on standard booking fees (Booking Fee, MVR, Cleaning Fee) are locked in the UI to maintain accounting consistency
default_booking_provider_emailsFallback emails when no provider email is configured

Global rates (settings.rates) ​

General-purpose rates — taxes, fees, discounts, exchange rates:

FieldDescription
idRate identifier (e.g. bank_processing_fee, booking_fee, insurance_fee, cleaning_fee, motor_vehicle_registration_fee, airport_fee, addons_fee, surcharge_fee, royalties_fee)
nameDisplay name
typetax / fee / discount / exchange_rate
subtypeSubtype identifier (e.g. bank_processing_fee for the 5% merchant fee, affiliate_commission for exchange rate type)
amountPercentage for tax/discount/percentage-fees (e.g. 5.0 for 5% Bank Processing Fee); fixed amount for flat fees
apply_taxDefault tax application rule (true for booking, cleaning, MVR; false for insurance, bank processing, royalties)
enabledToggle the rate on/off
currency_codeCurrency this rate applies to
conditionsConditional rules array (e.g. applies only to specific rental classes)

Accounting (settings.accounting) ​

Chart of accounts ​

Each account has:

FieldDescription
idAccount identifier (referenced in transactions and payments)
nameDisplay name
categoryasset / liability / equity / income / expense
sub_categoryFurther classification (see below)
officeLinked office
starting_balanceSet once at creation — not auto-updated
current_balanceLive running balance — updated automatically by transactions via $inc
currency_codeCurrency (default JMD)
methodaccrual or cash
payment_methodsAccepted methods: cash, bank, card, mobile_payment, cheque, voucher, other
usageTags for the account's purpose (see below)
disabledSoft-disable the account
assigneeStaff member responsible for this account

Sub-categories by type:

CategorySub-categories
Assetcurrent_asset, fixed_asset, prepaid_expense, receivable, provision, operating_account, deposit_account, cash_and_equivalents
Liabilitycurrent_liability, long_term_liability, accounts_payable, provision
Equityowner_equity, retained_earnings
Incomeoperating_income, non_operating_income
Expenseoperating_expense, non_operating_expense, provision

Usage tags help the system auto-resolve the right account for transactions:

  • Asset: petty_cash, business_account, deposit_account, vehicle_inventory, claims, utilities, licensing, payroll
  • Liability: vendor_payable, credit_card_payable, employee_advance, loan_payable, customer_payable
  • Income: rental_income, service_income, sale_of_assets, interest_income
  • Expense: fuel_expense, repair_and_maintenance, insurance, employee_salaries, marketing_expense, claims, utilities, licensing, payroll
  • Equity: owner_equity, retained_earnings

TIP

current_balance is updated automatically when transactions are posted via $inc. Do not manually edit it — to correct a balance, post a correcting transaction instead.

Payment cards (settings.accounting.payment_cards) ​

The list of accepted payment card types shown in payment dialogs.

Payment source accounts (settings.accounting.payment_source_accounts) ​

Linked bank/merchant accounts for payment processing.

QuickBooks integration (settings.accounting.quickbooks) ​

OAuth credentials and configuration for the QuickBooks Online integration — managed internally; do not edit unless reconnecting the QuickBooks OAuth flow.


WhatsApp integration (settings.whatsapp) ​

FieldDescription
api_keyMeta WhatsApp Graph API access token
phone_number_idMeta Phone Number ID (the WA business number)
business_account_idMeta WhatsApp Business Account ID
webhook_verify_tokenVerify token used during Meta Webhook setup
webhook_secretPayload signature verification secret (HMAC)
traitos_api_keyTraitOS Voice AI API key (falls back to worker secret TRAIT_OS_API_KEY)
traitos_agent_idLinked TraitOS Voice AI Agent ID for unanswered call fallback
traitos_webhook_secretWebhook verification secret for TraitOS voice callbacks
traitos_sip_domainRead-only TraitOS managed SIP trunk domain (trait-os.sip.telnyx.com)

WARNING

These are sensitive credentials. Rotate the api_key or traitos_api_key if ever exposed. The webhook_secret must match what is configured in the Meta Developer portal.

Voice & WhatsApp Calling (settings.voice) ​

FieldDescription
providerActive voice gateway adapter (traitos default, or twilio)
phone_numberProvisioned E.164 WhatsApp/Voice line (e.g. +18763746634). Also scopes browser softphone registration so staging and production dashboards only ring for their own number.
routing_strategyring_team_first (rings online CBS browser softphones first, then falls back to TraitOS AI Voice Agent) or direct_to_ai (routes straight to AI).
ring_timeout_secondsSeconds to ring online CBS browser softphones (default 15) before TraitOS AI Voice Agent answers. If no agent softphone is online, AI answers immediately.

Automation toggles (settings.automation) ​

Each toggle enables or disables a background cron job or scheduled task. Most accept true/false or an object with { enabled: boolean }.

ToggleDescription
quickbooks_verificationAI-assisted QB verification runs on bookings
quickbooks_verification.update_quickbooks_verifiedWrite quickbooks_verified flag back to booking after verification
quickbooks_verification.ocr_receipt_verificationRun OCR on uploaded receipts during verification
quickbooks_verification.enable_email_alertsSend email alerts when discrepancies are found
quickbooks_verification.alert_emailEmail address to receive discrepancy alerts
quickbooks_verification.collectionsPer-collection toggle: bookings, claims, expenses — each with enabled and verify_on_update
cleanup_booking_htmlStrips old HTML blobs from booking records automatically
migrate_bookingsMigrates booking records to the current schema format
sync_car_dataSyncs latest car details into booking snapshots
whatsapp_sla_alertSends SLA breach alerts for unanswered WhatsApp messages
whatsapp_handover_cleanupCleans up stale WhatsApp handover states
sync_cars_rentcarsSyncs car inventory from the external RentCars API
process_marketing_schedulesExecutes scheduled marketing campaigns
process_delayed_automationsRuns delayed automation triggers
automated_car_insurance_expensesGenerates monthly insurance expenses per car automatically
media_temp_cleanupDaily R2 temp media cleanup scan

SOP automation (settings.automation.sops) ​

Controls which API-mode SOPs run automatically and how:

json
{
  "automation": {
    "sops": {
      "booking_e2e_browser_test": { "enabled": true, "execution_mode": "steps" },
      "quickbooks_verification": { "enabled": true, "execution_mode": "ai" }
    }
  }
}

execution_mode options: steps (deterministic browser steps), ai (AI-driven), hybrid.


Document templates (settings.templates) ​

FieldDescription
booking_contractHTML template for the booking contract with Mustache-style placeholders (e.g. , ). If empty, the built-in server-side generator is used.

Admin-only API routes ​

These routes require admin-level access:

RouteDescription
GET /api/get-usersList all users
POST /api/post-userCreate a new user
PATCH /api/patch-userUpdate a user
DELETE /api/delete-userDelete a user
GET /api/get-settingsRead the full settings object
PATCH /api/patch-settingUpdate any settings field
POST /api/post-automate-car-insurance-expensesBulk create car insurance expenses