curl -X POST https://zeplo.ai/api/admin/plans \
-H "x-api-key: YOUR_API_KEY" \
-H "x-api-secret: YOUR_API_SECRET" \
-H "x-channel-id: YOUR_CHANNEL_ID" \
-H "Content-Type: application/json" \
-d '{
"name": "Enterprise",
"price": 199.99,
"currency": "USD",
"interval": "monthly"
}'
{
"success": true,
"data": {
"id": 4,
"name": "Enterprise",
"price": 199.99,
"currency": "USD",
"interval": "monthly",
"status": "active",
"createdAt": "2026-01-15T12:00:00Z"
}
}
Subscriptions & Plans
POST Create Plan
Create a new subscription plan (superadmin).
POST
/
api
/
admin
/
plans
curl -X POST https://zeplo.ai/api/admin/plans \
-H "x-api-key: YOUR_API_KEY" \
-H "x-api-secret: YOUR_API_SECRET" \
-H "x-channel-id: YOUR_CHANNEL_ID" \
-H "Content-Type: application/json" \
-d '{
"name": "Enterprise",
"price": 199.99,
"currency": "USD",
"interval": "monthly"
}'
{
"success": true,
"data": {
"id": 4,
"name": "Enterprise",
"price": 199.99,
"currency": "USD",
"interval": "monthly",
"status": "active",
"createdAt": "2026-01-15T12:00:00Z"
}
}
Create plan
POST /api/admin/plans
Create a new subscription plan.
Headers
string
required
Your API key
string
required
Your API secret key
string
required
WhatsApp channel ID
curl -X POST https://zeplo.ai/api/admin/plans \
-H "x-api-key: YOUR_API_KEY" \
-H "x-api-secret: YOUR_API_SECRET" \
-H "x-channel-id: YOUR_CHANNEL_ID" \
-H "Content-Type: application/json" \
-d '{
"name": "Enterprise",
"price": 199.99,
"currency": "USD",
"interval": "monthly"
}'
Body parameters
string
required
Plan name.
string
Plan description.
number
required
Price.
string
required
Currency code (
USD, INR, etc.).string
required
monthly or yearly.object
Feature limits (-1 for unlimited).
{
"success": true,
"data": {
"id": 4,
"name": "Enterprise",
"price": 199.99,
"currency": "USD",
"interval": "monthly",
"status": "active",
"createdAt": "2026-01-15T12:00:00Z"
}
}
Requires
superadmin role. After creation, sync the plan to your payment gateway using /api/admin/plans/:id/sync-gateway.