Use this API to search for customers based on various criteria. If no customers match the search criteria, the server responds with 204 success code and an empty body. This API only supports exact match searches and partial matches are not supported except search by customer name. For example, if a client searches for customers with email address paul@example.com, only customers with contact point value of paul@example.com are returned. The customer with contact point value of dean.paul@example.com are not returned.
In case actor is customer, this API can be used to get the details of the logged in customer.
Actor | Permission |
---|---|
User | All of the following are required:
|
Client Application | No additional permission is required. |
Customer | All authenticated customers can access this API. |
One or more query parameters listed below can be supplied per API call:
Actor | Available values |
---|---|
User | phone, email, custom, activity, facebookId, twitterId, instagramId, appleOpaqueId, youTubeId, created, type, customerName, $attribute, $sort, $order, $pagenum, $pagesize, $rangestart, $rangesize |
Client Application | phone, email, custom, activity, facebookId, twitterId, instagramId, appleOpaqueId, youTubeId, created, type, customerName, $attribute, $sort, $order, $pagenum, $pagesize, $rangestart, $rangesize, department |
Customer | $attribute |
Note:
Accept required | string Default: application/json Content type accepted by client. |
Accept-Language required | string Default: en-US Language locale accepted by client (used for locale specific fields in resource representation and in error responses). |
OK
NO Content
Bad Request
Unauthorized
Forbidden
Not Acceptable
Internal server error
{- "link": [
- {
- "rel": "self",
- "href": "/core/customermgr/v3/customer?$order=desc&$pagenum=4&$pagesize=1&$sort=type&phone=14082343456102"
}
], - "customer": [
- {
- "link": [
- {
- "rel": "self",
- "href": "/core/customermgr/v3/customer/1009"
}
], - "cases": {
- "link": [
- {
- "rel": "case",
- "href": "/core/casemgr/v3/case?customer=1009"
}
]
}, - "customerName": "Unichem Laboratories Limited",
- "type": {
- "value": "corporate",
- "displayValue": "Corporate",
- "corporate": {
- "region": "Europe",
- "numberOfEmployees": "200",
- "revenues": "1000000",
- "currency": "USD",
- "registrationNumber": "324-213",
- "sector": "Pharma"
}
}, - "lastModified": "2021-10-25T14:53:31.000Z",
- "contacts": {
- "contact": [
- {
- "systemCreated": true,
- "firstName": "#*Default CP#1009*#",
- "loginId": "##login_default_cp#1009***",
- "lastModified": "2021-10-22T15:30:05.000Z",
- "id": "1009"
}, - {
- "systemCreated": false,
- "salutation": "Mr.",
- "firstName": "David",
- "middleName": "Osbon",
- "lastName": "Stewart",
- "loginId": "david",
- "lastModified": "2021-10-22T15:30:06.000Z",
- "email": [
- {
- "emailAddress": "david.Stewart@customer.com",
- "lastModified": "2021-10-22T15:30:06.000Z",
- "id": "1011"
}
], - "postal": [
- {
- "type": {
- "value": "billto",
- "displayValue": "Bill-to address"
}, - "address_1": "345",
- "address_2": "E Midfield Rd",
- "city": "Mountain View",
- "state": "CO",
- "zip": "98704",
- "country": "USA",
- "region": "United States",
- "lastModified": "2021-10-22T15:30:09.000Z",
- "id": "1015"
}
], - "phone": [
- {
- "type": {
- "value": "pager"
}, - "phoneNo": "234 3456",
- "countryCode": "1",
- "areaCode": "408",
- "extension": "102",
- "availability": {
- "days": {
- "value": "weekdays",
- "displayValue": "Weekdays"
}, - "times": {
- "value": "mornings",
- "displayValue": "Mornings"
}
}, - "lastModified": "2021-10-22T15:30:06.000Z",
- "id": "1012"
}
], - "website": [
], - "social": [
- {
- "type": {
- "value": "Twitter"
}, - "socialId": "DavidStewart",
- "lastModified": "2021-10-22T15:30:07.000Z",
- "id": "1013"
}
], - "id": "1010"
}, - {
- "systemCreated": false,
- "salutation": "Mr.",
- "firstName": "Jack",
- "middleName": "Derick",
- "lastName": "Hilton",
- "loginId": "JHilton",
- "lastModified": "2021-10-22T15:30:10.000Z",
- "email": [
- {
- "emailAddress": "jHilton@customer.com",
- "lastModified": "2021-10-22T15:30:11.000Z",
- "id": "1016"
}
], - "postal": [
- {
- "type": {
- "value": "office",
- "displayValue": "Office address"
}, - "address_1": "345",
- "address_2": "E Midfield Rd",
- "city": "Mountain View",
- "state": "CO",
- "zip": "98704",
- "country": "USA",
- "region": "United States",
- "lastModified": "2021-10-22T15:30:14.000Z",
- "id": "1020"
}
], - "phone": [
- {
- "type": {
- "value": "home"
}, - "phoneNo": "294 3416",
- "countryCode": "1",
- "areaCode": "408",
- "extension": "102",
- "availability": {
- "days": {
- "value": "any_day",
- "displayValue": "Any day"
}, - "times": {
- "value": "evenings",
- "displayValue": "Evenings"
}
}, - "lastModified": "2021-10-22T15:30:11.000Z",
- "id": "1017"
}
], - "website": [
], - "social": [
- {
- "type": {
- "value": "Twitter"
}, - "socialId": "vaman",
- "lastModified": "2021-10-22T15:30:12.000Z",
- "id": "1018"
}
], - "id": "1011"
}
]
}, - "notes": [
- {
- "rel": "note",
- "href": "/core/customermgr/v3/customer/1009/notes"
}
], - "id": "1009"
}
], - "paginationInfo": {
- "count": 4,
- "pagenum": 4,
- "pagesize": 1,
- "link": [
- {
- "rel": "prev",
- "href": "/core/customermgr/v3/customer?$order=desc&$pagenum=3&$pagesize=1&$sort=type&phone=14082343456102"
}
]
}
}