Plans
Create a new plan
Create a billing plan with a unique code. Optionally include prices for different currencies. Plans can have MONTHLY, QUARTERLY, or YEARLY billing intervals.
post/api/plans
Request body
Example request
{
"name": "Premium Monthly",
"code": "premium_monthly",
"description": "Premium plan with all features",
"billingInterval": "MONTHLY",
"billingTiming": "IN_ARREARS",
"features": [
"Unlimited users",
"Priority support"
],
"prices": [
{
"currency": "NGN",
"amount": 9999.99
}
],
"netPaymentTerms": 30,
"invoiceGracePeriodDays": 3,
"progressiveBillingThreshold": 1000
}Response
Plan created
Example response
{
"id": "clx1234567890",
"name": "Premium Monthly",
"code": "premium_monthly",
"description": "Premium plan with all features",
"billingInterval": "MONTHLY",
"features": [
"Unlimited users",
"Priority support"
],
"isActive": true,
"billingTiming": "IN_ARREARS",
"minimumCommitment": "100.0000",
"prices": [
{
"id": "clx1234567890",
"planId": "clxplan123",
"currency": "USD",
"amount": "49.9900",
"isActive": true
}
]
}