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 to switch to.
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.
| Code | Description |
|---|---|
1002 | Subscription or target product not found |
10045 | Invalid or missing pricing model selection |
10256 | A pending subscription update job already exists |
10287 | Plan was switched too recently |
90041 | Payment gateway does not support this operation |
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