This endpoint requires authentication with a valid JWT token and CUSTOMER role.
Authentication
Bearer token for authentication
Path Parameters
The reseller ID being reported
Response
Indicates if the report was sent successfully
Example Request
curl -X POST "http://localhost:3333/mail/report/reseller_123" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
Response Example
{
"success": true,
"message": "Report sent successfully"
}
Error Responses
Unauthorized - Invalid or missing token
Forbidden - User does not have CUSTOMER role
Not Found - Reseller not found