Referral
List current user's referral commissions
GET
/
v1
/
referral
/
commissions
List current user's referral commissions
curl --request GET \
--url https://api.wazapin.com/v1/referral/commissionsconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/referral/commissions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/referral/commissions"
response = requests.get(url)
print(response.text){
"items": [
{
"amount_idr": 123,
"commission_type": "<string>",
"created_at": "<string>",
"id": "<string>",
"status": "<string>",
"commerce_order_no": "<string>",
"description": "<string>",
"void_reason": "<string>",
"voided_at": "<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
List current user's referral commissions
curl --request GET \
--url https://api.wazapin.com/v1/referral/commissionsconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/referral/commissions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/referral/commissions"
response = requests.get(url)
print(response.text){
"items": [
{
"amount_idr": 123,
"commission_type": "<string>",
"created_at": "<string>",
"id": "<string>",
"status": "<string>",
"commerce_order_no": "<string>",
"description": "<string>",
"void_reason": "<string>",
"voided_at": "<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>"
}
}