Skip to content

Request: Update User API – Membership Renewal #120

@khinezarthwe

Description

@khinezarthwe

Purpose Allow users to request a membership renewal.
When a user requests renewal, the system will respond with a Google Drive URL where they can upload their payment proof.

Endpoint : POST /api/user/request_renew

Identification : telegram_name or email and plan

Request Body (example)

{
  "email": "user@example.com",
   "plan": "6months"
}
OR
{
  "telegram_name": "username123",
   "plan": "6months"
}

Response (example)

{
  "status": "success",
  "message": "Renewal request received",
  "upload_url": "https://drive.google.com/..."
}

Behavior

  • The API accepts either telegram_name or email to identify the user.

  • When the renewal request is successful, system returns a Google Drive upload URL.

  • The user can upload their payment proof using this link.

Optional (nice-to-have)

Validate that the user already requested the renewal exists

Prevent duplicate renewal requests (if already pending)

Return meaningful error messages:

{
"status": "error // pending xxx",
"message": "User not found"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions