cURL
curl --request POST \ --url https://api.example.com/v1/billing/preview-change-plan \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "new_tier": "<string>", "new_interval": "<string>" } '
{ "current_plan": "<string>", "new_plan": "<string>", "proration_amount": 123, "credit_adjustment": 123, "effective_date": "2023-11-07T05:31:56Z", "message": "<string>" }
Preview a plan change before executing.
Returns the proration amount, credit adjustments, and other details so the user can see what will happen before confirming.
JWT Bearer token for dashboard access
Request to change subscription plan.
Successful Response
Preview of plan change before executing.