GET /api/subscriptions/:id 🔒 Auth Required

Get a subscription plan by ID (Admin only)

📋 Endpoint Details

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

📥 Response Example

{ "success": true, "message": "Plan 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/:id \ -H "Authorization: Bearer YOUR_TOKEN_HERE"
← Back to Home