curl --request GET \
--url https://ge-exchange-staging-1.herokuapp.com/v1/api/customers
{
"status": "success",
"message": "Customers gotten successfully",
"data": [
{
"_id": {
"email": "ruger@yopmail.com"
},
"total_trades": 1,
"name": "Ruger Client",
"date": "2022-03-29T09:25:53.097Z"
},
{
"_id": {
"email": "roma@yopmail.com"
},
"total_trades": 1,
"name": "Roma Client",
"date": "2022-03-29T01:15:59.706Z"
},
{
"_id": {
"email": "jazzy@yopmail.com"
},
"total_trades": 1,
"name": "Don Jazzy Client",
"date": "2022-03-29T09:25:34.119Z"
}
]
}
Returns a paginated list of all customers of an api client.
curl --request GET \
--url https://ge-exchange-staging-1.herokuapp.com/v1/api/customers
{
"status": "success",
"message": "Customers gotten successfully",
"data": [
{
"_id": {
"email": "ruger@yopmail.com"
},
"total_trades": 1,
"name": "Ruger Client",
"date": "2022-03-29T09:25:53.097Z"
},
{
"_id": {
"email": "roma@yopmail.com"
},
"total_trades": 1,
"name": "Roma Client",
"date": "2022-03-29T01:15:59.706Z"
},
{
"_id": {
"email": "jazzy@yopmail.com"
},
"total_trades": 1,
"name": "Don Jazzy Client",
"date": "2022-03-29T09:25:34.119Z"
}
]
}
{
"status": "success",
"message": "Customers gotten successfully",
"data": [
{
"_id": {
"email": "ruger@yopmail.com"
},
"total_trades": 1,
"name": "Ruger Client",
"date": "2022-03-29T09:25:53.097Z"
},
{
"_id": {
"email": "roma@yopmail.com"
},
"total_trades": 1,
"name": "Roma Client",
"date": "2022-03-29T01:15:59.706Z"
},
{
"_id": {
"email": "jazzy@yopmail.com"
},
"total_trades": 1,
"name": "Don Jazzy Client",
"date": "2022-03-29T09:25:34.119Z"
}
]
}
Was this page helpful?