Change Subscription
Intent
Applies the supplied changes to the subscription.
When to call it
Call this when the subscription already exists and its stored values need to change.
Access boundary
Authorize the request with a token that carries customer_portal:write.
Successful result
A successful request returns 200. The response schema below defines the body your integration receives.
Operational notes
Update a subscription of the authenticated customer.
Authorizations
Customer session tokens are specific tokens that are used to authenticate customers on your organization. You can create those sessions programmatically using the Create Customer Session endpoint.
Path Parameters
The subscription ID.
Body
- CustomerSubscriptionUpdateProduct
- CustomerSubscriptionUpdateSeats
- CustomerSubscriptionCancel
- CustomerSubscriptionUpdateClear
Update subscription to another product.
Response
Customer subscription updated.
The time Ruba created this record.
The time this record last changed.
The stable identifier for this record.
The amount of the subscription.
10000
The currency of the subscription.
"usd"
The interval at which the subscription recurs.
day, week, month, year "month"
Number of interval units of the subscription. If this is set to 1 the charge will happen every interval (e.g. every month), if set to 2 it will be every other month, and so on.
The status of the subscription.
incomplete, incomplete_expired, trialing, active, past_due, canceled, unpaid "active"
The start timestamp of the current billing period.
The end timestamp of the current billing period.
The start timestamp of the trial period, if any.
The end timestamp of the trial period, if any.
Whether the subscription will be canceled at the end of the current period.
The timestamp when the subscription was canceled. The subscription might still be active if cancel_at_period_end is true.
The timestamp when the subscription started.
The timestamp when the subscription will end.
The timestamp when the subscription ended.
The ID of the subscribed customer.
The ID of the subscribed product.
The ID of the applied discount, if any.
customer_service, low_quality, missing_features, switched_service, too_complex, too_expensive, unused, other List of enabled prices for the subscription.
A recurring price for a product, i.e. a subscription.
Deprecated: The recurring interval should be set on the product itself.
- LegacyRecurringProductPriceFixed
- LegacyRecurringProductPriceCustom
- ProductPriceFixed
- ProductPriceCustom
- ProductPriceSeatBased
- ProductPriceMeteredUnit
List of meters associated with the subscription.
Pending subscription update that will be applied at the beginning of the next period. If null, there is no pending update.
The timestamp when the subscription entered past_due status.
The number of seats for seat-based subscriptions. None for non-seat subscriptions.