Vai al contenuto principale
GET
/
workspaces
/
{workspaceId}
/
billing-accounts
/
{billingAccountId}
/
subscriptions
Elenca gli abbonamenti
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
}

Authorizations

Authorization
string
header
required

Inserisci il tuo JWT nel formato: Bearer {token}

Path Parameters

workspaceId
string
required

L'ID del workspace.

Example:

"ws_a1b2c3d4e5f6g7h8"

billingAccountId
string
required

L'ID del conto di fatturazione, che corrisponde a un ID Cliente Stripe (cus_...).

Example:

"cus_a1b2c3d4e5f6g7h8"

Response

Un elenco di oggetti abbonamento.

data
object[]
has_more
boolean
Example:

false