Represents employee personal information (spr) in Business Central.
Methods
Method | Return Type | Description |
---|---|---|
GET sprEmplPersonalInformations | sprEmplPersonalInformations | Gets an employee personal information object. |
DELETE sprEmplPersonalInformations | none | Deletes an employee personal information object. |
POST sprEmplPersonalInformations | sprEmplPersonalInformations | Creates an employee personal information object. |
PATCH sprEmplPersonalInformations | sprEmplPersonalInformations | Updates an employee personal information object. |
Navigation
Navigation | Return Type | Description |
---|---|---|
sprEmployee | sprEmployee | Gets the employee associated with the personal information. |
sprNationalities | sprNationalities | Gets the nationality associated with the personal information. |
sprMaritalStatus | sprMaritalStatus | Gets the marital status associated with the personal information. |
Properties
Property | Type | Description | Relation to |
---|---|---|---|
id | Guid | Specifies the ID of the personal information. Non-editable. | |
employeeNumber | String[20] | Specifies the employee's number. | sprEmployee.number |
employeeId | Guid | Specifies the employee's ID. | sprEmployee.id |
personalNo | String[20] | Specifies the personal number. | |
foreignerCodeILTU | String[20] | Specifies the foreigner code ILTU. | |
dateOfBirth | Date | Specifies the date of birth. | |
gender | String | Specifies the gender. | |
foreigner | Boolean | Specifies if the employee is a foreigner. | |
nationalityCode | String[20] | Specifies the nationalities code. | sprNationalities.code |
nationalityId | Guid | Specifies the nationalities ID. | sprNationalities.id |
maritalStatusCode | String[10] | Specifies the marital status code. | sprMaritalStatus.code |
maritalStatusId | Guid | The ID of the marital status. | sprMaritalStatus.id |
retiredFrom | Date | Specifies the retirement's date. | |
documentType | Option | Specifies the document's type. It can be: 0- " " 1- Passport 2- Personal Identity Card 3- Permission to Live in Lithuania |
|
documentNo | String[20] | Specifies the document's number. | |
documentIssueAuthority | String[30] | Specifies the document's issue authority. | |
documentIssueDate | Date | Specifies the document's issue date. | |
documentExpiryDate | Date | Specifies the document's expiry date. | |
socialInsuranceNo | String[20] | Specifies the social insurance number. | |
temporaryResident | Boolean | Specifies if the employee is a temporary resident. | |
countryCode | String[10] | Specifies the country code. | Country/Region.code |
city | String[30] | Specifies the city. | |
postCode | String[20] | Specifies the post code. | |
address | String[60] | Specifies the address. | |
address2 | String[60] | Specifies the second address. | |
declaredCountryCode | String[10] | Specifies the declared country code. | Country/Region.code |
declaredCity | String[30] | Specifies the declared city. | |
declaredPostCode | String[20] | Specifies the declared post code. | |
declaredAddress | String[60] | Specifies the declared address. | |
declaredAddress2 | String[60] | Specifies the second declared address. | |
lastModifiedDateTime | DateTimeOffset | Specifies the personal information's last modified date. Read-Only. |
Examples
Create sprEmplPersonalInformations
POST URI: /companies({{companyId}})/sprEmplPersonalInformations
Request
{
"employeeId": "{{employeeId}}",
"personalNo": "39101010123",
"foreignerCodeILTU": "",
"dateOfBirth": "0001-01-01",
"gender": " ",
"foreigner": false,
"nationalityCode": "",
"nationalityId": "00000000-0000-0000-0000-000000000000",
"maritalStatusCode": "",
"maritalStatusId": "00000000-0000-0000-0000-000000000000",
"retiredFrom": "0001-01-01",
"documentType": " ",
"documentNo": "",
"documentIssueAuthority": "",
"documentIssueDate": "0001-01-01",
"documentExpiryDate": "0001-01-01",
"socialInsuranceNo": "",
"temporaryResident": false,
"countryCode": "",
"city": "",
"postCode": "",
"address": "",
"address2": "",
"declaredCountryCode": "",
"declaredCity": "",
"declaredPostCode": "",
"declaredAddress": "",
"declaredAddress2": ""
}
Response
{
"@odata.context": "http://bc220-2:7048/BC/api/softera/softeraPayroll/v1.0/$metadata#companies(fb9142f3-361f-ee11-a396-ce5b49aea574)/sprEmplPersonalInformations/$entity",
"@odata.etag": "W/\"JzE5Ozc3MjA2NTczNTE1Njg4NjM5MzcxOzAwOyc=\"",
"id": "4446e0c1-bf2b-ee11-a395-98edeed05568",
"employeeNumber": "D0025",
"employeeId": "24def330-bd2b-ee11-a395-98edeed05568",
"personalNo": "39101010123",
"foreignerCodeILTU": "",
"dateOfBirth": "0001-01-01",
"gender": " ",
"foreigner": false,
"nationalityCode": "",
"nationalityId": "00000000-0000-0000-0000-000000000000",
"maritalStatusCode": "",
"maritalStatusId": "00000000-0000-0000-0000-000000000000",
"retiredFrom": "0001-01-01",
"documentType": " ",
"documentNo": "",
"documentIssueAuthority": "",
"documentIssueDate": "0001-01-01",
"documentExpiryDate": "0001-01-01",
"socialInsuranceNo": "",
"temporaryResident": false,
"countryCode": "",
"city": "",
"postCode": "",
"address": "",
"address2": "",
"declaredCountryCode": "",
"declaredCity": "",
"declaredPostCode": "",
"declaredAddress": "",
"declaredAddress2": "",
"lastModifiedDateTime": "2023-07-26T14:21:49.677Z"
}