companyUid required | string <uuid> |
api-version | string |
using System; using System.Net.Http; using System.Threading.Tasks; public class Program { public static async Task Main(string[] args) { using (var client = new HttpClient()) { client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>"); var CompanyUid = "YOUR_companyUid_PARAMETER"; var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/requests/assign?api-version=string"); var response = await request.Content.ReadAsStringAsync(); Console.WriteLine(response); } } }
{- "totalRecords": 0,
- "totalDisplayRecords": 0,
- "data": [
- {
- "uid": "00000000-0000-0000-0000-000000000000",
- "status": 1,
- "item": {
- "name": "string",
- "status": 1,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "itemType": {
- "name": "string",
- "imageType": 1,
- "type": 1,
- "accessInfo": 2,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "employee": {
- "createdOn": "2019-08-24T14:15:22Z",
- "imageUrl": "string",
- "isForeign": true,
- "company": {
- "associationId": 1,
- "pNumber": "string",
- "cvr": "string",
- "hasHolidayPayment": true,
- "hasBenefitPackage": true,
- "hasBenefitPackageTwo": true,
- "hasAmPension": true,
- "isDepartmentIncomeSplitEnabled": true,
- "insuranceType": 0,
- "isUseOfVacationDaysInAdvanceEnabled": true,
- "isHorestaSupplementEnabled": true,
- "hasHolidayPaymentNettoTransferOrPayout": true,
- "isShPayoutNettoEnabled": true,
- "isTransferFifthHolidayWeekEnabled": true,
- "isHolidayHindranceEnabled": true,
- "isExtraHolidayEntitlementInHoursEnabled": true,
- "extraHolidayEntitlementInHours": true,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "logoUrl": "string"
}, - "invitedByEmail": 0,
- "hasPayroll": true,
- "hasProfileImage": true,
- "user": {
- "isActive": true,
- "email": "string",
- "name": "string",
- "photoUrl": "string",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "hasUser": true,
- "isResignedWithinLastyear": true,
- "isResignedWithRegistrations": true,
- "salaryMode": 0,
- "employmentDate": "2019-08-24T14:15:22Z",
- "title": "string",
- "isActive": true,
- "isResigned": true,
- "cpr": "string",
- "salaryType": 0,
- "contactPhone": "string",
- "contactEmail": "string",
- "department": {
- "name": "string",
- "number": "string",
- "hasWorkSchema": true,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "costCenter": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "number": "string",
- "type": "string"
}, - "profitCenter": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "number": "string",
- "type": "string"
}, - "carRegistrationNumber": "string",
- "type": 1,
- "salaryPayoutPeriod": 0,
- "incomeType": 0,
- "holidayPayReceiverType": 0,
- "extraHolidayEntitlementRule": "string",
- "name": "string",
- "employeeNumber": "string",
- "extraEmployeeNumber": "string",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "approvedBy1": {
- "createdOn": "2019-08-24T14:15:22Z",
- "imageUrl": "string",
- "isForeign": true,
- "company": {
- "associationId": 1,
- "pNumber": "string",
- "cvr": "string",
- "hasHolidayPayment": true,
- "hasBenefitPackage": true,
- "hasBenefitPackageTwo": true,
- "hasAmPension": true,
- "isDepartmentIncomeSplitEnabled": true,
- "insuranceType": 0,
- "isUseOfVacationDaysInAdvanceEnabled": true,
- "isHorestaSupplementEnabled": true,
- "hasHolidayPaymentNettoTransferOrPayout": true,
- "isShPayoutNettoEnabled": true,
- "isTransferFifthHolidayWeekEnabled": true,
- "isHolidayHindranceEnabled": true,
- "isExtraHolidayEntitlementInHoursEnabled": true,
- "extraHolidayEntitlementInHours": true,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "logoUrl": "string"
}, - "invitedByEmail": 0,
- "hasPayroll": true,
- "hasProfileImage": true,
- "user": {
- "isActive": true,
- "email": "string",
- "name": "string",
- "photoUrl": "string",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "hasUser": true,
- "isResignedWithinLastyear": true,
- "isResignedWithRegistrations": true,
- "salaryMode": 0,
- "employmentDate": "2019-08-24T14:15:22Z",
- "title": "string",
- "isActive": true,
- "isResigned": true,
- "cpr": "string",
- "salaryType": 0,
- "contactPhone": "string",
- "contactEmail": "string",
- "department": {
- "name": "string",
- "number": "string",
- "hasWorkSchema": true,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "costCenter": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "number": "string",
- "type": "string"
}, - "profitCenter": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "number": "string",
- "type": "string"
}, - "carRegistrationNumber": "string",
- "type": 1,
- "salaryPayoutPeriod": 0,
- "incomeType": 0,
- "holidayPayReceiverType": 0,
- "extraHolidayEntitlementRule": "string",
- "name": "string",
- "employeeNumber": "string",
- "extraEmployeeNumber": "string",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "approvedBy2": {
- "createdOn": "2019-08-24T14:15:22Z",
- "imageUrl": "string",
- "isForeign": true,
- "company": {
- "associationId": 1,
- "pNumber": "string",
- "cvr": "string",
- "hasHolidayPayment": true,
- "hasBenefitPackage": true,
- "hasBenefitPackageTwo": true,
- "hasAmPension": true,
- "isDepartmentIncomeSplitEnabled": true,
- "insuranceType": 0,
- "isUseOfVacationDaysInAdvanceEnabled": true,
- "isHorestaSupplementEnabled": true,
- "hasHolidayPaymentNettoTransferOrPayout": true,
- "isShPayoutNettoEnabled": true,
- "isTransferFifthHolidayWeekEnabled": true,
- "isHolidayHindranceEnabled": true,
- "isExtraHolidayEntitlementInHoursEnabled": true,
- "extraHolidayEntitlementInHours": true,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "logoUrl": "string"
}, - "invitedByEmail": 0,
- "hasPayroll": true,
- "hasProfileImage": true,
- "user": {
- "isActive": true,
- "email": "string",
- "name": "string",
- "photoUrl": "string",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "hasUser": true,
- "isResignedWithinLastyear": true,
- "isResignedWithRegistrations": true,
- "salaryMode": 0,
- "employmentDate": "2019-08-24T14:15:22Z",
- "title": "string",
- "isActive": true,
- "isResigned": true,
- "cpr": "string",
- "salaryType": 0,
- "contactPhone": "string",
- "contactEmail": "string",
- "department": {
- "name": "string",
- "number": "string",
- "hasWorkSchema": true,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "costCenter": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "number": "string",
- "type": "string"
}, - "profitCenter": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "number": "string",
- "type": "string"
}, - "carRegistrationNumber": "string",
- "type": 1,
- "salaryPayoutPeriod": 0,
- "incomeType": 0,
- "holidayPayReceiverType": 0,
- "extraHolidayEntitlementRule": "string",
- "name": "string",
- "employeeNumber": "string",
- "extraEmployeeNumber": "string",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "roles": [
- 1
], - "type": 1
}
]
}
companyUid required | string <uuid> |
api-version | string |
employeeUid | string <uuid> |
note | string [ 0 .. 150 ] characters |
required | Array of objects (Zalary.Models.ItemsAndAccess.ItemTypeRequest.ItemTypeCommentRequest) |
{- "employeeUid": "00000000-0000-0000-0000-000000000000",
- "note": "string",
- "itemTypes": [
- {
- "uid": "00000000-0000-0000-0000-000000000000",
- "comment": "string"
}
]
}
companyUid required | string <uuid> |
requestUid required | string <uuid> |
api-version | string |
using System; using System.Net.Http; using System.Threading.Tasks; public class Program { public static async Task Main(string[] args) { using (var client = new HttpClient()) { client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>"); var CompanyUid = "YOUR_companyUid_PARAMETER"; var RequestUid = "YOUR_requestUid_PARAMETER"; var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/requests/assign/" + RequestUid + "?api-version=string"); var response = await request.Content.ReadAsStringAsync(); Console.WriteLine(response); } } }
{- "note": "string",
- "uid": "00000000-0000-0000-0000-000000000000",
- "status": 1,
- "item": {
- "name": "string",
- "status": 1,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "itemType": {
- "name": "string",
- "imageType": 1,
- "type": 1,
- "accessInfo": 2,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "employee": {
- "createdOn": "2019-08-24T14:15:22Z",
- "imageUrl": "string",
- "isForeign": true,
- "company": {
- "associationId": 1,
- "pNumber": "string",
- "cvr": "string",
- "hasHolidayPayment": true,
- "hasBenefitPackage": true,
- "hasBenefitPackageTwo": true,
- "hasAmPension": true,
- "isDepartmentIncomeSplitEnabled": true,
- "insuranceType": 0,
- "isUseOfVacationDaysInAdvanceEnabled": true,
- "isHorestaSupplementEnabled": true,
- "hasHolidayPaymentNettoTransferOrPayout": true,
- "isShPayoutNettoEnabled": true,
- "isTransferFifthHolidayWeekEnabled": true,
- "isHolidayHindranceEnabled": true,
- "isExtraHolidayEntitlementInHoursEnabled": true,
- "extraHolidayEntitlementInHours": true,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "logoUrl": "string"
}, - "invitedByEmail": 0,
- "hasPayroll": true,
- "hasProfileImage": true,
- "user": {
- "isActive": true,
- "email": "string",
- "name": "string",
- "photoUrl": "string",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "hasUser": true,
- "isResignedWithinLastyear": true,
- "isResignedWithRegistrations": true,
- "salaryMode": 0,
- "employmentDate": "2019-08-24T14:15:22Z",
- "title": "string",
- "isActive": true,
- "isResigned": true,
- "cpr": "string",
- "salaryType": 0,
- "contactPhone": "string",
- "contactEmail": "string",
- "department": {
- "name": "string",
- "number": "string",
- "hasWorkSchema": true,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "costCenter": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "number": "string",
- "type": "string"
}, - "profitCenter": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "number": "string",
- "type": "string"
}, - "carRegistrationNumber": "string",
- "type": 1,
- "salaryPayoutPeriod": 0,
- "incomeType": 0,
- "holidayPayReceiverType": 0,
- "extraHolidayEntitlementRule": "string",
- "name": "string",
- "employeeNumber": "string",
- "extraEmployeeNumber": "string",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "approvedBy1": {
- "createdOn": "2019-08-24T14:15:22Z",
- "imageUrl": "string",
- "isForeign": true,
- "company": {
- "associationId": 1,
- "pNumber": "string",
- "cvr": "string",
- "hasHolidayPayment": true,
- "hasBenefitPackage": true,
- "hasBenefitPackageTwo": true,
- "hasAmPension": true,
- "isDepartmentIncomeSplitEnabled": true,
- "insuranceType": 0,
- "isUseOfVacationDaysInAdvanceEnabled": true,
- "isHorestaSupplementEnabled": true,
- "hasHolidayPaymentNettoTransferOrPayout": true,
- "isShPayoutNettoEnabled": true,
- "isTransferFifthHolidayWeekEnabled": true,
- "isHolidayHindranceEnabled": true,
- "isExtraHolidayEntitlementInHoursEnabled": true,
- "extraHolidayEntitlementInHours": true,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "logoUrl": "string"
}, - "invitedByEmail": 0,
- "hasPayroll": true,
- "hasProfileImage": true,
- "user": {
- "isActive": true,
- "email": "string",
- "name": "string",
- "photoUrl": "string",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "hasUser": true,
- "isResignedWithinLastyear": true,
- "isResignedWithRegistrations": true,
- "salaryMode": 0,
- "employmentDate": "2019-08-24T14:15:22Z",
- "title": "string",
- "isActive": true,
- "isResigned": true,
- "cpr": "string",
- "salaryType": 0,
- "contactPhone": "string",
- "contactEmail": "string",
- "department": {
- "name": "string",
- "number": "string",
- "hasWorkSchema": true,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "costCenter": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "number": "string",
- "type": "string"
}, - "profitCenter": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "number": "string",
- "type": "string"
}, - "carRegistrationNumber": "string",
- "type": 1,
- "salaryPayoutPeriod": 0,
- "incomeType": 0,
- "holidayPayReceiverType": 0,
- "extraHolidayEntitlementRule": "string",
- "name": "string",
- "employeeNumber": "string",
- "extraEmployeeNumber": "string",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "approvedBy2": {
- "createdOn": "2019-08-24T14:15:22Z",
- "imageUrl": "string",
- "isForeign": true,
- "company": {
- "associationId": 1,
- "pNumber": "string",
- "cvr": "string",
- "hasHolidayPayment": true,
- "hasBenefitPackage": true,
- "hasBenefitPackageTwo": true,
- "hasAmPension": true,
- "isDepartmentIncomeSplitEnabled": true,
- "insuranceType": 0,
- "isUseOfVacationDaysInAdvanceEnabled": true,
- "isHorestaSupplementEnabled": true,
- "hasHolidayPaymentNettoTransferOrPayout": true,
- "isShPayoutNettoEnabled": true,
- "isTransferFifthHolidayWeekEnabled": true,
- "isHolidayHindranceEnabled": true,
- "isExtraHolidayEntitlementInHoursEnabled": true,
- "extraHolidayEntitlementInHours": true,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "logoUrl": "string"
}, - "invitedByEmail": 0,
- "hasPayroll": true,
- "hasProfileImage": true,
- "user": {
- "isActive": true,
- "email": "string",
- "name": "string",
- "photoUrl": "string",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "hasUser": true,
- "isResignedWithinLastyear": true,
- "isResignedWithRegistrations": true,
- "salaryMode": 0,
- "employmentDate": "2019-08-24T14:15:22Z",
- "title": "string",
- "isActive": true,
- "isResigned": true,
- "cpr": "string",
- "salaryType": 0,
- "contactPhone": "string",
- "contactEmail": "string",
- "department": {
- "name": "string",
- "number": "string",
- "hasWorkSchema": true,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "costCenter": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "number": "string",
- "type": "string"
}, - "profitCenter": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "number": "string",
- "type": "string"
}, - "carRegistrationNumber": "string",
- "type": 1,
- "salaryPayoutPeriod": 0,
- "incomeType": 0,
- "holidayPayReceiverType": 0,
- "extraHolidayEntitlementRule": "string",
- "name": "string",
- "employeeNumber": "string",
- "extraEmployeeNumber": "string",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "roles": [
- 1
], - "type": 1
}
companyUid required | string <uuid> |
api-version | string |
required | Array of objects (Zalary.Models.ItemsAndAccess.ItemTypeRequest.PerformActionItemTypeRequestRequest) |
{- "requests": [
- {
- "uid": "00000000-0000-0000-0000-000000000000"
}
]
}
companyUid required | string <uuid> |
api-version | string |
required | Array of objects (Zalary.Models.ItemsAndAccess.ItemTypeRequest.PerformActionItemTypeRequestRequest) |
{- "requests": [
- {
- "uid": "00000000-0000-0000-0000-000000000000"
}
]
}
companyUid required | string <uuid> |
requestUid required | string <uuid> |
api-version | string |
uid | string <uuid> |
{- "uid": "00000000-0000-0000-0000-000000000000"
}
companyUid required | string <uuid> |
requestUid required | string <uuid> |
api-version | string |
using System; using System.Net.Http; using System.Threading.Tasks; public class Program { public static async Task Main(string[] args) { using (var client = new HttpClient()) { client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>"); var CompanyUid = "YOUR_companyUid_PARAMETER"; var RequestUid = "YOUR_requestUid_PARAMETER"; var request = await client.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/requests/assign/" + RequestUid + "/pullback?api-version=string", null); var response = await request.Content.ReadAsStringAsync(); Console.WriteLine(response); } } }