Referral
Get current user achievements with badge definitions
GET
/
v1
/
referral
/
me
/
achievements
Get current user achievements with badge definitions
curl --request GET \
--url https://api.wazapin.com/v1/referral/me/achievementsconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/referral/me/achievements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/referral/me/achievements"
response = requests.get(url)
print(response.text){
"items": [
{
"definition": {
"description": "<string>",
"icon": "<string>",
"max_level": 123,
"name": "<string>",
"requirement": 123,
"type": "<string>"
},
"earned": true,
"achievement": {
"badge_level": 123,
"badge_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"earned_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"metadata": "<string>",
"organization_id": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"user_id": "<string>"
}
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Response
OK
Show child attributes
Show child attributes
⌘I
Get current user achievements with badge definitions
curl --request GET \
--url https://api.wazapin.com/v1/referral/me/achievementsconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/referral/me/achievements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/referral/me/achievements"
response = requests.get(url)
print(response.text){
"items": [
{
"definition": {
"description": "<string>",
"icon": "<string>",
"max_level": 123,
"name": "<string>",
"requirement": 123,
"type": "<string>"
},
"earned": true,
"achievement": {
"badge_level": 123,
"badge_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"earned_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"metadata": "<string>",
"organization_id": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"user_id": "<string>"
}
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}