curl --request GET \
--url https://api.altostrat.io/workspaces/{workspaceId}/billing-accounts/{billingAccountId}/subscriptions \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "sub_a1b2c3d4e5f6g7h8",
"billing_account_id": "cus_a1b2c3d4e5f6g7h8",
"status": "active",
"currency": "usd",
"product_quantities": {
"locations": {
"price_id": "price_123abc",
"quantity": 10,
"interval": "month"
},
"users": {
"price_id": "price_456def",
"quantity": 50,
"interval": "month"
}
},
"metadata": {
"order_id": "6735"
},
"current_period_start": "2025-10-15T00:00:00Z",
"current_period_end": "2025-11-15T00:00:00Z",
"created_at": "2025-10-15T12:30:00Z",
"updated_at": "2025-10-20T09:00:00Z"
}
],
"has_more": false
}Returns a list of subscriptions associated with a billing account.
curl --request GET \
--url https://api.altostrat.io/workspaces/{workspaceId}/billing-accounts/{billingAccountId}/subscriptions \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "sub_a1b2c3d4e5f6g7h8",
"billing_account_id": "cus_a1b2c3d4e5f6g7h8",
"status": "active",
"currency": "usd",
"product_quantities": {
"locations": {
"price_id": "price_123abc",
"quantity": 10,
"interval": "month"
},
"users": {
"price_id": "price_456def",
"quantity": 50,
"interval": "month"
}
},
"metadata": {
"order_id": "6735"
},
"current_period_start": "2025-10-15T00:00:00Z",
"current_period_end": "2025-11-15T00:00:00Z",
"created_at": "2025-10-15T12:30:00Z",
"updated_at": "2025-10-20T09:00:00Z"
}
],
"has_more": false
}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"
A list of subscription objects.
Show child attributes
Unique identifier for the subscription (Stripe Subscription ID), prefixed with sub_.
"sub_a1b2c3d4e5f6g7h8"
The ID of the billing account this subscription belongs to.
"cus_a1b2c3d4e5f6g7h8"
The status of the subscription.
active, past_due, unpaid, canceled, incomplete, incomplete_expired, trialing, paused "active"
The three-letter ISO currency code for the subscription.
usd, zar, eur, gbp, aud "usd"
A map of meterable product types to their subscribed quantities and pricing details.
Show child attributes
Show child attributes
The ID of the Stripe Price object.
"price_1Kb..."
The number of units subscribed to.
50
The billing interval for this product.
day, week, month, year "month"
{
"locations": {
"price_id": "price_123abc",
"quantity": 10,
"interval": "month"
},
"users": {
"price_id": "price_456def",
"quantity": 50,
"interval": "month"
}
}The start of the current billing period.
"2025-10-15T00:00:00Z"
The end of the current billing period.
"2025-11-15T00:00:00Z"
The timestamp when the subscription was created.
"2025-10-15T12:30:00Z"
The timestamp when the subscription was last updated in our system.
"2025-10-20T09:00:00Z"
false
Was this page helpful?