curl --request GET \
--url https://ge-exchange-staging-1.herokuapp.com/v1/api/customers/search
{
"status": "success",
"message": "Customer gotten successfully",
"data": [
{
"_id": "6246412c902306075e09c71a",
"organisation": "62424e97d1e7590032dc7ed0",
"name": "William Client",
"email": "willy@yopmail.com",
"createdAt": "2022-04-01T00:02:52.078Z",
"updatedAt": "2022-04-01T00:02:52.078Z",
"id": "6246412c902306075e09c71a"
},
{
"_id": "6246440b4497dd0880a67262",
"organisation": "62424e97d1e7590032dc7ed0",
"name": "Magixxx Client",
"email": "magixx@yopmail.com",
"createdAt": "2022-04-01T00:15:07.566Z",
"updatedAt": "2022-04-01T00:15:07.566Z",
"id": "6246440b4497dd0880a67262"
}
]
}
Search for a customer by name or email
curl --request GET \
--url https://ge-exchange-staging-1.herokuapp.com/v1/api/customers/search
{
"status": "success",
"message": "Customer gotten successfully",
"data": [
{
"_id": "6246412c902306075e09c71a",
"organisation": "62424e97d1e7590032dc7ed0",
"name": "William Client",
"email": "willy@yopmail.com",
"createdAt": "2022-04-01T00:02:52.078Z",
"updatedAt": "2022-04-01T00:02:52.078Z",
"id": "6246412c902306075e09c71a"
},
{
"_id": "6246440b4497dd0880a67262",
"organisation": "62424e97d1e7590032dc7ed0",
"name": "Magixxx Client",
"email": "magixx@yopmail.com",
"createdAt": "2022-04-01T00:15:07.566Z",
"updatedAt": "2022-04-01T00:15:07.566Z",
"id": "6246440b4497dd0880a67262"
}
]
}
{
"status": "success",
"message": "Customer gotten successfully",
"data": [
{
"_id": "6246412c902306075e09c71a",
"organisation": "62424e97d1e7590032dc7ed0",
"name": "William Client",
"email": "willy@yopmail.com",
"createdAt": "2022-04-01T00:02:52.078Z",
"updatedAt": "2022-04-01T00:02:52.078Z",
"id": "6246412c902306075e09c71a"
},
{
"_id": "6246440b4497dd0880a67262",
"organisation": "62424e97d1e7590032dc7ed0",
"name": "Magixxx Client",
"email": "magixx@yopmail.com",
"createdAt": "2022-04-01T00:15:07.566Z",
"updatedAt": "2022-04-01T00:15:07.566Z",
"id": "6246440b4497dd0880a67262"
}
]
}
Was this page helpful?