{
"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"
}
Subscriptions
Create Subscription Plan
Create a new recurring subscription plan for customers to subscribe to
POST
/
v1
/
subscription-plans
{
"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"
}
Authentication
This endpoint requires a Bearer token in theAuthorization header.
Authorization: Bearer <your_jwt_token>
Body Parameters
A human-readable name for the subscription plan (e.g.,
Pro Monthly, Enterprise Yearly).Response
{
"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"
}