Update a subscription plan
POST
https://api.tamio.com/v2/subscriptions/update/{uuid}
Switches the billing plan of an existing subscription. Specify the target product and pricing model. Optionally adjust the quantity and enable prorated billing for mid-cycle changes.
Path Parameters
uuid
string*
UUID of the subscription to update.
Body Parameters
id
string*
UUID of the target product/plan.
pricing_model_id
string*
UUID of the pricing model to apply.
quantity
integer
Subscription quantity (seats/licenses).
prorations
boolean
Apply prorated billing for mid-cycle changes.
Responses
200
Plan switched successfully
Plan switched successfully
status
integer
subscription
Subscription
upcoming_invoice
object
Preview of the next invoice after the change.
400
Validation or business-logic error
Validation or business-logic error
status
integer
error
string
error_code
integer
401
Missing or invalid API key
Missing or invalid API key
status
integer
error
string
error_code
integer