Update a subscription
Changed onUpdates a subscription using its ID.
When making changes to items or the next billing date for a subscription, you must include the proration_billing_mode field to tell Paddle how to bill for those changes.
Send the complete list of items that you'd like to be on a subscription — including existing items. If you omit items, they're removed from the subscription.
For each item, send price_id and quantity. Paddle responds with the full price object for each price. If you're updating an existing item, you can omit the quantity if you don't want to update it.
If successful, your response includes a copy of the updated subscription entity. When an update results in an immediate charge, responses may take longer than usual while a payment attempt is processed.
You can't update a subscription that's past_due, except to remove a scheduled change by setting scheduled_change to null.
Request
- Base URLhttps://sandbox-api.paddle.com
- AuthHTTP bearer
Path parameters
Paddle ID of the subscription entity to work with.
Request body
Example request
{
"customer_id": "ctm_01grnn4zta5a1mf02jjze7y2ys",
"address_id": "add_01gm302t81w94gyjpjpqypkzkf",
"business_id": "biz_01grrebrzaee2qj2fqqhmcyzaj",
"next_billed_at": "2024-10-12T07:20:50.52Z",
"discount": {
"id": "dsc_01gv5kpg05xp104ek2fmgjwttf"
},
"items": [
{
"price_id": "pri_01gsz8z1q1n00f12qt82y31smh"
}
],
"custom_data": {
"customer_reference_id": "abcd1234"
}
}Response
The request has succeeded.
Changes
- breaking
removed from the
/////request propertyanyOflist - breaking
removed from the
/////request propertyanyOflist - breaking
added to the
//////////response propertyoneOflist for the response status - breaking
added to the
////////response propertyoneOflist for the response status - info
added to the
/////request propertyanyOflist - info
added to the
/////request propertyanyOflist - info
added to the
////////request propertyoneOflist - info
added to the
////////request propertyoneOflist - info
added the required property
///to the response with the status
- breaking
- warning
added the new
CLPenum value to the//response property for the response status - warning
added the new
CLPenum value to the///////response property for the response status - warning
added the new
CLPenum value to the/////////response property for the response status - warning
added the new
PENenum value to the//response property for the response status - warning
added the new
PENenum value to the///////response property for the response status - warning
added the new
PENenum value to the/////////response property for the response status - info
added the new
CLPenum value to the request property/ - info
added the new
CLPenum value to the request property/////// - info
added the new
CLPenum value to the request property///////// - info
added the new
CLPenum value to the request property/////// - info
added the new
CLPenum value to the request property///////// - info
added the new
PENenum value to the request property/ - info
added the new
PENenum value to the request property/////// - info
added the new
PENenum value to the request property///////// - info
added the new
PENenum value to the request property/////// - info
added the new
PENenum value to the request property///////// - info
added the optional property
///////to the response with the status - info
added the optional property
///////to the response with the status - info
added to the
/response propertyanyOflist for the response status - info
removed from the
/response propertyanyOflist for the response status - info
added the required property
/to the response with the status
- warning