Ingest Transactions #126

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

Part of #73 (spec: #72)

What to build

An importer Bot with Household finance:write posts bounded batches to POST /v1/finance/transactions/ingest with {financial_account_id, transactions[{external_id, amount_minor, occurred_on?, posted_on, payee_raw}]}. Each item reports created or duplicate. A known external_id is never updated. A missing occurred_on is copied from posted_on with dated_by = posted. Bots never set Categories.

Acceptance criteria

  • New items are created; re-sent items are duplicate and left unchanged
  • external_id is unique per Account
  • Items without occurred_on get dated_by = posted; with it, dated_by = source
  • Batches over the cap are rejected
  • A Category in the payload is refused
Part of #73 (spec: #72) ## What to build An importer Bot with Household `finance:write` posts bounded batches to `POST /v1/finance/transactions/ingest` with `{financial_account_id, transactions[{external_id, amount_minor, occurred_on?, posted_on, payee_raw}]}`. Each item reports `created` or `duplicate`. A known `external_id` is never updated. A missing `occurred_on` is copied from `posted_on` with `dated_by = posted`. Bots never set Categories. ## Acceptance criteria - [ ] New items are `created`; re-sent items are `duplicate` and left unchanged - [ ] `external_id` is unique per Account - [ ] Items without `occurred_on` get `dated_by = posted`; with it, `dated_by = source` - [ ] Batches over the cap are rejected - [ ] A Category in the payload is refused
bobby added the ready-for-agent label 2026-11-27 16:43:51 -05:00
bobby added a new dependency 2026-11-27 16:43:51 -05:00
bobby added a new dependency 2026-11-27 16:43:51 -05:00
bobby added a new dependency 2026-11-27 16:43:51 -05:00
bobby added a new dependency 2026-11-27 16:43:52 -05:00
bobby added a new dependency 2026-11-27 16:43:53 -05:00
bobby added a new dependency 2026-11-27 16:43:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: bobby/hapi#126