Update a Subscription Item
/v1/subscription-items/:id
Updates the subscription with the given ID and provided attributes.
Note
This endpoint is only used with quantity-based billing. If the related subscription’s product/variant has usage-based billing enabled, this endpoint will return a 422 Unprocessable Entity
response.
Attributes
quantity
The unit quantity of the subscription.
invoice_immediately
If true
, any updates to the subscription will be charged immediately. A new prorated invoice will be generated and payment attempted. Defaults to false
. Note that this will be overridden by the disable_prorations
option if used.
disable_prorations
If true
, no proration will be charged and the customer will simply be charged the new price at the next renewal. Defaults to false
. Note that this will override the invoice_immediately
option if used.
Read about proration in the Developer Guide.
Returns
Returns the updated Subscription Item object.