Referral
Check and award new badges for current user
POST
/
v1
/
referral
/
me
/
check-badges
Check and award new badges for current user
curl --request POST \
--url https://api.wazapin.com/v1/referral/me/check-badgesconst options = {method: 'POST'};
fetch('https://api.wazapin.com/v1/referral/me/check-badges', 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/check-badges"
response = requests.post(url)
print(response.text){
"items": [
{
"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
Check and award new badges for current user
curl --request POST \
--url https://api.wazapin.com/v1/referral/me/check-badgesconst options = {method: 'POST'};
fetch('https://api.wazapin.com/v1/referral/me/check-badges', 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/check-badges"
response = requests.post(url)
print(response.text){
"items": [
{
"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>"
}
}