Skip to content
GET /billing/promotion-code/{code}

What a code gives this team, in plain words, and whether it can redeem it. Nothing is written. An unknown, paused, expired or used-up code is a 400 with the same codes as the redeem. To preview for the signed-in person across all their teams, use GET /billing/offer-code/{code}.

Path Parameters

codestring
required

Query Parameters

team_idstring · uuid
required

Response Body

resultobject
codestring
credit_centsinteger
descriptionstring

The lines as one paragraph.

Example: 50% off Pro for 3 months. Pro without Single sign-on (SSO).
discountsobject[]
6 properties
amount_off_centsinteger
applies_tostring
Possible values:
prousage
durationstring
Possible values:
oncerepeatingforever
duration_monthsinteger
namestring
percent_offinteger
features_offstring[]
features_onstring[]
linesstring[]
offer_keystring
offer_namestring
pro_continue_askboolean

Show the "Pro continues after the credits" consent box with the redeem.

pro_onboolean
redeemableboolean
refusalobject

Why the code cannot be redeemed, as the redeem would answer. Null when it can.

2 properties
messagestring
Example: This link expired on 5 Jan 2027. Ask us for a new one.
truto_error_codestring
Example: code_expired

Errors

StatusDescription
400The code is unknown, paused, expired or used up (credit_code_invalid, code_expired, credit_code_expired, credit_code_used_up).
403Forbidden if the caller is not an admin of the team
curl -X GET 'https://api.truto.one/billing/promotion-code/{code}' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
const response = await fetch('https://api.truto.one/billing/promotion-code/{code}', {
  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/promotion-code/{code}"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

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