-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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"
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request