GET
/v3-node-0/smartaccount/{address}/referralGet account referral data
Returns referral data for a smart account by address
Base URL
https://api.storm.tgExamples
curl --request GET 'https://api.storm.tg/v3-node-0/smartaccount/{address}/referral' \
--header 'Accept: application/json'const response = await fetch("https://api.storm.tg/v3-node-0/smartaccount/{address}/referral", {
method: "GET",
headers: {
"Accept": "application/json"
},
});
console.log(response.status, await response.text());import requests
response = requests.request(
"GET",
"https://api.storm.tg/v3-node-0/smartaccount/{address}/referral",
headers={"Accept":"application/json"},
timeout=30,
)
print(response.status_code, response.text)Responses
200OKapplication/json
activebooleanoptionalExample:
truecreated_atstringoptionalExample:
stringdiscountintegeroptionalExample:
0ownerobjectoptionalExample:
{}rebateintegeroptionalExample:
0referrerobjectoptionalExample:
{}updated_atstringoptionalExample:
string{
"active": true,
"created_at": "string",
"discount": 0,
"owner": {},
"rebate": 0,
"referrer": {},
"updated_at": "string"
}400Bad Requestapplication/json
codestringoptionalExample:
stringerrorstringoptionalExample:
stringexternalQueryIdstringoptionalExample:
stringmsgstringoptionalExample:
string{
"code": "string",
"error": "string",
"externalQueryId": "string",
"msg": "string"
}500Internal Server Errorapplication/json
codestringoptionalExample:
stringerrorstringoptionalExample:
stringexternalQueryIdstringoptionalExample:
stringmsgstringoptionalExample:
string{
"code": "string",
"error": "string",
"externalQueryId": "string",
"msg": "string"
}