Create a plan
Creates a plan within a plan group. Amount is in kobo. Set trial_period_days to give new subscribers a free trial before the first charge. Set lookup_key to a stable handle (e.g. pro_monthly) so your app can reference the plan by role instead of by UUID.
Authorizations
Use sk_test_ keys for sandbox. Use sk_live_ keys for production. Obtain your key from the dashboard.
Body
"pg_01JABC..."
100"Pro"
Price in kobo. ₦5,000 = 500000.
500000
day, week, month, year "month"
Required. Stable handle (lowercase letters, numbers, underscores), unique per tenant. Reference this instead of the UUID. Reusing an existing key returns 409.
^[a-z0-9_]+$"pro_monthly"
e.g., 3 months = interval "month" + count 3
1
14
Response
Plan created
plan "pln_01JABC..."
"pg_01JABC..."
"Pro"
Amount in kobo as a string. ₦5,000 = "500000".
"500000"
day, week, month, year "month"
1
14
Stable, human-meaningful handle for the plan (e.g. "pro_monthly"). Unique per tenant. Reference this instead of the UUID so your app doesn't hardcode environment-specific ids.
"pro_monthly"
false when the plan is archived — hidden from the default plan list and closed to new subscriptions. Existing subscribers keep billing.
true