Skip to content

Comments

Add KYC file statistics endpoint#3103

Merged
TaprootFreak merged 2 commits intodevelopfrom
feature/kyc-file-stats-endpoint
Feb 3, 2026
Merged

Add KYC file statistics endpoint#3103
TaprootFreak merged 2 commits intodevelopfrom
feature/kyc-file-stats-endpoint

Conversation

@TaprootFreak
Copy link
Collaborator

Summary

  • Add GET /support/kycFileStats endpoint for compliance users
  • Query yearly KYC file statistics from database (amlListAddedDate, amlListExpiredDate, amlListReactivatedDate, kycFileId)
  • Calculate derived fields iteratively: startCount, addedDuringYear, activeDuringYear, endCount

Test plan

  • Verify endpoint returns correct data for years 2021-2026
  • Verify authentication and authorization (COMPLIANCE role required)
  • Verify calculated fields match expected values

Add GET /support/kycFileStats endpoint that returns yearly KYC file statistics.
Queries amlListAddedDate, amlListExpiredDate, amlListReactivatedDate and kycFileId
from database and calculates derived fields iteratively per year.
@TaprootFreak TaprootFreak marked this pull request as ready for review January 31, 2026 21:07
@TaprootFreak TaprootFreak merged commit 3dc1add into develop Feb 3, 2026
7 checks passed
@TaprootFreak TaprootFreak deleted the feature/kyc-file-stats-endpoint branch February 3, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants