Create a plan
Creates a new plan against a product. The new plan starts as an unpublished draft (isLatest=false) until POST /plans/{identifier}/publish/ is called.
Authorizations
The Server API Key obtained from the kelviq application. Pass as a Bearer token in the Authorization header. Example: 'Authorization: Bearer YOUR_API_KEY'
Body
"Pro Monthly"
UUID of the parent product.
"0d65f7c0-7e91-4f56-9b32-13a9a6a7c1de"
"pro-monthly"
"Pro tier billed monthly."
true
License configuration for a plan (used when issuing license keys).
Temporary S3 keys (e.g. tmp/<uuid>/<filename>) returned by POST /media/ for files to attach to the plan. Uploaded files are moved into permanent storage and exposed via the plan's files[].
1
Response
Plan created.
A versioned plan attached to a product. Updates create new versions; only the published version is is_latest=true.
URL-safe slug. Stable across versions.
"pro-monthly"
"Pro Monthly"
"Pro tier billed monthly."
UUID of the parent product.
"0d65f7c0-7e91-4f56-9b32-13a9a6a7c1de"
3
True only for the currently published version.
true
"2025-04-12T08:21:14.910Z"
"2025-03-01T08:21:14.910Z"
Provider-side identifiers (e.g. stripeProductId).
true
false
License configuration for a plan (used when issuing license keys).
1