#392 — Merchant transaction monthly kpis table
Repo: Twill-AI/facade State: closed | Status: done Assignee: meliascosta
Created: 2025-07-12 · Updated: 2025-07-22
Description
In order to show “Processing Volume Trends” and “Top Performing Merchants” widgets in UI on Partner portal “Dashboard” page
we need to get and save simple KPI-s per merchant.
AC:
- Facade’s “master” persistence has tables with KPI-s per merchant. They have “merchant_id”, “partner_id”, “user_id” columns to allow right filtering. Data is updated in scope of
/partner/merchants/forcecall handling. Amount of data fetched and saved should be as small as possible, for inspiration see XHR requests of “View Merchant” page in PE portal in browser DevTools “Network” tab. For example see https://console.payengine.dev/api/v2/merchant/64cba9eb-c516-4819-86f4-d405c0b953ee/revenue?period=weekly&type=total request. - Facade supports GET
/partner/dashboardAPI which returns data required to render “Dashboard” page. Filtering by user is expected to happen by JWT (blocked by https://github.com/Twill-AI/facade/issues/396).
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets