This API allows users to search for cases based on various criteria. If no cases match the search criteria, the server will respond with 204 success code and an empty body.
This API only supports exact match searches; partial matches are not supported. For example, if a client searches for cases associated with email address paul@, only those cases where customer's contact point value is exam ple.c ompaul@ will be returned. The case with customer's contact point value of exam ple.c omdean. will not be returned. paul @exam ple. com
Method | URL | Description |
---|---|---|
GET | /ws/v12/interaction/case?customer={ID} | Retrieve cases for one customer ID. {ID} is the ID of the customer. |
GET | /ws/v12/interaction/case?email={EMAIL_ADDRESS} | Retrieve cases of a customer with a specified email address. {EMAIL_ADDRESS} is the email address of the customer. |
GET | /ws/v12/interaction/case?phone={PHONE_NUMBER} | Retrieve cases of a customer with a specified phone number. {PHONE_NUMBER} is the phone number of the customer. |
GET | /ws/v12/interaction/case?custom.<name>={VAL} | Retrieve cases having custom attribute <name> with value {VAL} |
NOTE: You can mix and match one or more filter criteria listed above in any order. If more than one filter criteria are used, then response will only contain cases that satisfy all filter criteria.
Authentication is required. The client must be logged in to call this API. Each API request must contain X-egain-session request header returned by Login API.
All of the following are required:
The logged in user must have the following licenses:
Name | Description | Allowed values | Default value |
---|---|---|---|
X-egain-session | Session ID obtained from Login API response header | N/A | N/A |
Accept | Content type accepted by client | application/xml or application/json | N/A |
Accept-Language | Language locale accepted by client (used for locale specific fields in resource representation and in error responses) | Supported 'Accept-Language' header codes | default system language |
One or more query parameters listed below can be supplied per API call:
Refer to Supported Common Query Parameters in ECE REST API page for detailed description of each common parameter listed below.
Name | Description | Possible values |
---|---|---|
X-egain-session | Session ID of the current user session | N/A |
Content-Type | Media type of response body | application/xml or application/json |
Summary attributes of Case Resource
Server can be prompted to return additional attributes of resource representation using $attribute
common query parameter.
See Values of $attribute common parameter supported by Case Resource for the list of allowed attribute names.
200 - OK
204 - No Content
400 - Bad Request
401 - Unauthorized
403 - Forbidden
406 - Not Acceptable
500 - Internal server error
Example 1 - Search for cases by customer with summary attributes in response
Example 2 - Search for cases by status and custom attribute, with range parameters
Example 3 - Search for cases by multiple attributes with pagination parameters