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.


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions