> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get subscription handlers

> Returns the tenant's current subscription details, or 404 if no subscription is on file. **Required scope:** read

Returns the tenant's current subscription details, or 404 if no
subscription is on file.

**Required scope:** `read`

### Response

`SubscriptionResponse`

<ResponseField name="cancel_at_period_end" type="boolean" required />

<ResponseField name="current_period_end" type="string" />

<ResponseField name="status" type="string" required />

<ResponseField name="subscription_id" type="string" />

<ResponseField name="tier" type="string" required />

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `200` | Subscription details                               |
| `401` | Unauthorized — missing or invalid credentials      |
| `403` | Forbidden — the key/token lacks the required scope |
| `404` | No subscription found                              |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |
| `503` | Billing not configured                             |

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.nsr.stateset.com/api/v1/billing/subscription' \
    --header 'X-API-Key: YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "cancel_at_period_end": true,
    "current_period_end": "string",
    "status": "pending",
    "subscription_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "tier": "string"
  }
  ```
</ResponseExample>
