Skip to main content

08 · Payments

“Deposits and instalments add to the budget item’s paid total; refunds subtract. Completed payments feed the Budget tab.”

A payment

Field Values / notes
Budget item required (“Pick a budget item for this payment.”)
Type deposit (Deposit), instalment (Instalment, the default), final (Final payment / “Final balance”), refund (Refund)
Amount (£) stored in pence (“Enter a valid amount”)
Due date
Paid date “Leave blank if not yet paid”. Setting it marks the payment paid.
Status pending, overdue, paid, refunded
Reference e.g. “Invoice #1234”
Notes
Invoice link “Paste the share link from OneDrive, SharePoint, Google Drive or anywhere else.” Must be https://. There’s a Paste button for long links (“Clipboard is empty” / “Could not read the clipboard — paste into the box instead”).
Link label “Optional — what the button should say in the table”, e.g. “Venue invoice (Aug)”. The row shows a clickable paperclip.
Show on family portal family_visible, on by default. Rows unticked show Hidden from family.

Status rules

  • Saving with a paid date sets status paid (or refunded for a refund).
  • Mark paid (PATCH /api/payments/:id/paid) uses the date sent, or today.
  • Every create, change, mark-paid and delete re-runs the budget’s paid totals.
  • Only http(s) invoice links are stored or shown; anything else is refused (“That invoice link doesn’t look right — it must start with https://”).

On the page

  • Totals: Paid total, Pending total, Overdue, Refunds.
  • Table: Budget item · Type · Amount · Due · Paid · Status (with “late”) · Actions (Mark paid, Edit, Del).
  • + Record payment, “Delete this payment?”.
  • Family view: “See exactly what family see on the family payment portal” (GET /api/family/preview).
  • Family access card: who can open the family portal (notebook 09).

Over the assistant / MCP

list_payments, create_payment, update_payment, mark_payment_paid, delete_payment. Marking paid, a create or update with a paid date, and delete all need the couple to confirm first (notebooks 22, 23).

Routes: GET/POST /api/payments, PUT/DELETE /api/payments/:id, PATCH /api/payments/:id/paid.