Referral
Get current user's referral link and stats
GET
/
v1
/
referral
/
me
Get current user's referral link and stats
curl --request GET \
--url https://api.wazapin.com/v1/referral/meconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/referral/me', 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"
response = requests.get(url)
print(response.text){
"click_count": 123,
"code": "<string>",
"confirmed_amount_idr": 123,
"coupon_code": "<string>",
"holding_days": 123,
"link_url": "<string>",
"paid_amount_idr": 123,
"pending_amount_idr": 123,
"program_enabled": true,
"referral_count": 123,
"reward_amount_idr": 123,
"rules": {
"milestones": [
{
"bonus_idr": 123,
"threshold": 123
}
],
"referee_discount_idr": 123,
"referee_discount_percent": 123,
"sale_commission_percent": 123
},
"next_milestone": {
"bonus_idr": 123,
"threshold": 123
}
}{
"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
Show child attributes
Show child attributes
⌘I
Get current user's referral link and stats
curl --request GET \
--url https://api.wazapin.com/v1/referral/meconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/referral/me', 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"
response = requests.get(url)
print(response.text){
"click_count": 123,
"code": "<string>",
"confirmed_amount_idr": 123,
"coupon_code": "<string>",
"holding_days": 123,
"link_url": "<string>",
"paid_amount_idr": 123,
"pending_amount_idr": 123,
"program_enabled": true,
"referral_count": 123,
"reward_amount_idr": 123,
"rules": {
"milestones": [
{
"bonus_idr": 123,
"threshold": 123
}
],
"referee_discount_idr": 123,
"referee_discount_percent": 123,
"sale_commission_percent": 123
},
"next_milestone": {
"bonus_idr": 123,
"threshold": 123
}
}{
"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>"
}
}