Skip to main content

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

HeaderValueRequired
Content-Typeapplication/jsonYes
Acceptapplication/jsonYes

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

FieldTypeDescription
idintegerUnique identifier for the package
namestringName of the VIP package
featuresarrayList of features included in the package
pricenumberPrice of the package in default currency
is_activebooleanWhether the package is currently active
durationintegerDuration of the package in days
is_freebooleanWhether the package is free (price = 0)
iap_pricestringIn-app purchase price
iap_product_idstringIn-app purchase product identifier
free_trial_daysintegerNumber of free trial days available
can_use_free_trialbooleanWhether free trial is available for this package
taxnumberTax percentage applied to the package

Implementation Notes

  • Only packages with is_active = true are returned
  • is_free is calculated based on whether the price is 0
  • The response is wrapped in VipPackagesResource