v1

latestOpenAPI 3.1.02026-07-1382141292.4 KB
Subscriptions

Add Feature to Subscription

Add a feature to a subscription. For toggle features, this is idempotent. For usage credit features, amounts accumulate. Optionally grant credits immediately for the current billing period.

post/api/v1/subscriptions/{id}/add-feature

Path parameters

idstring required

The subscription ID

The subscription ID

Request body

featureIdstring

The feature ID to add. Exactly one of featureId or featureSlug must be provided.

featureSlugstring

The feature slug to add. The feature will be resolved from the subscription pricing model. Exactly one of featureId or featureSlug must be provided.

grantCreditsImmediatelyboolean

If true and the feature is a usage credit grant, credits will be granted immediately for the current billing period

Response

Successful response