ghostguild-org/server/api
Jennie Robinson Faber 4f9c11a755 feat(billing): add payment history API route
Add GET /api/helcim/payment-history returning the authenticated
member's normalized Helcim card transactions (newest first, capped
at 50). Resolves helcimCustomerId -> customerCode via getHelcimCustomer
before calling listHelcimCustomerTransactions. Returns
{ transactions: [] } when the member has no helcimCustomerId, and
{ transactions: [], error: 'unavailable' } (HTTP 200) on Helcim
failures so the UI can render fallback copy.

Covered by unit tests at tests/server/api/helcim-payment-history.test.js
(auth, missing customer id, happy path, both Helcim failure paths,
missing customerCode).
2026-04-19 16:26:19 +01:00
..
admin New SiteContent. 2026-04-16 21:11:14 +01:00
auth fix(auth): expose helcimCustomerId on /api/auth/member 2026-04-19 13:04:46 +01:00
board refactor(board): atomic delete + query limit + composable cleanup 2026-04-15 12:47:53 +01:00
contributions Adding features 2025-10-05 16:15:09 +01:00
dev merge: worktree-a11y-fixes into main 2026-04-05 22:05:00 +01:00
events refactor(events): gate member benefits on hasMemberAccess 2026-04-18 17:06:17 +01:00
helcim feat(billing): add payment history API route 2026-04-19 16:26:19 +01:00
invite feat(signup): community guidelines agreement and policies routes 2026-04-18 17:06:10 +01:00
members feat(contribution): free-to-paid uses cadence plan id, persists billingCadence 2026-04-18 17:37:35 +01:00
onboarding feat(member): account/profile polish + tier upgrade flow 2026-04-14 20:35:37 +01:00
series refactor(events): gate member benefits on hasMemberAccess 2026-04-18 17:06:17 +01:00
site-content New SiteContent. 2026-04-16 21:11:14 +01:00
tags feat: add Tags API endpoints and validation schemas 2026-04-05 16:15:29 +01:00
upload Add Zod validation, fix mass assignment, remove test endpoints and dead code 2026-03-01 14:02:46 +00:00
wiki fix: rename hasEngagedEcology → hasEngagedBoard in onboarding status, clean up stale ecology references 2026-04-14 12:25:24 +01:00
health.get.js feat: add /api/health endpoint for uptime monitoring 2026-04-04 12:35:26 +01:00