Altostrat Studio is here — the AI-native network operations IDE for engineers running production. Terminal, diagrams, runbooks, and Copilot in one workspace. Get started →
curl --request GET \
--url https://v1.api.altostrat.io/workspaces/{workspaceId}/billing-accounts/{billingAccountId}/trial-eligibility \
--header 'Authorization: Bearer <token>'{
"trial_eligible": true,
"has_payment_method": false,
"can_create_subscription": true,
"trial_info": {
"trial_days": 14,
"message": "This workspace qualifies for a 14-day free trial because it has only one billing account with no existing subscriptions."
},
"requirements": {
"add_payment_method": "A default payment method must be added before creating subscriptions."
}
}Checks if a workspace is eligible for a 14-day free trial. A workspace is eligible if it has only one billing account and no existing subscriptions.
curl --request GET \
--url https://v1.api.altostrat.io/workspaces/{workspaceId}/billing-accounts/{billingAccountId}/trial-eligibility \
--header 'Authorization: Bearer <token>'{
"trial_eligible": true,
"has_payment_method": false,
"can_create_subscription": true,
"trial_info": {
"trial_days": 14,
"message": "This workspace qualifies for a 14-day free trial because it has only one billing account with no existing subscriptions."
},
"requirements": {
"add_payment_method": "A default payment method must be added before creating subscriptions."
}
}Documentation Index
Fetch the complete documentation index at: https://altostrat.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Enter your JWT in the format: Bearer {token}
The ID of the workspace.
"ws_a1b2c3d4e5f6g7h8"
The ID of the billing account, which corresponds to a Stripe Customer ID (cus_...).
"cus_a1b2c3d4e5f6g7h8"
Trial eligibility status.
Whether the workspace qualifies for a new trial subscription.
true
Whether the billing account has a default payment method on file.
false
A convenient flag indicating if a new subscription can be created (either trial eligible or has a payment method).
true
Show child attributes
An object detailing what is needed to create a subscription if can_create_subscription is false.
{
"add_payment_method": "A default payment method must be added before creating subscriptions."
}Was this page helpful?