This article describes the HR API methods for handling personnel information.
Import persons in CSV format
Full function name "ImportUsersFromCSV" - This function allows the import of person(s) data in CSV format via the API. Persons that do not yet exist in Nepton shall be created, and those that already exist shall be updated with the supplied information.
Please see the full person import documentation for full details.
Request fields
Username |
The username of a person configured in the Nepton service. The permissions for adding and modifying data in person import are the same as for this person. |
UserPassword |
The password of the above person. |
DeploymentId |
A numeric value identifying your working community. Please contact support for the correct value. |
WebServicePassword |
A password related to the working community data. Please contact support for the correct value. |
IgnoreEmptyValues |
Possible values for this field are "1" or "0" 1: an empty value in the import file will not affect any existing data in Nepton service 0: empty value in the import file will delete an existing value in Nepton service More details here. |
ImportType |
Indicates the person import type. In general, Nepton recommends using the Default import type. See Person import type for more details. Possible values are: 0: Default. Does not have fixed column order.1: Kieku (new accounts). Does not have fixed column order. 2: Mepco. Has fixed column order. 3: Kieku (worktime rules). Does not have fixed column order. 4: SAP. Does not have fixed column order. 5: Sympa. Does not have fixed column order. 6: SAP SuccessFactors. Does not have fixed column order. 8: Extend working contract dates. Does not have fixed column order. 9: Sympa HR Integration API. Does not have fixed column order. |
ImportColumnNames |
A pipe "|" character separated list of columns which are being imported. Note that this parameter is NOT required if the importData has a header row or if the selected ImportType has an fixed import column order. |
ImportEncoding |
The name of the encoding used in the file you wish to import (e.g. utf-8). More details here. |
ImportData |
The string representation of the import file data. Make sure it is HTML encoded. |
Response fields
ResultCode | Check the error code here |
ResultMessage | This field contains the result message. ResultMessage "Import Successful" means that the import runs without any issues. If the import is not successful then this field contains the reason of its failure. |
ResultBreakdown | This is a collection of result breakdown. |
CSV formatting
Information content is CSV-file with UTF-8 ISO-8859-1 encoding. Fields are separated with semicolon (’;’) character. Line separator character is either Windows style \r\n or UNIX style \n.
Data for one person is presented in one line. The order of fields is the same as in the API request ImportColumnNames field or listed by the titles on the first line. Based on the request, new persons are automatically added, and existing persons are updated. All common and customer specific fields of the Nepton service can be imported via the data content.
Supported fields are available based on the import type defined in the request. The available types can be found here.
Import persons in XML format
Full function name "ImportUsersFromXML" - This function allows the import of person(s) data from an XML format via the API. Persons that do not yet exist in Nepton are created, and those that already exist are updated with the supplied information.
Please see the full person import documentation for full details.
Request fields
Username |
The username of a person configured in the Nepton service. The permissions for adding and modifying data in person import are the same as for this person. |
UserPassword |
The password of the above person. |
DeploymentId |
A numeric value identifying your working community. Please contact support for the correct value. |
WebServicePassword |
A password related to the working community data. Please contact support for the correct value. |
IgnoreEmptyValues |
Possible values for this field are "1" or "0" 1: an empty value in the import file will not affect any existing data in Nepton service 0: empty value in the import file will delete an existing value in Nepton service More details here. |
ImportType |
Indicates the person import type. In general, Nepton recommends using the Default import type. See Person import type for more details. Possible values are: 0: Default1: Kieku (new accounts) 2: Mepco 3: Kieku (worktime rules) 4: SAP 5: Sympa 6: SAP SuccessFactors 8: Extend working contract dates 9: Sympa HR Integration API |
ImportNodeNames |
A pipe "|" character separated list of nodes which should be parsed for import. In the example below: ImportNodeNames = "First_name|Last_name|Username|Email" Note that <OtherField> is not included in ImportNodeNames, so it is not imported. <Persons> |
SeparatorNodeName |
The name of the XML node which separates each person's data in the import file. In the example below: SeparatorNodeName = "ImportUserData" <Persons> |
ImportEncoding |
The name of the encoding used in the file you wish to import (e.g. utf-8). More details here. |
ImportData |
The HTML encoded string representation of the import XML data. More information of the content structure can be found here. The list of available fields are described here. For example, the XML representation of the payload can be like this inside the ImportData element: <Persons> <ImportUserData> <First_name>User</First_name> <Last_name>1</Last_name> <Username>User 1</Username> <Email>testuser1@test.com</Email> </ImportUserData> <ImportUserData> <First_name>User</First_name> <Last_name>2</Last_name> <Username>User 2</Username> <Email>testuser2@test.com</Email> </ImportUserData> </Persons> As this field is sent as HTML encoded the text contents of the ImportData element in the import file would be <Persons> <ImportUserData> <First_name>User</First_name> <Last_name>1</Last_name> <Username>User 1</Username> <Email>testuser1@test.com</Email> </ImportUserData> <ImportUserData> <First_name>User</First_name> <Last_name>2</Last_name> <Username>User 2</Username> <Email>testuser2@test.com</Email> </ImportUserData> </Persons> |
Response fields
ResultCode | Check the error code here |
ResultMessage | This field contains the result message. ResultMessage "Import Successful" means that the import runs without any issues. If the import is not successful then this field contains the reason of its failure. |
ResultBreakdown | This is a collection of result breakdown. |
Example
Here is an example of a ImportUsersFromXML SOAP message:
- Method: POST
- Endpoint: https://go.nepton.com/API/SOAPWebService.asmx
- Headers:
- Content-Type: text/xml; charset=utf-8
- Body:
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ImportUsersFromXML xmlns="http://tempuri.org/"> <Username>Integration Account</Username> <UserPassword>e8bc7c00-17c8-4802-8962-c77e1071116c</UserPassword> <UserPassword>string</UserPassword> <DeploymentId>285057</DeploymentId> <WebServicePassword>060b20fe-cd2a-4629-bdc5-7b896a1cebc6</WebServicePassword> <IgnoreEmptyValues>false</IgnoreEmptyValues> <ImportType>0</ImportType> <ImportNodeNames>First_name|Last_name|Username|Email</ImportNodeNames> <SeparatorNodeName>ImportUserData</SeparatorNodeName> <ImportEncoding>utf-8</ImportEncoding> <ImportData><Persons> <ImportUserData> <First_name>User</First_name> <Last_name>1</Last_name> <Username>User 1</Username> <Email>testuser1@test.com</Email> </ImportUserData> <ImportUserData> <First_name>User</First_name> <Last_name>2</Last_name> <Username>User 2</Username> <Email>testuser2@test.com</Email> </ImportUserData> </Persons></ImportData> </ImportUsersFromXML> </soap:Body> </soap:Envelope>
Get work contracts of a person
Full function name "GetUserWorkingContractsByUserNameAndDates" - This function returns basic details of a persons' active work contract(s) between the requested dates. Please note that if there are no active contracts in the selected date range, an empty response will be returned.
Request fields
UserName |
Username of the person to get the working contracts of |
BeginDate |
Working contract search period start date |
EndDate |
Working contract search period end date |
WebServicePassword |
A password related to the working community data. Please contact support for the correct value. |
DeploymentID |
A numeric value identifying your working community. Please contact support for the correct value. |
Response fields
ID | Working contract id |
UserFullName | Person's full name |
UserStreetAddress | Person's street address |
UserPostalCode | Person's postal code |
UserCity | Person's city |
UserTelePhoneNumber | Person's telephone number |
UserBankAccountNumber | Person's bank account number |
MonthSalary | Person's monthly salary (data for this field comes from working contract document) |
HourlyWage | Person's hourly wage (data for this field comes from working contract document) |
WeekHours | Person's week min & max hours |
WorkArea | Person's work area (data for this field comes from working contract document) |
ContractStartDate | Person's working contract start date |
ContractEndDate | Person's working contract end date |
WorkTask | Person's work task (data for this field comes from working contract document) |
Customer | (Field is not in use) |
SocialSecurityNumber | Person's personal identity code |
UserEmail | Person's email |
Insert a document
Full function name "InsertDocument" - This function adds a document to a person and returns the resulting document id. It is primarily intended for system use. Customers can request the Person id for an existing person they have configured within Nepton from Support. It is required for the ModifiedBy field.
Request fields
Name | Document name |
Filename | Document full file name |
ModifiedBy | Person id who is making modifications to the person's document. Please contact support for the correct value. |
Description | Document description |
DocumentTypeID |
Document type id. Possible values are 1, 2, 5, 6, 7, 8 or 9 1 Working contract |
DocumentStatusID | Document status id. If you are inserting working contract document then provide "1" otherwise provide "4". |
DocumentFileTypeID |
Document file type id. Possible values are 1, 3, 4, 5, 6, 7, 8, 9, 10 or 11 1 Fillable form (HTML) |
DocumentData | Document content (Base64Binary) |
EmployeeNumber | Employee number of the person for which we want to insert the document |
DeploymentID | A numeric value identifying your working community. Please contact support for the correct value. |
WebServicePassword | A password related to the working community data. Please contact support for the correct value. |
OverrideDocumentBySameFilename |
Possible value are True or False. True: If a document exists with Filename, then delete the old one and insert the new one. False: If a document exists with Filename, don't replace the old one. |
Response fields
ErrorMessage | If the web service fails to insert the document, this field contains the reason why it is not successful. |
IntegerValue | If the web service successfully inserted/edited the document then this field contains the document id. |
Deprecated - Get count of users by name
This is a legacy function that will be removed in the future. If you are using this, please migrate away from it.
Full function name "GetCountOfUsersByFirstAndLastNames"
It was originally used to determine whether a person exists within Nepton. It returns a count of persons based on the given first and last names.
Request fields
FirstName |
First name for which we need the total person count |
LastName |
Last name for which we need the total person count |
WebServicePassword |
A password related to the working community data. Please contact support for the correct value. |
DeploymentID |
A numeric value identifying your working community. Please contact support for the correct value. |
Response fields
GetCountOfUsersByFirstAndLastNamesResult | A numeric value showing persons' count e.g 0 or 2 |
Deprecated - Get basic information of a person
This is a legacy function that will be removed in the future. A new function, able to return all person information, will be made available before its retirement.
Full function name "GetUsersBasicInfoByFirstAndLastName" - This legacy function returns a persons' basic information based on the requested First and last names. Until a new more capable function is created to replace this, it is recommended to use the person export for exporting person information instead.
Request fields
WebServiceCaller > CallerUsername | Username of the person calling web service |
WebServiceCaller > CallerPassword | Password of the person calling web service |
WebServiceCaller > WRMDeploymentId | The unique customer deployment identifier (Provided by Nepton) |
WebServiceCaller > WebServicePassword | Password unique to the customer deployment (Provided by Nepton) |
TargetFirstNames | List of first names (need to in same amount as last names) |
TargetLastNames | List of last names (need to in same amount as first names) |
Response fields
ErrorCode |
Error code can return the following values: Empty / Unknown_Errors / No_Error / Invalid_Password / Invalid_DeploymentId / AccessDenied / InvalidParameters / NotSupported / NotFound / DeploymentSettingsNotFound / CollectionContainsErrors / EncodingFailure / NotRecognised / IntegrationNotRecognizedReturnedUserId / AccessDenied_DueTo_RequestIPIsNotInWhiteList |
BasicUserInfo > ErrorCode | Same as ErrorCode parameter above |
BasicUserInfo > Username | Person username |
BasicUserInfo > EmployeeNumber | Person employee number |
BasicUserInfo > UserId | Person id |
BasicUserInfo > FirstName | Person first name |
BasicUserInfo > LastName | Person last name |