---
raw: true
search:
  tags:
    - Teams
    - GET
seo:
  description: >-
    Returns the team's plan, subscription state, and billable usage meters.
    Reference for the GET /v1/teams/{teamId}/billing endpoint in the Spacefast
    Partner API.
sidebar:
  label: Get team billing
  badge: GET
title: Get team billing
type: openapi-operation
---
Returns the team's plan, subscription state, and billable usage meters.

`GET /v1/teams/{teamId}/billing`

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "checkout": {
      "planCode": "free",
      "status": "processing"
    },
    "teamId": "string",
    "planCode": "free",
    "billingCustomerRefs": [],
    "subscriptions": [],
    "resourceCharges": [],
    "seatBilling": {
      "billableSeats": 0
    },
    "stripeCustomerId": "string",
    "subscription": {
      "id": "string",
      "provider": "stripe",
      "planCode": "free",
      "status": "string",
      "providerStatus": "string",
      "currentPeriodEnd": "2019-08-24T14:15:22Z",
      "cancelAtPeriodEnd": true,
      "pendingPlanChange": {
        "status": "none"
      },
      "diagnostics": {
        "property1": null,
        "property2": null
      }
    },
    "usage": {
      "storageBytes": 0,
      "storageQuotaBytes": 0,
      "storageOverageBytes": 0,
      "buildsDeploysToday": 0,
      "buildsDeploysDaily": 0,
      "buildsDeploysThisMonth": 0,
      "buildsDeploysMonthly": 0
    }
  }
}
```
