# StatusResponse

Type: object

Current subscription state for the workspace.

## Properties

- `status` (string, required) - Billing status. One of: unpaid, initializing, trial_pending, trialing, active, past_due, paused, incomplete, incomplete_expired, canceled.
- `active` (boolean, required) - Whether the subscription allows usage right now
- `plan` (string, optional) - Current plan name
- `cancelAtPeriodEnd` (boolean, required) - True when the subscription is scheduled to cancel at the end of the current billing period. The subscription is still active until cancelAt; after that date it transitions to canceled.
- `cancelAt` (string, optional) - When access ends if a cancellation is scheduled. Absent when the subscription is not scheduled to cancel.
- `trialEndsAt` (string, optional) - When the trial ends and the first real charge is attempted. Only populated when status is "trialing"; absent otherwise.
- `paymentIssue` (boolean, required) - True when the subscription is in a state that indicates a payment problem (past_due, unpaid, incomplete, incomplete_expired). The UI should prompt the customer to update their payment method.
- `trialAvailable` (boolean, required) - Whether the self-service trial can still be started for this workspace.

