(Quick Reference) Service: Show an assigned customer to an employee

Description: This web service returns an assigned customer to an employee data in JSON format

Method: GET

URL:

https://BASE_URL/api/VERSION/employeeItemCategories/{id}

Parameters:

NameDescriptionTypeRequiredExample values
idid of the wanted recordIntegerYes777

URL with external_id:

https://BASE_URL/api/VERSION/employeeItemCategories/reference/{itemCategoryId}/{userId}

Parameters:

NameDescriptionTypeRequiredExamples values
itemCategoryIdreference of the item categoryStringYesCC-002
userIdreference of the userStringYesU-001

Success Output

Success case: response.status=200
{
    "id": 570,
    "employeeReference": "Emp-3",
    "itemCategoryReference": "R-A-001",
    "itemCategory": {
      "id": 1751,
      "reference": "R-A-001",
      "name": "category1",
      "href": "/api/v1.0/itemCategories/1751"
    },
    "employee": {
      "id": 23,
      "reference": "Emp-3",
      "name": "new Employee",
      "href": "/api/v1.0/employees/23"
    },
    "organization": "Lyon",
    "dateCreated": "2016-08-22T09:42:19Z",
    "lastUpdated": "2016-08-22T09:42:19Z"
}

Failure Output

Failure case:response.status = 400
{
    "error": "invalid_param_type",
    "error_description": "The type of parameter id you provided is not valid for this request."
}

Failure case:response.status = 404
{
    "error": "not_found",
    "error_description": "The item category employee with the id 999 doesn't exist."
}