GET /api/subscriptions 🔒 Auth Required

Get a list of all subscription plans (Admin only)

📋 Endpoint Details

Method: GET
Path: /api/subscriptions
Authentication: Required - Include Authorization: Bearer <token> header

📥 Response Example

{ "success": true, "message": "Plans fetched", "data": [ { "_id": "...", "name": "Premium Plan", "durationDays": 30, "price": 29.99, "discount": 0, "status": "active", "createdAt": "2024-01-01T00:00:00.000Z", "updatedAt": "2024-01-01T00:00:00.000Z" } ] }

💡 Usage Tips

cURL Example:

curl -X GET \ http://localhost:3000/api/subscriptions \ -H "Authorization: Bearer YOUR_TOKEN_HERE"
← Back to Home