Skip to content

feat: implemented submit KYC documents endpoint#83

Merged
ayshadogo merged 4 commits into
Dfunder:mainfrom
emarc99:feat/kyc-docs-submit-endpoint
Jun 26, 2026
Merged

feat: implemented submit KYC documents endpoint#83
ayshadogo merged 4 commits into
Dfunder:mainfrom
emarc99:feat/kyc-docs-submit-endpoint

Conversation

@emarc99

@emarc99 emarc99 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Description

Allows users to submit their KYC documents for admin review.

  • Created KYC Mongoose model for document tracking.
  • Implemented POST /api/users/me/kyc endpoint to handle multipart document uploads (PDF/JPG/PNG up to 5MB).
  • Validates that users don't submit duplicate requests if they have active or pending submissions.
  • Sets user's kycStatus to pending upon a successful submission.
  • Added comprehensive unit and integration tests covering validations, duplicate checks, and successful submissions.
image

@emarc99

emarc99 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

@ayshadogo kindly review,...

@ayshadogo ayshadogo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ayshadogo ayshadogo merged commit 39481a1 into Dfunder:main Jun 26, 2026
1 check passed
@grantfox-oss grantfox-oss Bot mentioned this pull request Jun 26, 2026
5 tasks
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.

Submit KYC Documents Endpoint

2 participants