Skip to main content
GET
/
api
/
v1
/
plans
/
index
curl -X GET http://localhost/fss/public/api/v1/plans/index \
  -H "X-API-Token: YOUR_API_TOKEN"
{
  "status": "success",
  "data": [
    {
      "id": 1,
      "name": "Basic",
      "price": 29.99,
      "interval": "monthly",
      "features": ["Feature 1", "Feature 2"]
    },
    {
      "id": 2,
      "name": "Pro",
      "price": 49.99,
      "interval": "monthly",
      "features": ["Feature 1", "Feature 2", "Feature 3"]
    }
  ]
}

Get Plans

Get all available subscription plans.

Endpoint

GET /api/v1/plans/index
This endpoint requires authentication

Headers

X-API-Token
string
required
Your API access token. You can also set this globally in the API playground.
platform
string
required
The platform making the request: WEB, IOS, or ANDROID.

Request Body

None

Response

status
string
Success status
data
array
Array of subscription plans
curl -X GET http://localhost/fss/public/api/v1/plans/index \
  -H "X-API-Token: YOUR_API_TOKEN"
{
  "status": "success",
  "data": [
    {
      "id": 1,
      "name": "Basic",
      "price": 29.99,
      "interval": "monthly",
      "features": ["Feature 1", "Feature 2"]
    },
    {
      "id": 2,
      "name": "Pro",
      "price": 49.99,
      "interval": "monthly",
      "features": ["Feature 1", "Feature 2", "Feature 3"]
    }
  ]
}