VIP Packages
This document describes the available VIP packages and their features.
List VIP Packages
Retrieve a list of all active VIP packages.
Endpoint
- Method: GET
- URL:
/api/vip-packages
Request Headers
| Header | Value | Required |
|---|---|---|
| Content-Type | application/json | Yes |
| Accept | application/json | Yes |
Success Response
{
"success": true,
"message": "Data retrieved successfully",
"data": [
{
"id": 1,
"name": "Premium Monthly",
"features": ["feature1", "feature2"],
"price": 99.99,
"is_active": true,
"duration": 30,
"is_free": false,
"iap_price": "99.99",
"iap_product_id": "premium_monthly",
"free_trial_days": 7,
"can_use_free_trial": true,
"tax": 15
}
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
| id | integer | Unique identifier for the package |
| name | string | Name of the VIP package |
| features | array | List of features included in the package |
| price | number | Price of the package in default currency |
| is_active | boolean | Whether the package is currently active |
| duration | integer | Duration of the package in days |
| is_free | boolean | Whether the package is free (price = 0) |
| iap_price | string | In-app purchase price |
| iap_product_id | string | In-app purchase product identifier |
| free_trial_days | integer | Number of free trial days available |
| can_use_free_trial | boolean | Whether free trial is available for this package |
| tax | number | Tax percentage applied to the package |
Implementation Notes
- Only packages with
is_active = trueare returned is_freeis calculated based on whether the price is 0- The response is wrapped in VipPackagesResource