Create a subscription
Creates a new subscription for a customer directly, without requiring a checkout session.
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
The identifier of the specific plan the customer is subscribing to.
"plan-pro-monthly"
The billing cycle for the subscription. If the plan is free, pass ONE_TIME as the chargePeriod.
ONE_TIME, MONTHLY, YEARLY, WEEKLY, DAILY, THREE_MONTHS, SIX_MONTHS "MONTHLY"
The ID of the customer creating the subscription.
"cust_789"
The URL to which the user will be redirected after a successful subscription creation. Optional.
"https://kelviq.com/subscription/success"
A list of features and their desired quantities.
[{ "identifier": "seats", "quantity": 5 }]The IP Address of the customer, used for location-based pricing.
"103.154.35.20"
Response
Subscription Created
The unique identifier of the created subscription.
"520ca8a5-9fc0-4d6a-bc7a-2ba331595441"
The start date of the subscription.
"2026-02-07"
The end date of the subscription, if applicable.
null
The start time of the current billing period.
"2026-02-07T06:02:05Z"
The end time of the current billing period.
"2026-02-08T06:02:05Z"
The subscription amount.
"2000.00"
The recurrence interval of the subscription.
"month"
The currency of the subscription.
"USD"
The current status of the subscription.
"trialing"
List of features included in the subscription.
Number of trial days remaining.
1
The customer identifier associated with this subscription.
"geojacob"