GET
/
workspaces
/
{workspace_id}
/
billing-accounts
/
{billing_account_id}
/
trial-eligibility
Check Trial Eligibility
curl --request GET \
  --url https://api.altostrat.io/workspaces/{workspace_id}/billing-accounts/{billing_account_id}/trial-eligibility \
  --header 'Authorization: Bearer <token>'
{
  "trial_eligible": true,
  "has_payment_method": true,
  "can_create_subscription": true,
  "trial_info": {
    "trial_days": 123,
    "message": "<string>"
  },
  "requirements": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Auth0 JWT token for user authentication.

Path Parameters

workspace_id
string
required

The unique identifier for the workspace.

Example:

"ws_abc123"

billing_account_id
string
required

The unique identifier for the billing account (Stripe customer ID).

Example:

"cus_abc123"

Response

200 - application/json

Trial eligibility status.

The response is of type object.