SimpleFIN Bot ingests mapped accounts #138

Open
opened 2026-11-27 16:43:56 -05:00 by bobby · 0 comments
Owner

Part of #73 (spec: #72)

What to build

A separate Bot package (no hapi.* imports) with its own run entry point fetches SimpleFIN accounts with start-date = now − 14 d. It maps SimpleFIN account ids to Financial Account ids from its mounted config and ingests each mapped account as one batch over HTTP with its Token. Fields: external_id = id, posted_on = posted as a UTC date, amount_minor from the decimal amount, payee_raw = description, never occurred_on. A clean run pings the Kuma push URL.

Acceptance criteria

  • With fake SimpleFIN, hAPI, and Kuma, a run sends the correct batches and exits 0
  • Decimal-to-minor conversion and UTC date handling are exact
  • Kuma is pinged once on a clean run
  • Config is read from mounted files
Part of #73 (spec: #72) ## What to build A separate Bot package (no `hapi.*` imports) with its own run entry point fetches SimpleFIN accounts with `start-date = now − 14 d`. It maps SimpleFIN account ids to Financial Account ids from its mounted config and ingests each mapped account as one batch over HTTP with its Token. Fields: `external_id` = `id`, `posted_on` = `posted` as a UTC date, `amount_minor` from the decimal `amount`, `payee_raw` = `description`, never `occurred_on`. A clean run pings the Kuma push URL. ## Acceptance criteria - [ ] With fake SimpleFIN, hAPI, and Kuma, a run sends the correct batches and exits 0 - [ ] Decimal-to-minor conversion and UTC date handling are exact - [ ] Kuma is pinged once on a clean run - [ ] Config is read from mounted files
bobby added the ready-for-agent label 2026-11-27 16:43:56 -05:00
bobby added a new dependency 2026-11-27 16:43:57 -05:00
bobby added a new dependency 2026-11-27 16:43:58 -05:00
bobby added a new dependency 2026-11-27 16:43:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: bobby/hapi#138