curl --request POST \
--url https://api.kelviq.com/api/v1/subscriptions/{subscriptionId}/update/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"planIdentifier": "new_plan_enterprise",
"chargePeriod": "YEARLY",
"features": [
{
"identifier": "seats",
"quantity": 10
}
],
"ipAddress": "103.154.35.20"
}
'{
"subscriptionId": "dffaf07e-4517-47db-ba3a-59a05aa2d465"
}Updates an existing subscription to a new plan, charge period, and/or features.
curl --request POST \
--url https://api.kelviq.com/api/v1/subscriptions/{subscriptionId}/update/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"planIdentifier": "new_plan_enterprise",
"chargePeriod": "YEARLY",
"features": [
{
"identifier": "seats",
"quantity": 10
}
],
"ipAddress": "103.154.35.20"
}
'{
"subscriptionId": "dffaf07e-4517-47db-ba3a-59a05aa2d465"
}The Server API Key obtained from the kelviq application. Pass as a Bearer token in the Authorization header. Example: 'Authorization: Bearer YOUR_API_KEY'
The unique identifier of the subscription to be updated. Example UUID from docs: 78058918-9746-4280-9b9b-1bd5115eec6e
The identifier of the new plan.
"new_plan_enterprise"
The new charging period for the subscription.
ONE_TIME, MONTHLY, YEARLY, WEEKLY, DAILY, THREE_MONTHS, SIX_MONTHS "YEARLY"
List of features and quantities to update for the subscription.
Show child attributes
[{ "identifier": "seats", "quantity": 10 }]The IP Address of the customer, for location-based pricing.
"103.154.35.20"
UUID of the updated subscription
"dffaf07e-4517-47db-ba3a-59a05aa2d465"