Authentication
This endpoint requires a Bearer token in the Authorization header.
Authorization: Bearer <your_jwt_token>
Body Parameters
A human-readable name for the subscription plan (e.g., Pro Monthly, Enterprise Yearly).
The recurring payment amount per billing interval.
The fiat currency for the plan. Supported values: USD, LKR.
The billing interval. Accepted values: daily, weekly, monthly, yearly.
Number of free trial days before the first billing cycle begins. Defaults to 0.
A description of what the plan includes. Displayed to customers on the checkout page.
Response
Unique identifier for the subscription plan.
Whether the plan is currently active and accepting new subscribers.
ISO 8601 timestamp of when the plan was created.
{
"name": "Pro Monthly",
"amount": 29.99,
"currency": "USD",
"interval": "monthly",
"trialDays": 14,
"description": "Access to all Pro features including priority support"
}
{
"id": "plan_abc123def456",
"name": "Pro Monthly",
"amount": 29.99,
"currency": "USD",
"interval": "monthly",
"trialDays": 14,
"description": "Access to all Pro features including priority support",
"active": true,
"createdAt": "2026-03-26T14:30:00Z"
}