Referral
Get referral program settings
GET
/
v1
/
referral
/
admin
/
program
Get referral program settings
curl --request GET \
--url https://api.wazapin.com/v1/referral/admin/programconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/referral/admin/program', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/referral/admin/program"
response = requests.get(url)
print(response.text){
"enabled": true,
"holding_days": 123,
"reward_amount_idr": 123,
"rules": {
"milestones": [
{
"bonus_idr": 123,
"threshold": 123
}
],
"referee_discount_idr": 123,
"referee_discount_percent": 123,
"sale_commission_percent": 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>"
}
}⌘I
Get referral program settings
curl --request GET \
--url https://api.wazapin.com/v1/referral/admin/programconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/referral/admin/program', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/referral/admin/program"
response = requests.get(url)
print(response.text){
"enabled": true,
"holding_days": 123,
"reward_amount_idr": 123,
"rules": {
"milestones": [
{
"bonus_idr": 123,
"threshold": 123
}
],
"referee_discount_idr": 123,
"referee_discount_percent": 123,
"sale_commission_percent": 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>"
}
}