Subscriptions
Preview upgrade pricing before confirming
POST
Permission: billing.manage
apiTokenheader
AuthorizationBearer <token>An API token (mwp_…) from Settings → API tokens. Only accepted on this host.
sub_id*Sub IdFormat
uuidapplication/json- body
new_plan_id*New Plan IdFormat
uuidSuccessful Response
application/json- response
success*booleandata*The result; on an error, details such as code and permission.
message*stringstatus_code*integertimestamp*stringFormat
date-timemeta?|nullcurl -X POST "https://example.com/v1/subscriptions/497f6eca-6276-4993-bfeb-53cbbbba6f08/upgrade/preview" \ -H "Content-Type: application/json" \ -d '{ "new_plan_id": "2d17ed43-dab8-4ccb-b506-9f23ea4d4c78" }'{ "message": "string", "status_code": 0, "timestamp": "2019-08-24T14:15:22Z", "meta": {}, "success": true, "data": { "current_plan": "string", "new_plan": "string", "billing_cycle": "string", "current_price": "string", "new_price": "string", "prorated_amount": "string", "remaining_days": 0, "cycle_days": 0, "current_period_end": null, "new_sites": 0, "new_storage": 0 }}