curl -X GET http://localhost/fss/public/api/v1/plans/index \
-H "X-API-Token: YOUR_API_TOKEN"
const response = await fetch('http://localhost/fss/public/api/v1/plans/index', {
method: 'GET',
headers: {
'X-API-Token': 'YOUR_API_TOKEN'
}
});
const data = await response.json();
{
"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"]
}
]
}
{
"status": "error",
"message": "Unauthorized"
}
Get Plans
Get available subscription plans
GET
/
api
/
v1
/
plans
/
index
curl -X GET http://localhost/fss/public/api/v1/plans/index \
-H "X-API-Token: YOUR_API_TOKEN"
const response = await fetch('http://localhost/fss/public/api/v1/plans/index', {
method: 'GET',
headers: {
'X-API-Token': 'YOUR_API_TOKEN'
}
});
const data = await response.json();
{
"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"]
}
]
}
{
"status": "error",
"message": "Unauthorized"
}
Get Plans
Get all available subscription plans.Endpoint
GET /api/v1/plans/index
This endpoint requires authentication
Headers
string
required
Your API access token. You can also set this globally in the API playground.
string
required
The platform making the request:
WEB, IOS, or ANDROID.Request Body
NoneResponse
string
Success status
array
Array of subscription plans
curl -X GET http://localhost/fss/public/api/v1/plans/index \
-H "X-API-Token: YOUR_API_TOKEN"
const response = await fetch('http://localhost/fss/public/api/v1/plans/index', {
method: 'GET',
headers: {
'X-API-Token': 'YOUR_API_TOKEN'
}
});
const data = await response.json();
{
"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"]
}
]
}
{
"status": "error",
"message": "Unauthorized"
}
