POST public-api/employees/getemployeesbynumber-v2

This method returns existing active employees by number, including their custom fields, addresses, phone numbers and notes. One result is returned per requested employee number, in request order; an entry that matched no active employee carries an employee-retrieve error instead of data. If any entry fails, the outer result also reports an employee-retrieve error, so inspect the per-entry results rather than the outer message to tell which numbers resolved. Requires Allow Employee permission. An empty request list returns an empty result set rather than every employee. A number repeated in the request is reported once per occurrence. Note: This is a Post API to avoid limitations inherent to passing parameters on the URL.



Request Information

URI Parameters

None.

Body Parameters

Collection of string

Request Formats

application/json

Sample:
[
  "sample string 1",
  "sample string 2"
]



Response Information

Resource Description

WaspResultOfListOfWaspResultOfEmployeeModelInfo
NameDescriptionTypeAdditional information
Data

Collection of WaspResultOfEmployeeModelInfo

None.

Messages

Collection of WtResult

None.

BatchNumber

integer

None.

HasError

boolean

None.

HasHttpError

boolean

None.

HasMessage

boolean

None.

HasSuccessWithMoreDataRemaining

boolean

None.

TotalRecordsLongCount

integer

None.

Response Formats

application/json

Sample:
{
  "Data": [
    {
      "Data": {
        "EmployeeMiddleName": "sample string 1",
        "RowNumber": 2,
        "EmployeeNumber": "sample string 3",
        "EmployeeFirstName": "sample string 4",
        "EmployeeLastName": "sample string 5",
        "EmployeeTitle": "sample string 6",
        "EmployeeEmail": "sample string 7",
        "DepartmentCode": "sample string 8",
        "SiteName": "sample string 9",
        "LocationCode": "sample string 10",
        "ManagerFullName": "sample string 11",
        "EmployeeReportsTo": "sample string 12",
        "Addresses": [
          {
            "AddressLine1": "sample string 2",
            "AddressLine2": "sample string 3",
            "AddressLine3": "sample string 4",
            "AddressLine4": "sample string 5",
            "AddressCity": "sample string 6",
            "AddressStateProvince": "sample string 7",
            "AddressCountry": "sample string 8",
            "AddressPostalCode": "sample string 9",
            "AddressTypeName": "sample string 10",
            "ContactPhone": "sample string 11",
            "ContactEmail": "sample string 12"
          },
          {
            "AddressLine1": "sample string 2",
            "AddressLine2": "sample string 3",
            "AddressLine3": "sample string 4",
            "AddressLine4": "sample string 5",
            "AddressCity": "sample string 6",
            "AddressStateProvince": "sample string 7",
            "AddressCountry": "sample string 8",
            "AddressPostalCode": "sample string 9",
            "AddressTypeName": "sample string 10",
            "ContactPhone": "sample string 11",
            "ContactEmail": "sample string 12"
          }
        ],
        "PhoneNumbers": [
          {
            "PhoneNumber": "sample string 1",
            "PhoneExtension": "sample string 2",
            "PhoneTypeName": "sample string 3"
          },
          {
            "PhoneNumber": "sample string 1",
            "PhoneExtension": "sample string 2",
            "PhoneTypeName": "sample string 3"
          }
        ],
        "EmployeeNote": "sample string 13",
        "EmployeeNotes": [
          {
            "NoteText": "sample string 1",
            "NoteDate": "2026-11-25T10:24:53.209915+00:00",
            "UserLogon": "sample string 2"
          },
          {
            "NoteText": "sample string 1",
            "NoteDate": "2026-11-25T10:24:53.209915+00:00",
            "UserLogon": "sample string 2"
          }
        ],
        "CustomFields": [
          {
            "ImportRowNumber": 1,
            "DcfLabel": "sample string 2",
            "DCFDataType": 1,
            "DcfTextValue": "sample string 3",
            "DcfNumberValue": 1.0,
            "DcfDateValue": "2026-11-25T10:24:53.209915+00:00",
            "DcfValueRecordStatus": 0
          },
          {
            "ImportRowNumber": 1,
            "DcfLabel": "sample string 2",
            "DCFDataType": 1,
            "DcfTextValue": "sample string 3",
            "DcfNumberValue": 1.0,
            "DcfDateValue": "2026-11-25T10:24:53.209915+00:00",
            "DcfValueRecordStatus": 0
          }
        ],
        "AttachmentsToAdd": [
          "sample string 1",
          "sample string 2"
        ],
        "AttachmentsToDelete": [
          "sample string 1",
          "sample string 2"
        ],
        "AttachmentNames": [
          {
            "Key": "sample string 1",
            "Value": "sample string 2"
          },
          {
            "Key": "sample string 1",
            "Value": "sample string 2"
          }
        ],
        "HasAttachment": true
      },
      "Messages": [
        {
          "ResultCode": 0,
          "Message": "sample string 1",
          "HttpStatusCode": 200,
          "FieldName": "sample string 2"
        },
        {
          "ResultCode": 0,
          "Message": "sample string 1",
          "HttpStatusCode": 200,
          "FieldName": "sample string 2"
        }
      ],
      "BatchNumber": 1,
      "HasError": false,
      "HasHttpError": false,
      "HasMessage": true,
      "HasSuccessWithMoreDataRemaining": false,
      "TotalRecordsLongCount": 1
    },
    {
      "Data": {
        "EmployeeMiddleName": "sample string 1",
        "RowNumber": 2,
        "EmployeeNumber": "sample string 3",
        "EmployeeFirstName": "sample string 4",
        "EmployeeLastName": "sample string 5",
        "EmployeeTitle": "sample string 6",
        "EmployeeEmail": "sample string 7",
        "DepartmentCode": "sample string 8",
        "SiteName": "sample string 9",
        "LocationCode": "sample string 10",
        "ManagerFullName": "sample string 11",
        "EmployeeReportsTo": "sample string 12",
        "Addresses": [
          {
            "AddressLine1": "sample string 2",
            "AddressLine2": "sample string 3",
            "AddressLine3": "sample string 4",
            "AddressLine4": "sample string 5",
            "AddressCity": "sample string 6",
            "AddressStateProvince": "sample string 7",
            "AddressCountry": "sample string 8",
            "AddressPostalCode": "sample string 9",
            "AddressTypeName": "sample string 10",
            "ContactPhone": "sample string 11",
            "ContactEmail": "sample string 12"
          },
          {
            "AddressLine1": "sample string 2",
            "AddressLine2": "sample string 3",
            "AddressLine3": "sample string 4",
            "AddressLine4": "sample string 5",
            "AddressCity": "sample string 6",
            "AddressStateProvince": "sample string 7",
            "AddressCountry": "sample string 8",
            "AddressPostalCode": "sample string 9",
            "AddressTypeName": "sample string 10",
            "ContactPhone": "sample string 11",
            "ContactEmail": "sample string 12"
          }
        ],
        "PhoneNumbers": [
          {
            "PhoneNumber": "sample string 1",
            "PhoneExtension": "sample string 2",
            "PhoneTypeName": "sample string 3"
          },
          {
            "PhoneNumber": "sample string 1",
            "PhoneExtension": "sample string 2",
            "PhoneTypeName": "sample string 3"
          }
        ],
        "EmployeeNote": "sample string 13",
        "EmployeeNotes": [
          {
            "NoteText": "sample string 1",
            "NoteDate": "2026-11-25T10:24:53.209915+00:00",
            "UserLogon": "sample string 2"
          },
          {
            "NoteText": "sample string 1",
            "NoteDate": "2026-11-25T10:24:53.209915+00:00",
            "UserLogon": "sample string 2"
          }
        ],
        "CustomFields": [
          {
            "ImportRowNumber": 1,
            "DcfLabel": "sample string 2",
            "DCFDataType": 1,
            "DcfTextValue": "sample string 3",
            "DcfNumberValue": 1.0,
            "DcfDateValue": "2026-11-25T10:24:53.209915+00:00",
            "DcfValueRecordStatus": 0
          },
          {
            "ImportRowNumber": 1,
            "DcfLabel": "sample string 2",
            "DCFDataType": 1,
            "DcfTextValue": "sample string 3",
            "DcfNumberValue": 1.0,
            "DcfDateValue": "2026-11-25T10:24:53.209915+00:00",
            "DcfValueRecordStatus": 0
          }
        ],
        "AttachmentsToAdd": [
          "sample string 1",
          "sample string 2"
        ],
        "AttachmentsToDelete": [
          "sample string 1",
          "sample string 2"
        ],
        "AttachmentNames": [
          {
            "Key": "sample string 1",
            "Value": "sample string 2"
          },
          {
            "Key": "sample string 1",
            "Value": "sample string 2"
          }
        ],
        "HasAttachment": true
      },
      "Messages": [
        {
          "ResultCode": 0,
          "Message": "sample string 1",
          "HttpStatusCode": 200,
          "FieldName": "sample string 2"
        },
        {
          "ResultCode": 0,
          "Message": "sample string 1",
          "HttpStatusCode": 200,
          "FieldName": "sample string 2"
        }
      ],
      "BatchNumber": 1,
      "HasError": false,
      "HasHttpError": false,
      "HasMessage": true,
      "HasSuccessWithMoreDataRemaining": false,
      "TotalRecordsLongCount": 1
    }
  ],
  "Messages": [
    {
      "ResultCode": 0,
      "Message": "sample string 1",
      "HttpStatusCode": 200,
      "FieldName": "sample string 2"
    },
    {
      "ResultCode": 0,
      "Message": "sample string 1",
      "HttpStatusCode": 200,
      "FieldName": "sample string 2"
    }
  ],
  "BatchNumber": 1,
  "HasError": false,
  "HasHttpError": false,
  "HasMessage": true,
  "HasSuccessWithMoreDataRemaining": false,
  "TotalRecordsLongCount": 1
}