Preview a code for one team
/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
Query Parameters
Response Body
The lines as one paragraph.
50% off Pro for 3 months. Pro without Single sign-on (SSO).6 properties
prousage
oncerepeatingforever
Show the "Pro continues after the credits" consent box with the redeem.
Why the code cannot be redeemed, as the redeem would answer. Null when it can.
2 properties
This link expired on 5 Jan 2027. Ask us for a new one.code_expiredErrors
| Status | Description |
|---|---|
400 | The code is unknown, paused, expired or used up (credit_code_invalid, code_expired, credit_code_expired, credit_code_used_up). |
403 | Forbidden 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())