GET
api
/
customers
/
search
Search For a Customer
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"
    }
  ]
}
name
string
The name of the customer to search for
email
string
The email of the customer to search for
{
  "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"
    }
  ]
}