Skip to content

Submit KYC Documents Endpoint #50

Description

@grantfox-oss

Description:
Allow users to submit their KYC documents for admin review.

Tasks:

  • Create KYC schema/model: src/models/KYC.model.js with fields: userId, documentType, documentUrl, status, submittedAt, reviewedAt, reviewNote
  • Create POST /api/users/me/kyc
  • Require authentication; check that user hasn't already submitted or been approved
  • Accept document upload (PDF/JPG/PNG) and save reference
  • Set kycStatus on User to pending

Acceptance Criteria:
Users can submit KYC; duplicate submissions are rejected.


Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions