This API allows user to retrieve one or more customers identified by customer IDs. To provide multiple IDs, a comma separated string must be used in request URI. A maximum of 75 IDs is allowed per request. Neither pagination nor range query parameters are supported by this API.
Method | URL | Description |
---|---|---|
GET | /ws/v12/interaction/customer/{IDs} | Retrieve customers by their IDs. {IDs}: a comma separated string of customer IDs. |
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 |
None
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 Customer 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 Customer Resource for the list of allowed attribute names.
200 - OK
400 - Bad Request
$order
, unsupported $attribute
value etc.) $order
provided without $sort
401 - Unauthorized
403 - Forbidden
404 - Not Found
406 - Not Acceptable
500 - Internal server error
Example 1 - Get summary attributes of a single customer
Example 2 - Get multiple customers sorted on customerName
Example 3 - Get all attributes for multiple customers sorted on custom attribute
Example 4 - Get additional attributes for a single customer