### Example Request for EnsureProjectsExistV2
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Integration/API/Example-APIs-and-method-descriptions/360005783318-EnsureProjectsExistV2.md
This is an example of a SOAP request to the EnsureProjectsExistV2 API. It includes project details such as external identifiers, name, code, type, description, start date, and parent project.
```xml
4a78611d-4a00-4c4a-a987-865664d732ce
ExternalIdentifier
4a78611d-4a00-4c4a-a987-865664d732ce
ExternalIdentifier
Projekti X
1000/9001
project_work
Lorem ipsum primis venenatis justo mollis fringilla lectus sociosqu nostra, vehicula nunc massa sodales habitasse duis
2001-01-01
45453ddd-f167-408b-9e75-6c419755caf8
ExternalIdentifier
```
--------------------------------
### Insert Standard Activity with Project Relations
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Integration/API/Example-APIs-and-method-descriptions/27550371952925-InsertActivitiesV4.md
This example shows how to insert a standard work activity. It includes details like user personnel number, activity type, start time, and approver. It also demonstrates how to link the activity to projects using either an internal identifier or a project code, specifying the duration for each relation.
```xml
9001
201
2021-01-19T08:00:00
9999
Hard work
true
27ae3e08-bfa0-11eb-8529-0242ac130003
External
1234567890
120
ExampleProjectCode
60
```
--------------------------------
### Example: Limit and Order Data
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Integration/HR-data/System-specific-person-imports/360014650697-Person-import-Sympa-API.md
This example demonstrates how to retrieve a specific number of people, ordered by last name, from the interface.
```URL
/?$orderby=LastName&$top=5
```
--------------------------------
### EnsureProjectsExistV4 Response Example
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Integration/API/Example-APIs-and-method-descriptions/36507754396573-EnsureProjectsExistV4.md
This snippet shows an example of the XML response returned by the EnsureProjectsExistV4 API method when successful.
```APIDOC
## EnsureProjectsExistV4
### Description
This API method is used to ensure that projects exist within the system. It returns detailed information about the status of each project processed.
### Method
SOAP
### Endpoint
(SOAP endpoint not specified in source)
### Request Body
(Request body details not specified in source)
### Response
#### Success Response (200 OK)
- **ResponseCode** (string) - The overall response code for the operation.
- **ResponseString** (string) - A message describing the overall outcome.
- **EnsureProjectsExistResultList** (list) - A list of results for each project processed.
- **EnsureProjectsExistResult** (object) - Details for a single project.
- **ResponseCode** (string) - The response code for this specific project.
- **ResponseString** (string) - A message describing the outcome for this project.
- **ProjectId** (string) - The unique identifier for the project.
- **ProjectIdentifier** (object) - The identifier for the project.
- **Identifier** (string) - The value of the identifier.
- **IdentifierType** (string) - The type of the identifier.
- **ProjectManagers** (list) - A list of project managers associated with the project.
- **ProjectManager** (object) - Details of a project manager.
- **UserId** (string) - The user ID of the project manager.
- **UserName** (string) - The username of the project manager.
- **PersonnelNumber** (string) - The personnel number of the project manager.
- **PersonExternalIdentifier** (object) - The external identifier for the person.
- **Identifier** (string) - The value of the external identifier.
- **FieldName** (string) - The name of the field for the external identifier.
### Response Example
```xml
1000
All clear. No errors.
1000
All clear. No errors.
76254
4a78611d-4a00-4c4a-a987-865664d732ce
ExternalIdentifier
09876543210
Test User
27
MGR-010101
ExternalIdentifier1
1234567890
Example Username
1274
MGR-67890
ExternalIdentifier1
0234567890
Other example
12714
MGR-12345
ExternalIdentifier1
```
```
--------------------------------
### Example SQL Query for Netvisor Integration
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Integration/Salary-systems/360007534058-Netvisor.md
An example SQL query demonstrating how to select user salary data, including personnel number as the employee ID, for integration with Netvisor.
```sql
SELECT UserSalaryData.*, SUM(UserSalaryData.Amount) As OverrideAmount,
UserData.Personnelnumber AS NetvisorFieldEmployeeId,
'number' AS NetvisorAttributeEmployeeIdType
FROM UserSalaryData
JOIN UserData ON (UserSalaryData.UserId = UserSalaryData.UserId)
WHERE UserSalaryData.CompensationType = 'BasicTime'
```
--------------------------------
### BeginActivityV2
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Integration/API/Example-APIs-and-method-descriptions/6869562936221-BeginActivityV2.md
This API method allows you to start an activity in the Nepton system. It requires authentication and specifies the activity type, start time, and optional details like terminal ID, comments, and related projects.
```APIDOC
## BeginActivityV2
### Description
This API method allows you to start an activity in the Nepton system. It requires authentication and specifies the activity type, start time, and optional details like terminal ID, comments, and related projects.
### Method
POST (SOAP)
### Endpoint
(SOAP endpoint not specified in source, assumed to be a service endpoint)
### Parameters
#### Request Body (XML Structure for ParametersForBeginActivityV2)
- **CallerAuthentication** (XML element) - Required - More information about authentications [here]().
- **ActivityTypeId** (integer) - Required - The Nepton identifier of the event type to be started. The list of event types can be read via the API. More info [here]().
- **BeginDateTime** (datetime) - Optional - The start date and time of the event type to be started. Data given in form `VVVV-KK-PPTHH:MM:SS`, for example`2021-02-18T12:30:00`. If this data is not given, the event will start at current time.
- **EndDateTime** (datetime) - Optional - The end date and time of the event. Data given in format `VVVV-KK-PPTHH:MM:SS`, esimerkiksi `2021-02-18T12:30:00`. Not mandatory. The event can be ended via another method.
- **TerminalId** (integer) - Optional - Terminal identifier. Any identifier can be used, as long as the identifiers are integers.
- **Comment** (string) - Optional - Any comments for events.
- **OvertimeBasePartTargetedTo** (string) - Optional - Accrual, where overtime base part is being directed to. See possible values [here]().
- **OvertimeIncrementPartTargetedTo** (string) - Optional - Accrual, where overtime increment part is being directed to. See possible values [here]().
- **RelatedProjects** (XML element) - Optional - Projects to be registered for the event.
- **ActivityToProjectRelation** (XML element) - 0..n
- **Id** (integer) - Optional - The unique identifier of the project in Nepton. The unique identifier of the project or project code must be provided.
- **Duration** (integer) - Optional - Project duration in minutes.
- **Name** (string) - Optional - Project name. Data is not used.
- **Code** (string) - Optional - Project code. The unique identifier of the project or project code must be provided.
- **WorkIncrements** (XML element) - Optional - Supplements to be added to the event.
- **WorkIncrement** (XML element) - 0..n
- **Index** (integer) - Required - Index of supplement
- **Value** (decimal) - Required - Supplement value in minutes, units or decimals.
- **ExternalIdentifiers** (XML element) - Optional - External identifiers given to the event
- **ExternalIdentifier** (XML element) - 1..n
- **Identifier** (string) - Required - External identifier
- **IdentifierType** (string) - Required - Type of external identifier. The only supported type at the moment is `External`.
### Request Example
```xml
1
2021-05-28T07:35:34
418
ae2f6c97-104f-49e4-9cff-70951f00234e
External
```
### Response
(Response details not provided in the source text)
```
--------------------------------
### Get Accrual Values for User Request
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Integration/API/Example-APIs-and-method-descriptions/6913825701277-GetAccrualValuesForUser.md
Example of a SOAP request to retrieve accrual values for a specific user and date. Authentication details are omitted for brevity.
```xml
2345
2020-01-01
```
--------------------------------
### Get Accrual Values for User Response
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Integration/API/Example-APIs-and-method-descriptions/6913825701277-GetAccrualValuesForUser.md
Example of a SOAP response from the GetAccrualValuesForUser API, showing accrual details including internal name, display name, amount, and change amount.
```xml
?
?
bank
pankki
18
10
```
--------------------------------
### InsertActivitiesV3 - Standard Activity
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Integration/API/Example-APIs-and-method-descriptions/6788985086621-InsertActivitiesV3.md
This example demonstrates how to insert a standard work activity using the InsertActivitiesV3 API. It includes details such as user personnel number, activity type code, start time, approver, comment, and related project information.
```APIDOC
## POST /InsertActivitiesV3
### Description
Inserts a standard work activity into the system. This includes details like user, activity type, time, and project associations.
### Method
POST
### Endpoint
/InsertActivitiesV3
### Request Body
- **CallerAuthentication** (string) - Required - Authentication credentials.
- **ActivityList** (object) - Required - A list of activities to insert.
- **Activity** (object) - Represents a single activity.
- **UserPersonnelNumber** (string) - Required - The personnel number of the user performing the activity.
- **ActivityTypeCode** (string) - Required - The code representing the type of activity.
- **BeginDateTime** (string) - Required - The start date and time of the activity (ISO 8601 format).
- **ApproverUserPersonnelNumber** (string) - Required - The personnel number of the approver for this activity.
- **Comment** (string) - Optional - A comment associated with the activity.
- **IsClockedEvent** (boolean) - Optional - Indicates if this is a clocked event.
- **ExternalIdentifiers** (object) - Optional - A list of external identifiers for the activity.
- **ExternalIdentifier** (object) - Represents an external identifier.
- **Identifier** (string) - Required - The identifier value.
- **IdentifierType** (string) - Required - The type of the identifier.
- **RelatedProjects** (object) - Optional - Projects related to this activity.
- **ActivityToProjectRelation** (object) - Represents a relation to a project.
- **Id** (string) - Required if Code is not present - The internal identifier of the project.
- **Code** (string) - Required if Id is not present - The code of the project.
- **Duration** (string) - Required - The duration spent on the project in minutes.
### Request Example
```xml
9001
201
2021-01-19T08:00:00
9999
Hard work
true
27ae3e08-bfa0-11eb-8529-0242ac130003
External
1234567890
120
ExampleProjectCode
60
```
### Response
(Success and error response details not provided in source)
```
--------------------------------
### JSON Example with Validity Dates
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Integration/HR-data/Field-validities-in-person-imports/360015842238-Person-imports-with-validity-start-and-end-information.md
This JSON snippet demonstrates importing a 'Job Title' field with validity start and end dates. The 'First Name' and 'Last Name' fields are imported without validity information, following a different import method.
```json
"Henkilö": [
{
"Henkilönumero": "1234",
"Etunimi": "Esa",
"Sukunimi": "Esimerkki",
"Ammattinimike": [
{
"Voimassa alkaen": "2000-01-01",
"Voimassa päättyen": "2020-11-30",
"Arvo": "Myyjä"
},
{
"Voimassa alkaen": "2021-01-01",
"Voimassa päättyen": null,
"Arvo": "Myyntipäällikkö"
}
]
}
]
```
--------------------------------
### InsertActivitiesV4 - Standard Activity
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Integration/API/Example-APIs-and-method-descriptions/27550371952925-InsertActivitiesV4.md
This example demonstrates how to insert a standard work activity using the InsertActivitiesV4 API. It includes details like user personnel number, activity type code, start time, approver, comments, and related project information.
```APIDOC
## POST /InsertActivitiesV4
### Description
Inserts a standard work activity into the system. This includes details about the user, the activity itself, and any associated projects.
### Method
POST
### Endpoint
/InsertActivitiesV4
### Request Body
- **CallerAuthentication** (string) - Required - Authentication token for the caller.
- **ActivityList** (object) - Required - A list of activities to insert.
- **Activity** (object) - Represents a single activity.
- **UserPersonnelNumber** (string) - Required - The personnel number of the user performing the activity.
- **ActivityTypeCode** (string) - Required - The type code of the activity.
- **BeginDateTime** (string) - Required - The start date and time of the activity (ISO 8601 format).
- **ApproverUserPersonnelNumber** (string) - Required - The personnel number of the approver.
- **Comment** (string) - Optional - A comment about the activity.
- **IsClockedEvent** (boolean) - Optional - Indicates if this is a clocked event.
- **ExternalIdentifiers** (object) - Optional - A list of external identifiers for the activity.
- **ExternalIdentifier** (object) - Represents an external identifier.
- **Identifier** (string) - Required - The identifier value.
- **IdentifierType** (string) - Required - The type of the identifier.
- **RelatedProjects** (object) - Optional - A list of projects related to the activity.
- **ActivityToProjectRelation** (object) - Represents a relation to a project.
- **Id** (string) - Required - The internal identifier of the project.
- **Duration** (string) - Required - The duration spent on the project in minutes.
- **Code** (string) - Required - The code of the project (alternative to Id).
### Request Example
```xml
9001
201
2021-01-19T08:00:00
9999
Hard work
true
27ae3e08-bfa0-11eb-8529-0242ac130003
External
1234567890
120
ExampleProjectCode
60
```
### Response
(Response details not provided in the source text)
```
--------------------------------
### Example of Set Data in Netvisor
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Integration/Salary-systems/360007534058-Netvisor.md
This XML structure represents an example of data that can be set for a workday in Netvisor. It includes details like date, employee identifier, and work time information.
```XML
2016-03-14
111111-1111
12:30
16:00
0
123
confirmed
Iltapäivä
```
--------------------------------
### Null StartDate Example
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Integration/API/Example-APIs-and-method-descriptions/360005783318-EnsureProjectsExistV2.md
Demonstrates how to represent a null StartDate in the XML request.
```xml
```
--------------------------------
### Mepco Integration File Example (With Optional Columns)
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Integration/Events/360003773337-Mepco-scheduled-event-import.md
This snippet demonstrates the format of a Mepco integration file including optional columns for time and duration. Pay attention to the correct placement and formatting of these optional fields.
```text
Esimerkki;Erika;1109;24.01.2014;25.01.2014;06.1;L;;;;;
Hollola;Heidi;2404;01.10.2014;01.10.2014;08.0;P;01.10.2014;08:00;10:00;10:00;
Hollola;Heidi;2404;22.09.2014;26.09.2014;08.0;P;;06:00;;;04:00
```
--------------------------------
### Content-Length Header Example
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Integration/HR-data/8042662966429-Export-HR-data-to-a-REST-API-endpoint.md
This is an example of a Content-Length header, specifying the size of the request body in bytes.
```http
Content-Length: 3909
```
--------------------------------
### Example EnsureProjectsExistV4 Request
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Integration/API/Example-APIs-and-method-descriptions/36507754396573-EnsureProjectsExistV4.md
This is an example SOAP request for the EnsureProjectsExistV4 API. It demonstrates how to structure the XML payload to include project details such as identifiers, names, codes, and project managers. Authentication details are omitted for brevity.
```xml
4a78611d-4a00-4c4a-a987-865664d732ce
ExternalIdentifier
4a78611d-4a00-4c4a-a987-865664d732ce
ExternalIdentifier
Projekti X
1000/9001
project_work
Lorem ipsum primis venenatis justo mollis fringilla lectus sociosqu nostra, vehicula nunc massa sodales habitasse duis
2001-01-01
45453ddd-f167-408b-9e75-6c419755caf8
ExternalIdentifier
true
27
Example Username
MGR-12345
ExternalIdentifier1
```
--------------------------------
### Rule Commands for Late Work Start
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Worktime-calculations-and-management/Setting-exceptions/360002560677-Configure-exceptions-to-settings.md
These rule commands specify conditions for workdays with a specific event type, starting at or after 22:00 and before 24:01. The 24:01 value in WORK-DAY-BEGINS-BEFORE is used to include midnight and work starting on the next day.
```rule
[WORK-DAY-HAS-ANY-OF-EVENT-TYPES|1]
[WORK-DAY-BEGINS-AFTER|22:00]
[WORK-DAY-BEGINS-BEFORE|24:01]
```
--------------------------------
### 100-Continue Expect Header
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Integration/HR-data/8042662966429-Export-HR-data-to-a-REST-API-endpoint.md
This example shows the headers sent in an initial request to check server readiness before sending the full data payload. It includes the Content-Length and the Expect: 100-continue headers.
```http
Content-Length: 25959
Expect: 100-continue
```
--------------------------------
### Rule Commands for Early Work Start
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Worktime-calculations-and-management/Setting-exceptions/360002560677-Configure-exceptions-to-settings.md
These rule commands define conditions for when a workday has a specific event type and starts within a given time frame. Use WORK-DAY-BEGINS-BEFORE with a value of 22:01 to include work starting at or before 22:00.
```rule
[WORK-DAY-HAS-ANY-OF-EVENT-TYPES|1]
[WORK-DAY-BEGINS-AFTER|00:00]
[WORK-DAY-BEGINS-BEFORE|22:01]
```
--------------------------------
### GetUnits SOAP Message Example
Source: https://github.com/strom-capital/nepton-docs/blob/main/en-gb/Support/Integration/API/HR-API/4406441875089-Authentication-in-HR-API.md
This example demonstrates how to authenticate and make a GetUnits request using a SOAP message.
```APIDOC
## POST https://go.nepton.com/API/SOAPWebService.asmx
### Description
This endpoint retrieves units from the HR API. Authentication requires specific credentials tied to a user and the deployment.
### Method
POST
### Endpoint
https://go.nepton.com/API/SOAPWebService.asmx
### Headers
- Content-Type: text/xml; charset=utf-8
### Parameters
#### Request Body
- **Username** (string) - Required - The username of a person configured in the Nepton service.
- **UserPassword** (string) - Required - The password of the above person. Note: Password cannot end with '&'.
- **DeploymentId** (string) - Required - A numeric value identifying your working community.
- **WebServicePassword** (string) - Required - A password related to the working community data.
- **IncludeDeletedUnits** (boolean) - Optional - Specifies whether to include deleted units.
### Request Example
```xml
Integration Account
e8bc7c00-17c8-4802-8962-c77e1071116c
285057
060b20fe-cd2a-4629-bdc5-7b896a1cebc6
false
```
### Response
#### Success Response (200)
- The response will contain a list of units based on the request parameters.
#### Response Example
(Response structure not explicitly defined in source, but would typically be a SOAP response containing unit data.)
```