Commerce
Get v1commercereferralsperformance
GET
/
v1
/
commerce
/
referrals
/
performance
cURL
curl --request GET \
--url https://api.wazapin.com/v1/commerce/referrals/performanceconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/commerce/referrals/performance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/commerce/referrals/performance"
response = requests.get(url)
print(response.text){
"codes": [
{
"code": "<string>",
"gmv": 123,
"order_count": 123
}
],
"orders": [
{
"order_no": "<string>",
"referral_code": "<string>",
"status": "<string>",
"total_amount": 123,
"customer_phone": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}⌘I
cURL
curl --request GET \
--url https://api.wazapin.com/v1/commerce/referrals/performanceconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/commerce/referrals/performance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/commerce/referrals/performance"
response = requests.get(url)
print(response.text){
"codes": [
{
"code": "<string>",
"gmv": 123,
"order_count": 123
}
],
"orders": [
{
"order_no": "<string>",
"referral_code": "<string>",
"status": "<string>",
"total_amount": 123,
"customer_phone": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}