POST v1/imports/pay-rates?importAction={importAction}&allowSameFile={allowSameFile}
Import Pay Rates
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| importAction |
The import action. |
ImportAction |
Default value is Override |
| allowSameFile |
Determines if the import allows the content to be imported multiple times |
boolean |
Default value is True |
Body Parameters
The items to import.
Collection of EmployeePayRateImportDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Rate | decimal number |
None. |
|
| StartDate | date |
None. |
|
| RateCode | string |
None. |
|
| EmployeeNumber | string |
None. |
|
| EmployeePersonalId | integer |
None. |
|
| DivisionCode | string |
None. |
|
| CompanyCode | string |
Required |
Request Formats
application/json, text/json
Sample:
[
{
"rate": 1.0,
"startDate": "0001-02-03",
"rateCode": "sample string 2",
"employeeNumber": "sample string 3",
"employeePersonalId": 1,
"divisionCode": "sample string 4",
"companyCode": "sample string 5"
},
{
"rate": 1.0,
"startDate": "0001-02-03",
"rateCode": "sample string 2",
"employeeNumber": "sample string 3",
"employeePersonalId": 1,
"divisionCode": "sample string 4",
"companyCode": "sample string 5"
}
]
text/xml
Sample:
<ArrayOfEmployeePayRateImportDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BDBPayroll.Integration.ServiceContracts.Data.Models">
<EmployeePayRateImportDTO>
<CompanyCode>sample string 5</CompanyCode>
<DivisionCode>sample string 4</DivisionCode>
<EmployeeNumber>sample string 3</EmployeeNumber>
<EmployeePersonalId>1</EmployeePersonalId>
<Rate>1</Rate>
<RateCode>sample string 2</RateCode>
<StartDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/EntireOne.Shared.Dates">
<d3p1:Year>1</d3p1:Year>
<d3p1:Month>2</d3p1:Month>
<d3p1:Day>3</d3p1:Day>
</StartDate>
</EmployeePayRateImportDTO>
<EmployeePayRateImportDTO>
<CompanyCode>sample string 5</CompanyCode>
<DivisionCode>sample string 4</DivisionCode>
<EmployeeNumber>sample string 3</EmployeeNumber>
<EmployeePersonalId>1</EmployeePersonalId>
<Rate>1</Rate>
<RateCode>sample string 2</RateCode>
<StartDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/EntireOne.Shared.Dates">
<d3p1:Year>1</d3p1:Year>
<d3p1:Month>2</d3p1:Month>
<d3p1:Day>3</d3p1:Day>
</StartDate>
</EmployeePayRateImportDTO>
</ArrayOfEmployeePayRateImportDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
The results of the import.
ImportResultDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| NewRecords | integer |
None. |
|
| UpdatedRecords | integer |
None. |
|
| Errors | Collection of ImportErrorDTO |
None. |
|
| NewRecordKeys | Collection of ImportKeyDTO |
None. |
|
| UpdatedRecordKeys | Collection of ImportKeyDTO |
None. |
|
| ImportKey | GlobalEntityKeyOfIImportSubmission |
None. |
Response Formats
application/json, text/json, text/xml
Sample:
Sample not available.