Get sub-client summary
curl --request GET \
--url https://api.platform.dakota.xyz/customers/sub-client-summary \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.platform.dakota.xyz/customers/sub-client-summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.platform.dakota.xyz/customers/sub-client-summary"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.platform.dakota.xyz/customers/sub-client-summary"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"sub_client_id": "1NFHrqBHb3cTfLVkFSGmHZqdDPi",
"sub_client_name": "Partner Corp",
"customer_count": 15
}
]
}Customers
Get sub-client summary
Returns a list of all sub-clients for the authenticated client, along with the count of customers associated with each.
GET
/
customers
/
sub-client-summary
Get sub-client summary
curl --request GET \
--url https://api.platform.dakota.xyz/customers/sub-client-summary \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.platform.dakota.xyz/customers/sub-client-summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.platform.dakota.xyz/customers/sub-client-summary"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.platform.dakota.xyz/customers/sub-client-summary"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"sub_client_id": "1NFHrqBHb3cTfLVkFSGmHZqdDPi",
"sub_client_name": "Partner Corp",
"customer_count": 15
}
]
}Was this page helpful?
āI

