# Get all plugin subscription plans

`GET /api/plugin-plans`

Authentication: no security requirement declared for this operation.

Parameters:

- `pluginId` (query, string, optional) - Filter by plugin ID
  Type: string

- `type` (query, string, optional) - Filter by plan type
  Type: string
  
  enum: ["free","trial","basic","premium","enterprise","custom"]

- `billingPeriod` (query, string, optional) - Billing period
  Type: string
  
  enum: ["daily","weekly","monthly","quarterly","yearly","one-time"]

- `isActive` (query, boolean, optional) - Filter by active status
  Type: boolean

- `isPopular` (query, boolean, optional) - Filter by popular status
  Type: boolean

- `isRecommended` (query, boolean, optional) - Filter by recommended status
  Type: boolean

- `minPrice` (query, number, optional) - Minimum price filter
  Type: number

- `maxPrice` (query, number, optional) - Maximum price filter
  Type: number

- `currency` (query, string, optional) - Currency filter
  Type: string

- `hasTrial` (query, boolean, optional) - Has trial filter
  Type: boolean

Responses:

- 200: Plugin subscription plans retrieved successfully

Content type: application/json

Type: array

Items:
  Reference: [PluginSubscriptionPlan_1](https://sourcey-gauzy.pages.dev/api-reference/models/pluginsubscriptionplan-1/index.md); Type: object

## Examples

### cURL

```bash
curl -X GET 'http://localhost:3000/api/plugin-plans'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/plugin-plans', {
  method: 'GET',
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get('http://localhost:3000/api/plugin-plans')
print(response.text)
```
