It offers the option to add contacts within the Employee and their details.
Every Employee must have a code, which, depending on the organization’s settings, can be manually entered or automatically generated.
| HTTP | Operation | Type | Object | DTO Why-DTOs? |
|---|---|---|---|---|
| Mutation Why 200? | createEmployee |
EmployeeCreateGLDtoInput |
||
| Mutation Why 200? | updateEmployee How to update? |
EmployeeUpdateGLDtoInput |
||
| Mutation Why 200? | deleteEmployee |
EmployeeDeleteGLDtoInput |
||
| Query | employees filtered by id Why? |
|||
| Query | employees |
Employee management.
Every Employee must have a code, which, depending on the organization’s settings, can be manually entered or automatically generated.
Depending on the Sage Active solution configuration, creating, updating, or deleting employees may not be allowed.
response=true) or denied (response=false).Explore Efficient Record Updates: For comprehensive insights into making precise modifications to records, check out our dedicated page on updates : Key concepts / Updating records
mutation ($values: EmployeeCreateGLDtoInput!) {
createEmployee(input: $values) {
id
code
}
}
{
"values":{
"name": "Léon DURANT",
"shortName": "LEDU",
"comments":"Employee of the year",
"addresses": [{
"firstLine": "123 Generic street",
"city": "Generic City",
"zipCode": "12345",
"countryIsoCodeAlpha2":"FR"
}]
}
}
{
"data": {
"createEmployee": {
"id": "e614a276-7de0-4fd2-a10c-e8c29732b530",
"code": "2"
}
}
}
| Key | Value |
|---|---|
Authorization |
Bearer Current access Token How to find? |
X-TenantId |
Current tenant id Why deprecated ? |
X-OrganizationId |
Current organization Id How to find? |
x-api-key |
Primary or secondary subscription key of your app How to find? |
| Fields | Type | Description | Length |
|---|---|---|---|
| id |
UUID | Id | |
| creationDate |
DateTime | Creation Date | |
| modificationDate |
DateTime | Modification Date | |
| sourceType |
|
indicates the origin of the employee | |
| code |
String | Code employee |
17 |
| name |
String | Employee Name | 70 |
| shortName | String | Short Name | 70 |
| disabled |
Boolean | Inactive |
|
| disabledDate |
DateTime | Inactive date | |
| status |
|
Status | |
| defaultAccountingAccount |
AccountingAccount | Fields of AccountingAccount | |
| defaultAccountingAccountId | UUID | Ledger General account |
|
| comments | String | Comments | 2000 |
| gdprApplied |
Boolean | GDPR action | |
| gdprAppliedDate |
DateTime | GDPR date action | |
| businessArea |
BusinessArea | Fields of BusinessArea | |
| businessAreaId | UUID | Business areas Id | |
| addresses[] | Array | List of addresses | |
| contacts[] | Array | List of contacts |
defaultAccountingAccountId : Id of the general account in accountingAccount associated with the employee.
The subAccountType of the account must be EMPLOYEE.
disabled : If TRUE the employee can no longer be used, but will remain in the existing information.
Forcing a value allows you to retrieve an alphanumeric code that can already identify the Employee, even if automatic numbering mode is active.
Forcing a value allows you to retrieve an alphanumeric code that can already identify the Employee, even if automatic numbering mode is active.
10000 and 69999 for customers, and between 70000 and 99999 for suppliers or employees.Forcing a value allows you to retrieve an alphanumeric code that can already identify the Employee, even if automatic numbering mode is active.
Attention, only one address is authorized, even if the representation is an array of addresses
| Fields | Type | Description | Length |
|---|---|---|---|
| id |
UUID | Id | |
| creationDate |
DateTime | Creation Date | |
| modificationDate |
DateTime | Modification Date | |
| countryId | UUID | Country Id | |
| country |
Country | Fields of Country | |
| countryIsoCodeAlpha2 | String | Country Code |
2 |
| countryName |
String | CountryName | |
| name | String | Code | 50 |
| firstLine | String | First Line | 35 |
| secondLine | String | Second Line | 35 |
| city | String | Town | 35 |
| zipCode | String | Postal Code | 9 |
| province | String | Province / Region / Federal State | 25 |
| isMainAddress |
Boolean | Is the main address |
Common to customers, suppliers, employees
| Fields | Type | Description | Length |
|---|---|---|---|
| id |
UUID | Id | |
| creationDate |
DateTime | Creation Date | |
| modificationDate |
DateTime | Modification Date | |
| isDefault | Boolean | Main contact (not filterable or sortable) | |
| courtesy |
|
Courtesy | |
| name | String | First name (John) | 35 |
| surname | String | Family name (Smith) | 35 |
| jobName | String | Job name | 35 |
| jobArea |
JobArea | Fields of JobArea | |
| jobAreaId | UUID | Job areas Id | |
| emails[] | Array | List of emails | |
| phones[] | Array | List of phones | |
| socialMedias[] | Array | List Social Networking |
| Fields | Type | Description | Length |
|---|---|---|---|
| id |
UUID | Id | |
| creationDate |
DateTime | Creation Date | |
| modificationDate |
DateTime | Modification Date | |
| emailAddress | String | Email address | 70 |
| usage |
|
Type | |
| isDefault | Boolean | Main mail |
| Fields | Type | Description | Length |
|---|---|---|---|
| id |
UUID | Id | |
| creationDate |
DateTime | Creation Date | |
| modificationDate |
DateTime | Modification Date | |
| number | String | Phone | 20 |
| type |
|
Type | |
| isDefault | Boolean | Main phone |
| Fields | Type | Description | Length |
|---|---|---|---|
| id |
UUID | UUID | |
| creationDate |
DateTime | Creation Date | |
| modificationDate |
DateTime | Modification Date | |
| name | String | Name | 30 |
| link | String | Link | 100 |