Extend or shorten a trial
PUT/panel/workspaces/:workspace/subscription/trial-end
Moves the end of the workspace's running trial to another day: a later day extends the trial, an earlier one shortens it. The trial keeps its current time of day, and the day is read in the instance's timezone. Nothing is billed by the change itself; the customer is charged when the new trial end is reached.
When the workspace has a subscription on trial, the change is made on the payment platform too. Stripe, Paddle Billing and Paddle Classic support it; Paddle Classic works in whole days, so the trial then ends at the start of the chosen day (UTC). A subscription that is canceled, paused, past due or incomplete cannot be changed.
Otherwise the trial of the workspace's generic (paid) subscription is changed, including a trial that has already expired, which gives the workspace trial access again.
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.trial_ends_at:
- "This workspace is not on a trial."
- "The new trial end date must be in the future."
- "The active payment platform does not support changing the trial end date."
- The payment platform's own message when it refuses the change.