Command Palette

Search for a command to run...

API Documentation

Reference for Frank — Booko Finance API

Quick Reference
Key conventions for all API interactions

Base URL

http://vector-core:4200/api

Response Format

{ "success": true, "data": ... }

Currency

Rs / MUR — store as numbers (no symbols). Multi-currency supported via optional currency, exchange_rate, and original_amount fields.

Date Format

YYYY-MM-DD

Type Field

B = Business, P = Personal

GET/api/expenses
List all expenses. Supports filtering by type, category, and date range.

Query Parameters

ParamDescription
typeB (Business) or P (Personal)
categoryFilter by category name
fromStart date (YYYY-MM-DD)
toEnd date (YYYY-MM-DD)
POST/api/expenses
Create a new expense entry. Optionally include currency, exchange_rate, and original_amount for multi-currency transactions.

Request Body (JSON)

{
  "date": "2026-03-10",
  "amount": 1500,
  "type": "B",
  "category": "Biz-Software",
  "description": "Figma annual license",
  "payment_method": "Card (4942)",
  "currency": "USD",
  "exchange_rate": 45.5,
  "original_amount": 32.97
}

Required: date, amount, type, category

PUT/api/expenses/:id
Update an existing expense. Send only the fields you want to change. Supports currency, exchange_rate, and original_amount.

Request Body (JSON)

{
  "date": "2026-03-10",
  "amount": 1500,
  "type": "B",
  "category": "Biz-Software",
  "description": "Figma annual license",
  "payment_method": "Card (4942)",
  "currency": "USD",
  "exchange_rate": 45.5,
  "original_amount": 32.97
}
DELETE/api/expenses/:id
Delete an expense by ID.
Workflow
Step-by-step process Frank should follow for common actions
  1. 1Income received → POST /api/income
  2. 2Expense made → POST /api/expenses
  3. 3New subscription → POST /api/subscriptions
  4. 4Invoice sent → POST /api/receivables
  5. 5Client paid → PATCH /api/receivables/:id
  6. 6Subscription cancelled → PUT /api/subscriptions/:id with status: "cancelled"
  7. 7Set a budget → POST /api/budgets
  8. 8Contribute to savings → PATCH /api/savings-goals/:id/contribute
  9. 9Make a debt payment → POST /api/debts/:id/payments
  10. 10Pay wedding vendor → PATCH /api/wedding/vendors/:id/payment
  11. 11Process subscriptions → POST /api/cron/process-subscriptions
  12. 12Verify → GET /api/dashboard
Data Conventions
Standard values to use for categories, sources, and statuses

Expense Categories

Biz-SoftwareBiz-HostingBiz-MarketingSub-SoftwareSub-StreamingPersonal-FoodPersonal-TransportPersonal-Utilities

Income Sources

MokoStudioSalmaEntropia

Income Categories

Biz-ClientBiz-Project

Payment Methods

Card (4942)PayPalCashTransferJuice

Subscription Frequencies

MonthlyYearly

Subscription Statuses

activepausedcancelled

Receivable Statuses

pendingreceived

Debt Types

credit_cardloanmortgageother

Budget Types

BP