Commerce
Get v1commerceanalyticsrfm
GET
/
v1
/
commerce
/
analytics
/
rfm
cURL
curl --request GET \
--url https://api.wazapin.com/v1/commerce/analytics/rfmconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/commerce/analytics/rfm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/commerce/analytics/rfm"
response = requests.get(url)
print(response.text){
"contacts": [
{
"contact_id": "<string>",
"f_score": 123,
"frequency": 123,
"m_score": 123,
"monetary": 123,
"r_score": 123,
"recency_days": 123,
"segment": "<string>"
}
],
"segments": [
{
"customer_count": 123,
"segment": "<string>",
"total_monetary": 123
}
]
}{
"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/analytics/rfmconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/commerce/analytics/rfm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/commerce/analytics/rfm"
response = requests.get(url)
print(response.text){
"contacts": [
{
"contact_id": "<string>",
"f_score": 123,
"frequency": 123,
"m_score": 123,
"monetary": 123,
"r_score": 123,
"recency_days": 123,
"segment": "<string>"
}
],
"segments": [
{
"customer_count": 123,
"segment": "<string>",
"total_monetary": 123
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}