Skip to content

feat: implemented submit KYC documents endpoint#83

Open
emarc99 wants to merge 4 commits into
Dfunder:mainfrom
emarc99:feat/kyc-docs-submit-endpoint
Open

feat: implemented submit KYC documents endpoint#83
emarc99 wants to merge 4 commits into
Dfunder:mainfrom
emarc99:feat/kyc-docs-submit-endpoint

Conversation

@emarc99

@emarc99 emarc99 commented Jun 26, 2026

Copy link
Copy Markdown

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
Author

@ayshadogo kindly review,...

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

1 participant