Appearance
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
| Field | Description |
|---|---|
| Login email address — must be unique | |
| password | Set on creation; staff can change their own password |
| first_name / last_name | Display name throughout the system |
| role | Linked role from settings.roles — controls permissions |
| office_id / office | Which office this user belongs to |
| verified | Whether the account email has been verified |
| disabled | Set to true to lock the account without deleting it |
| primary_phone / mobile_phone | Contact numbers |
| system | System/bot users — not human staff; protected from normal edits |
HR profile fields (optional)
Users can have a full employee HR record attached:
| Section | Fields |
|---|---|
| Personal | Date of birth, gender, nationality, marital status, TRN, NIS |
| Employment | Employee ID, department, job title, employment type, date hired, date terminated, salary, pay frequency, supervisor, status |
| Emergency contacts | Name, relationship, phone, email |
| Next of kin | Name, relationship, phone, email, address, occupation |
| Education | Institution, degree, field of study, start/end dates, graduated |
| Career history | Company, job title, start/end dates, description, reason for leaving |
| Deductions | Deduction name, type (statutory/voluntary/garnishment/loan/other), amount or percentage, active flag |
| Documents | ID, TRN, NIS, passport, driver's licence, contract, certificate, police record — each with URL, expiry date |
| HR Notes | General, 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:
| Field | Description |
|---|---|
| id | Unique role identifier (e.g. admin, accountant, csr) |
| name | Display name |
| description | What this role does |
| disabled | Disable the entire role |
| permissions | Array of resource permission objects |
| allowed_routes | API routes this role can call |
Permission actions (per resource)
Each permission entry specifies which actions are allowed on a given resource:
| Action | Meaning |
|---|---|
view | Can view a single record |
create | Can create new records |
update | Can edit existing records |
delete | Can delete records |
verify | Can run verification (e.g. QuickBooks) |
list | Can view lists / search results |
search | Can use search |
export | Can export/download reports |
Built-in role access summary
| Feature | Admin | Accountant | CSR | Booking 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.
| Field | Default | Description |
|---|---|---|
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):
| Field | Default | Description |
|---|---|---|
primary | #2196F3 | Main brand colour |
secondary | #1a2b4b | Secondary colour |
accent | #ff7ea6 | Accent colour |
tertiary | #1a2b4b | Tertiary colour |
warning | #ffb300 | Warning state colour |
danger | #ef5350 | Error/danger colour |
success | #4caf50 | Success state colour |
info | #03a9f4 | Info state colour |
toolbar_style | white | Toolbar style: white / colored / secondary / tertiary / dark |
sidenav_style | white | Sidenav style: same options as toolbar |
Document appearance (settings.design.docs):
| Field | Default | Description |
|---|---|---|
primary_color | #2196F3 | Primary colour for invoice/contract documents |
accent_color | #ff7ea6 | Accent colour for documents |
border_color | #e2e8f0 | Table and section border colour |
text_color | #1e293b | Main body text colour |
muted_text_color | #64748b | Secondary/label text colour |
light_bg | #f8fafc | Table header and footer background |
header_style | classic | Document header layout: classic / modern / minimal |
Email configuration (settings.email)
| Field | Description |
|---|---|
sender_name | Display name for outgoing emails (e.g. "Minute Car Rentals - MCR") |
sender_email | From address (e.g. hello@minute.rentals) |
reply_to_email | Reply-to address |
bcc_emails | Comma-separated BCC addresses for all system emails |
contract_bcc_emails | Comma-separated BCC addresses specifically for contract-signing emails |
dev_email | Admin/developer alert address for system notifications |
speedia_sender_email | Sender email for the Speedia AI assistant (via Brevo) |
speedia_sender_name | Sender display name for Speedia |
Offices (settings.offices)
Each office is a physical location/branch:
| Field | Description |
|---|---|
id | Unique office identifier |
name | Office display name |
branch_code | Short branch code |
headquarters | true if this is the HQ |
address_line_1/2, city, state, country, zip | Physical address |
mobile_phone_number / landline_phone_number | Contact numbers |
email | Office email |
coordinates | GeoJSON 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:
| Setting | Field Path | Default | Description |
|---|---|---|---|
| Business Timezone | settings.timezone | America/Jamaica | Primary operating timezone (IANA identifier) used for automated tasks, recurring billing schedules, and date displays. |
| Booking Invoice Tolerance | settings.booking.invoice_tolerance | 0.10 | Acceptable variance allowed when reconciling invoice amounts (e.g. during switch-car rate splits) before a discrepancy warning is flagged. |
| Maintenance Vehicle Bookings | settings.booking.allow_maintenance_booking | false | When 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 Availability | settings.booking.enable_strict_car_availability | true | When enabled, prevents booking or assigning any vehicle that overlaps with an existing active or confirmed booking. |
| Auto-Assign Cars | settings.booking.auto_assign_cars | true | Automatically selects and assigns an approved, available car matching rental class and branch when a booking is created or imported via TSD. |
| Turnaround Buffer Time | settings.booking.car_assignment_buffer_hours | 1 | Turnaround 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 Match | settings.booking.auto_assign_match_branch | true | Restricts 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
AUTOvisual indicator so lot dispatch can prepare turnaround. - Confirmed Bookings: Assigned vehicles have their operational status transitioned to
bookedviacar_statessync. - 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:
| Field | Description |
|---|---|
id | Unique profile identifier (e.g. usave_jm, default) |
name | Trading entity/brand display name |
legal_company_name | Registered legal entity name for contracts and addendums |
tax_id | Tax Registration / TRN / VAT / GCT Number |
is_default | Fallback profile if no specific channel/office matches |
channels | Booking channels/providers assigned to this profile (e.g. ['usave', 'carrentals_com']) |
office_ids | Offices or branches governed by this entity |
bank_details | Bank name, account number, routing/SWIFT wire instructions for invoices |
design / email | Profile-specific branding, logos, accent colors, and email sender headers |
Booking settings (settings.booking)
| Setting | Description |
|---|---|
locations | Pickup/drop-off location list — each with location_id, name, airport flag, delivery_fee, address, office link, and coordinates |
addons | Available extras (GPS, child seat, etc.) |
checklists | Vehicle inspection checklist items shown at checkout |
insurance_plans | Insurance plan cards shown in Step 4 of the booking wizard |
rental_classes | Rental 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. |
rates | Booking rate presets per rental class — daily_booking_rate, extension_rate, cleaning_fee, daily_motor_vehicle_registration_rate. |
rate_schedules | Embedded 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_cars | Master toggle to auto-assign cars when bookings are created or uploaded with rental class. |
car_assignment_buffer_hours | Vehicle cleaning and turnaround buffer between rentals (default 2 hrs). |
auto_assign_match_branch | Strictly enforce pickup branch matching during auto-assignment. |
providers / sources | Booking source options (Flexways, direct, etc.) — each can carry a surcharge and royalties structure |
allow_fee_tax_toggling | Boolean 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_emails | Fallback emails when no provider email is configured |
Global rates (settings.rates)
General-purpose rates — taxes, fees, discounts, exchange rates:
| Field | Description |
|---|---|
id | Rate identifier (e.g. bank_processing_fee, booking_fee, insurance_fee, cleaning_fee, motor_vehicle_registration_fee, airport_fee, addons_fee, surcharge_fee, royalties_fee) |
name | Display name |
type | tax / fee / discount / exchange_rate |
subtype | Subtype identifier (e.g. bank_processing_fee for the 5% merchant fee, affiliate_commission for exchange rate type) |
amount | Percentage for tax/discount/percentage-fees (e.g. 5.0 for 5% Bank Processing Fee); fixed amount for flat fees |
apply_tax | Default tax application rule (true for booking, cleaning, MVR; false for insurance, bank processing, royalties) |
enabled | Toggle the rate on/off |
currency_code | Currency this rate applies to |
conditions | Conditional rules array (e.g. applies only to specific rental classes) |
Accounting (settings.accounting)
Chart of accounts
Each account has:
| Field | Description |
|---|---|
id | Account identifier (referenced in transactions and payments) |
name | Display name |
category | asset / liability / equity / income / expense |
sub_category | Further classification (see below) |
office | Linked office |
starting_balance | Set once at creation — not auto-updated |
current_balance | Live running balance — updated automatically by transactions via $inc |
currency_code | Currency (default JMD) |
method | accrual or cash |
payment_methods | Accepted methods: cash, bank, card, mobile_payment, cheque, voucher, other |
usage | Tags for the account's purpose (see below) |
disabled | Soft-disable the account |
assignee | Staff member responsible for this account |
Sub-categories by type:
| Category | Sub-categories |
|---|---|
| Asset | current_asset, fixed_asset, prepaid_expense, receivable, provision, operating_account, deposit_account, cash_and_equivalents |
| Liability | current_liability, long_term_liability, accounts_payable, provision |
| Equity | owner_equity, retained_earnings |
| Income | operating_income, non_operating_income |
| Expense | operating_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)
| Field | Description |
|---|---|
api_key | Meta WhatsApp Graph API access token |
phone_number_id | Meta Phone Number ID (the WA business number) |
business_account_id | Meta WhatsApp Business Account ID |
webhook_verify_token | Verify token used during Meta Webhook setup |
webhook_secret | Payload signature verification secret (HMAC) |
traitos_api_key | TraitOS Voice AI API key (falls back to worker secret TRAIT_OS_API_KEY) |
traitos_agent_id | Linked TraitOS Voice AI Agent ID for unanswered call fallback |
traitos_webhook_secret | Webhook verification secret for TraitOS voice callbacks |
traitos_sip_domain | Read-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)
| Field | Description |
|---|---|
provider | Active voice gateway adapter (traitos default, or twilio) |
phone_number | Provisioned 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_strategy | ring_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_seconds | Seconds 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 }.
| Toggle | Description |
|---|---|
quickbooks_verification | AI-assisted QB verification runs on bookings |
quickbooks_verification.update_quickbooks_verified | Write quickbooks_verified flag back to booking after verification |
quickbooks_verification.ocr_receipt_verification | Run OCR on uploaded receipts during verification |
quickbooks_verification.enable_email_alerts | Send email alerts when discrepancies are found |
quickbooks_verification.alert_email | Email address to receive discrepancy alerts |
quickbooks_verification.collections | Per-collection toggle: bookings, claims, expenses — each with enabled and verify_on_update |
cleanup_booking_html | Strips old HTML blobs from booking records automatically |
migrate_bookings | Migrates booking records to the current schema format |
sync_car_data | Syncs latest car details into booking snapshots |
whatsapp_sla_alert | Sends SLA breach alerts for unanswered WhatsApp messages |
whatsapp_handover_cleanup | Cleans up stale WhatsApp handover states |
sync_cars_rentcars | Syncs car inventory from the external RentCars API |
process_marketing_schedules | Executes scheduled marketing campaigns |
process_delayed_automations | Runs delayed automation triggers |
automated_car_insurance_expenses | Generates monthly insurance expenses per car automatically |
media_temp_cleanup | Daily 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)
| Field | Description |
|---|---|
booking_contract | HTML 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:
| Route | Description |
|---|---|
GET /api/get-users | List all users |
POST /api/post-user | Create a new user |
PATCH /api/patch-user | Update a user |
DELETE /api/delete-user | Delete a user |
GET /api/get-settings | Read the full settings object |
PATCH /api/patch-setting | Update any settings field |
POST /api/post-automate-car-insurance-expenses | Bulk create car insurance expenses |
Quick links
- Billing KB — chart of accounts, transactions, QB verification
- Bookings KB — booking lifecycle and role access table
- AI Agents Guide — WhatsApp and Speedia configuration
- Partner & Developer API Guide — integration and API specifications