---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://truto.one/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Get the team's discounts

> Source: https://truto.one/docs/api-reference/admin/billing/list-discounts/

`GET /billing/discount`

Resource: **Billing**

**The team's discounts, the features taken out of its Pro, and what Pro costs next month after them.**

## Query parameters

- **`team_id`** _(string, required)_

## Response body

- **`result`** _(object)_
  - **`discounts`** _(array<object>)_
    - **`id`** _(string)_
    - **`team_offer_id`** _(string)_
    - **`offer_id`** _(string)_
    - **`offer_name`** _(string)_
    - **`name`** _(string)_
    - **`percent_off`** _(integer)_
    - **`amount_off_cents`** _(integer)_
    - **`applies_to`** _(string)_
      `usage` never covers calls through Truto's own Google and QuickBooks apps.
      Allowed: `pro`, `usage`
    - **`duration`** _(string)_
      Allowed: `once`, `repeating`, `forever`
    - **`duration_months`** _(integer)_
    - **`status`** _(string)_
      Allowed: `scheduled`, `active`, `ended`
    - **`starts_at`** _(string)_
    - **`ends_at`** _(string)_
      Null for a discount with no end (`forever`, or `once` until the charge that uses it).
    - **`ended_at`** _(string)_
    - **`end_reason`** _(string)_
      Allowed: `expired`, `used`, `staff`, `replaced`
    - **`source`** _(string)_
      Allowed: `staff`, `code`
    - **`description`** _(string)_
    - **`features_back_at`** _(string)_
      For an offer that took features out of Pro: when they come back (full price means full Pro). The discount's end, or for a used `once`, the 1st after the month it paid; after that, when they came back. Null for any other discount, and while the end is not known (`forever`, `once` not used yet).
  - **`features_off`** _(array<object>)_
    - **`feature`** _(string)_
    - **`disabled_at`** _(string)_
    - **`live_until`** _(string)_
  - **`pro_price_cents`** _(integer)_
    Pro's monthly list price on the team's plan.
  - **`pro_next_month_cents`** _(integer)_
    What Pro costs next month after the discount; never below 0.
  - **`given_cents`** _(integer)_
    Cents the team's discounts took off so far.

## Errors

| Status | Description |
| :----- | :---------- |
| `403` | Forbidden if the caller is not an admin of the team |

## Code examples

### curl

```bash
curl -X GET 'https://api.truto.one/billing/discount' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.truto.one/billing/discount', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

url = "https://api.truto.one/billing/discount"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.get(url, headers=headers, params=params)
print(response.json())
```
