Skip to content
GET /billing/discount

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

Query Parameters

team_idstring · uuid
required

Response Body

resultobject
discountsobject[]
18 properties
amount_off_centsinteger
applies_tostring

usage never covers calls through Truto's own Google and QuickBooks apps.

Possible values:
prousage
descriptionstring
Example: Pro: $249.50 a month until Mar 1, 2027, then $499
durationstring
Possible values:
oncerepeatingforever
duration_monthsinteger
end_reasonstring
Possible values:
expiredusedstaffreplaced
ended_atstring · date-time
ends_atstring · date-time

Null for a discount with no end (forever, or once until the charge that uses it).

features_back_atstring · date-time

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).

idstring · uuid
namestring
Example: Startups
offer_idstring · uuid
offer_namestring
percent_offinteger
sourcestring
Possible values:
staffcode
starts_atstring · date-time
statusstring
Possible values:
scheduledactiveended
team_offer_idstring · uuid
features_offobject[]
3 properties
disabled_atstring · date-time
featurestring
Example: sso
live_untilstring · date-time
given_centsinteger

Cents the team's discounts took off so far.

pro_next_month_centsinteger

What Pro costs next month after the discount; never below 0.

pro_price_centsinteger

Pro's monthly list price on the team's plan.

Errors

StatusDescription
403Forbidden if the caller is not an admin of the team
curl -X GET 'https://api.truto.one/billing/discount' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
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);
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())