---
title: "Get the customer and subscription limits of a test business"
description: "Every existing customer counts, archived ones too, and every subscription that is not deleted, cancelled ones too."
canonical_url: "https://twominutebilling.com/help/developers/api-reference/businesses/get-the-customer-and-subscription-limits-of-a-te"
---
# Get the customer and subscription limits of a test business

> Every existing customer counts, archived ones too, and every subscription that is not deleted, cancelled ones too.

<api-operation method="GET" path="/v1/businesses/{biz}/test_limits">
<template v-slot:docs="">

A create past the limit fails with code `test_business_limit_reached`. `limit` is null when there is no limit. Live businesses have no such limits.

## Path parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Required
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        biz
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <strong>
        yes
      </strong>
    </td>
    
    <td>
      Business id (biz_…)
    </td>
  </tr>
</tbody>
</table>

## Response

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        object
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Always <code>
        test_limits
      </code>
      
      . One of <code>
        test_limits
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        customers
      </code>
    </td>
    
    <td>
      <code>
        object
      </code>
    </td>
    
    <td>
      Customers.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        subscriptions
      </code>
    </td>
    
    <td>
      <code>
        object
      </code>
    </td>
    
    <td>
      Subscriptions.
    </td>
  </tr>
</tbody>
</table>

## Status codes

<table>
<thead>
  <tr>
    <th>
      Status
    </th>
    
    <th>
      Meaning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        200
      </code>
    </td>
    
    <td>
      Success
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        400
      </code>
    </td>
    
    <td>
      Only available on test businesses
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        404
      </code>
    </td>
    
    <td>
      No such business
    </td>
  </tr>
</tbody>
</table>
</template>

<template v-slot:request="">

```bash [Request]
curl "$TMBILLING_URL/v1/businesses/biz_XXXXXXXXXXXX01/test_limits" \
  -H "Authorization: Bearer $TMBILLING_API_KEY"
```

</template>

<template v-slot:response="">
<code-group>

```json [200 OK]
{
  "object": "test_limits",
  "customers": {
    "used": 812,
    "limit": 1000
  },
  "subscriptions": {
    "used": 140,
    "limit": 1000
  }
}
```

```json [400 Bad Request]
{
  "error": {
    "type": "invalid_request_error",
    "message": "Only available on test businesses"
  }
}
```

```json [404 Not Found]
{
  "error": {
    "type": "invalid_request_error",
    "message": "No such business"
  }
}
```

</code-group>
</template>
</api-operation>


## Sitemap

See the full [sitemap](https://twominutebilling.com/sitemap.md) for all pages.
