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 + "/supplementsanddeductions/registrations?api-version=string"); var response = await request.Content.ReadAsStringAsync(); Console.WriteLine(response); } } }
{- "totalRecords": 0,
- "totalDisplayRecords": 0,
- "data": [
- {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "date": "2019-08-24T14:15:22Z",
- "units": 0,
- "rate": 0,
- "total": 0,
- "name": "string",
- "description": "string",
- "status": 0,
- "employee": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "incomeType": 0
}, - "supplementRate": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "createdOn": "2019-08-24T14:15:22Z",
- "rate": 0,
- "hours": 0,
- "name": "string",
- "number": "string",
- "kontoNumber": "string",
- "regNumber": "string",
- "type": 0,
- "sharedToAll": true,
- "limitedToEmployee": true,
- "isBenefitPackageTwoEnabled": true,
- "overrideRate": true,
- "isProratedRate": true,
- "includeInPensionBase": true,
- "includeInAmPensionBase": true,
- "predefinedRateType": 0,
- "isIncludedInHolidayEntitlementSalary": true,
- "overrideName": true,
- "useSupplementRates": true,
- "useHourRates": true,
- "composedRates": "string",
- "calculateOnPercentage": true,
- "percentage": 0,
- "calculateOnGrossSalary": true,
- "hasBookingGroupOverride": true,
- "isFromTemplate": true
}, - "projectId": "string",
- "department": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "number": "string",
- "hasWorkSchema": true
}, - "attachmentCount": 0,
- "countryUid": "00000000-0000-0000-0000-000000000000",
- "countryName": "string",
- "countryCode": "string",
- "countryId": "string",
- "countryTaxPercentage": 0,
- "countryTaxableIncome": true,
- "costCenterUid": "00000000-0000-0000-0000-000000000000",
- "costCenterName": "string",
- "costCenterCode": "string",
- "triggerRetro": true,
- "companyDepartmentUid": "00000000-0000-0000-0000-000000000000",
- "companyProfitCenterUid": "00000000-0000-0000-0000-000000000000"
}
]
}
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.DeleteAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/supplementsanddeductions/registrations?api-version=string"); var response = await request.Content.ReadAsStringAsync(); Console.WriteLine(response); } } }
companyUid required | string <uuid> |
registrationUid 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 RegistrationUid = "YOUR_registrationUid_PARAMETER"; var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/supplementsanddeductions/registrations/" + RegistrationUid + "?api-version=string"); var response = await request.Content.ReadAsStringAsync(); Console.WriteLine(response); } } }
{- "attachments": [
- {
- "name": "string",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}
], - "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "date": "2019-08-24T14:15:22Z",
- "units": 0,
- "rate": 0,
- "total": 0,
- "name": "string",
- "description": "string",
- "status": 0,
- "employee": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "incomeType": 0
}, - "supplementRate": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "createdOn": "2019-08-24T14:15:22Z",
- "rate": 0,
- "hours": 0,
- "name": "string",
- "number": "string",
- "kontoNumber": "string",
- "regNumber": "string",
- "type": 0,
- "sharedToAll": true,
- "limitedToEmployee": true,
- "isBenefitPackageTwoEnabled": true,
- "overrideRate": true,
- "isProratedRate": true,
- "includeInPensionBase": true,
- "includeInAmPensionBase": true,
- "predefinedRateType": 0,
- "isIncludedInHolidayEntitlementSalary": true,
- "overrideName": true,
- "useSupplementRates": true,
- "useHourRates": true,
- "composedRates": "string",
- "calculateOnPercentage": true,
- "percentage": 0,
- "calculateOnGrossSalary": true,
- "hasBookingGroupOverride": true,
- "isFromTemplate": true
}, - "projectId": "string",
- "department": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "number": "string",
- "hasWorkSchema": true
}, - "attachmentCount": 0,
- "countryUid": "00000000-0000-0000-0000-000000000000",
- "countryName": "string",
- "countryCode": "string",
- "countryId": "string",
- "countryTaxPercentage": 0,
- "countryTaxableIncome": true,
- "costCenterUid": "00000000-0000-0000-0000-000000000000",
- "costCenterName": "string",
- "costCenterCode": "string",
- "triggerRetro": true,
- "companyDepartmentUid": "00000000-0000-0000-0000-000000000000",
- "companyProfitCenterUid": "00000000-0000-0000-0000-000000000000"
}
companyUid required | string <uuid> |
registrationUid required | string <uuid> |
attachmentUid 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 RegistrationUid = "YOUR_registrationUid_PARAMETER"; var AttachmentUid = "YOUR_attachmentUid_PARAMETER"; var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/supplementsanddeductions/registrations/" + RegistrationUid + "/attachments/" + AttachmentUid + "?api-version=string"); var response = await request.Content.ReadAsStringAsync(); Console.WriteLine(response); } } }
"string"
companyUid required | string <uuid> |
api-version | string |
employeeUid | string <uuid> |
object (Zalary.SupplementsAndDeductions.Models.RegistrationRequest) |
[- {
- "employeeUid": "00000000-0000-0000-0000-000000000000",
- "registration": {
- "date": "2019-08-24T14:15:22Z",
- "rate": 0,
- "units": 0,
- "name": "string",
- "description": "string",
- "status": 0,
- "rateUid": "00000000-0000-0000-0000-000000000000",
- "attachmentUids": [
- "00000000-0000-0000-0000-000000000000"
], - "projectId": "string",
- "countryUid": "00000000-0000-0000-0000-000000000000",
- "countryTaxableIncome": true,
- "costCenterUid": "00000000-0000-0000-0000-000000000000",
- "countryTaxPercentage": 0,
- "triggerRetro": true,
- "companyDepartmentUid": "00000000-0000-0000-0000-000000000000",
- "companyProfitCenterUid": "00000000-0000-0000-0000-000000000000"
}
}
]
[- {
- "attachments": [
- {
- "name": "string",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}
], - "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "date": "2019-08-24T14:15:22Z",
- "units": 0,
- "rate": 0,
- "total": 0,
- "name": "string",
- "description": "string",
- "status": 0,
- "employee": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "incomeType": 0
}, - "supplementRate": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "createdOn": "2019-08-24T14:15:22Z",
- "rate": 0,
- "hours": 0,
- "name": "string",
- "number": "string",
- "kontoNumber": "string",
- "regNumber": "string",
- "type": 0,
- "sharedToAll": true,
- "limitedToEmployee": true,
- "isBenefitPackageTwoEnabled": true,
- "overrideRate": true,
- "isProratedRate": true,
- "includeInPensionBase": true,
- "includeInAmPensionBase": true,
- "predefinedRateType": 0,
- "isIncludedInHolidayEntitlementSalary": true,
- "overrideName": true,
- "useSupplementRates": true,
- "useHourRates": true,
- "composedRates": "string",
- "calculateOnPercentage": true,
- "percentage": 0,
- "calculateOnGrossSalary": true,
- "hasBookingGroupOverride": true,
- "isFromTemplate": true
}, - "projectId": "string",
- "department": {
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "number": "string",
- "hasWorkSchema": true
}, - "attachmentCount": 0,
- "countryUid": "00000000-0000-0000-0000-000000000000",
- "countryName": "string",
- "countryCode": "string",
- "countryId": "string",
- "countryTaxPercentage": 0,
- "countryTaxableIncome": true,
- "costCenterUid": "00000000-0000-0000-0000-000000000000",
- "costCenterName": "string",
- "costCenterCode": "string",
- "triggerRetro": true,
- "companyDepartmentUid": "00000000-0000-0000-0000-000000000000",
- "companyProfitCenterUid": "00000000-0000-0000-0000-000000000000"
}
]
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.PostAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/supplementsanddeductions/registrations/attachments?api-version=string", null); var response = await request.Content.ReadAsStringAsync(); Console.WriteLine(response); } } }
[- {
- "name": "string",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}
]
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.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/supplementsanddeductions/registrations/reject?api-version=string", null); var response = await request.Content.ReadAsStringAsync(); Console.WriteLine(response); } } }
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.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/supplementsanddeductions/registrations/approve?api-version=string", null); var response = await request.Content.ReadAsStringAsync(); Console.WriteLine(response); } } }
{- "isSuccessPartial": true
}
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.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/supplementsanddeductions/registrations/pending?api-version=string", null); var response = await request.Content.ReadAsStringAsync(); Console.WriteLine(response); } } }
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.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/supplementsanddeductions/registrations/manuallyarchive?api-version=string", null); var response = await request.Content.ReadAsStringAsync(); Console.WriteLine(response); } } }