End a trial now and charge
POST/panel/workspaces/:workspace/subscription/end-trial
Ends the trial of the workspace's subscription right away: the payment platform charges the card on file for the first billing period and the subscription becomes active. The request takes no body.
Stripe and Paddle Billing support it; Paddle Classic doesn't. On Stripe a declined card refuses the request and the trial stays as it was. A trial without a card (a generic subscription) has nothing to charge and is refused, as is a subscription that is canceled, paused, past due or incomplete.
Request
Responses
- 200
- 401
- 403
- 404
- 422
{"success": true} — hard-coded literal, never false.
The bearer token is missing, malformed, unknown, or expired.
The token is valid, but the user it belongs to may not perform this action:
- they are not a member of the
{workspace}in the path; or - their workspace role is too low for this endpoint (write routes require Admin or Member); or
- for
/panelendpoints, they are not a platform administrator.
The {workspace} UUID in the path does not match any workspace.
Every message is returned under errors.subscription:
- "This workspace is not on a trial."
- "The active payment platform does not support ending a trial early."
- The payment platform's own message when it refuses the charge.