POST v1/imports/rates?action={action}&allowSameFile={allowSameFile}
Import Division Rate Codes
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| action |
The import action. |
ImportAction |
Default value is Insert |
| 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 DivisionRateCodeImportDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | string |
Required |
|
| Description | string |
None. |
|
| DefaultRate | decimal number |
None. |
|
| AutoAddNewHires | boolean |
None. |
|
| RateCodeRules | Collection of DivisionRateCodeRuleSubImportDTO |
None. |
|
| DivisionCode | string |
None. |
|
| CompanyCode | string |
Required |
Request Formats
application/json, text/json
Sample:
[
{
"code": "sample string 1",
"description": "sample string 2",
"defaultRate": 3.0,
"autoAddNewHires": true,
"rateCodeRules": [
{
"startDate": "0001-02-03",
"rate": 1.0,
"jobCode": "sample string 2",
"costCenter1Code": "sample string 3",
"costCenter2Code": "sample string 4",
"costCenter3Code": "sample string 5",
"costCenter4Code": "sample string 6",
"costCenter5Code": "sample string 7",
"losNumber": 8,
"losType": "Days",
"sequence": 9
},
{
"startDate": "0001-02-03",
"rate": 1.0,
"jobCode": "sample string 2",
"costCenter1Code": "sample string 3",
"costCenter2Code": "sample string 4",
"costCenter3Code": "sample string 5",
"costCenter4Code": "sample string 6",
"costCenter5Code": "sample string 7",
"losNumber": 8,
"losType": "Days",
"sequence": 9
}
],
"divisionCode": "sample string 5",
"companyCode": "sample string 6"
},
{
"code": "sample string 1",
"description": "sample string 2",
"defaultRate": 3.0,
"autoAddNewHires": true,
"rateCodeRules": [
{
"startDate": "0001-02-03",
"rate": 1.0,
"jobCode": "sample string 2",
"costCenter1Code": "sample string 3",
"costCenter2Code": "sample string 4",
"costCenter3Code": "sample string 5",
"costCenter4Code": "sample string 6",
"costCenter5Code": "sample string 7",
"losNumber": 8,
"losType": "Days",
"sequence": 9
},
{
"startDate": "0001-02-03",
"rate": 1.0,
"jobCode": "sample string 2",
"costCenter1Code": "sample string 3",
"costCenter2Code": "sample string 4",
"costCenter3Code": "sample string 5",
"costCenter4Code": "sample string 6",
"costCenter5Code": "sample string 7",
"losNumber": 8,
"losType": "Days",
"sequence": 9
}
],
"divisionCode": "sample string 5",
"companyCode": "sample string 6"
}
]
text/xml
Sample:
<ArrayOfDivisionRateCodeImportDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BDBPayroll.Integration.ServiceContracts.Data.Models">
<DivisionRateCodeImportDTO>
<CompanyCode>sample string 6</CompanyCode>
<DivisionCode>sample string 5</DivisionCode>
<AutoAddNewHires>true</AutoAddNewHires>
<Code>sample string 1</Code>
<DefaultRate>3</DefaultRate>
<Description>sample string 2</Description>
<RateCodeRules>
<DivisionRateCodeRuleSubImportDTO>
<CostCenter1Code>sample string 3</CostCenter1Code>
<CostCenter2Code>sample string 4</CostCenter2Code>
<CostCenter3Code>sample string 5</CostCenter3Code>
<CostCenter4Code>sample string 6</CostCenter4Code>
<CostCenter5Code>sample string 7</CostCenter5Code>
<JobCode>sample string 2</JobCode>
<LOSNumber>8</LOSNumber>
<LOSType>Days</LOSType>
<Rate>1</Rate>
<Sequence>9</Sequence>
<StartDate xmlns:d5p1="http://schemas.datacontract.org/2004/07/EntireOne.Shared.Dates">
<d5p1:Year>1</d5p1:Year>
<d5p1:Month>2</d5p1:Month>
<d5p1:Day>3</d5p1:Day>
</StartDate>
</DivisionRateCodeRuleSubImportDTO>
<DivisionRateCodeRuleSubImportDTO>
<CostCenter1Code>sample string 3</CostCenter1Code>
<CostCenter2Code>sample string 4</CostCenter2Code>
<CostCenter3Code>sample string 5</CostCenter3Code>
<CostCenter4Code>sample string 6</CostCenter4Code>
<CostCenter5Code>sample string 7</CostCenter5Code>
<JobCode>sample string 2</JobCode>
<LOSNumber>8</LOSNumber>
<LOSType>Days</LOSType>
<Rate>1</Rate>
<Sequence>9</Sequence>
<StartDate xmlns:d5p1="http://schemas.datacontract.org/2004/07/EntireOne.Shared.Dates">
<d5p1:Year>1</d5p1:Year>
<d5p1:Month>2</d5p1:Month>
<d5p1:Day>3</d5p1:Day>
</StartDate>
</DivisionRateCodeRuleSubImportDTO>
</RateCodeRules>
</DivisionRateCodeImportDTO>
<DivisionRateCodeImportDTO>
<CompanyCode>sample string 6</CompanyCode>
<DivisionCode>sample string 5</DivisionCode>
<AutoAddNewHires>true</AutoAddNewHires>
<Code>sample string 1</Code>
<DefaultRate>3</DefaultRate>
<Description>sample string 2</Description>
<RateCodeRules>
<DivisionRateCodeRuleSubImportDTO>
<CostCenter1Code>sample string 3</CostCenter1Code>
<CostCenter2Code>sample string 4</CostCenter2Code>
<CostCenter3Code>sample string 5</CostCenter3Code>
<CostCenter4Code>sample string 6</CostCenter4Code>
<CostCenter5Code>sample string 7</CostCenter5Code>
<JobCode>sample string 2</JobCode>
<LOSNumber>8</LOSNumber>
<LOSType>Days</LOSType>
<Rate>1</Rate>
<Sequence>9</Sequence>
<StartDate xmlns:d5p1="http://schemas.datacontract.org/2004/07/EntireOne.Shared.Dates">
<d5p1:Year>1</d5p1:Year>
<d5p1:Month>2</d5p1:Month>
<d5p1:Day>3</d5p1:Day>
</StartDate>
</DivisionRateCodeRuleSubImportDTO>
<DivisionRateCodeRuleSubImportDTO>
<CostCenter1Code>sample string 3</CostCenter1Code>
<CostCenter2Code>sample string 4</CostCenter2Code>
<CostCenter3Code>sample string 5</CostCenter3Code>
<CostCenter4Code>sample string 6</CostCenter4Code>
<CostCenter5Code>sample string 7</CostCenter5Code>
<JobCode>sample string 2</JobCode>
<LOSNumber>8</LOSNumber>
<LOSType>Days</LOSType>
<Rate>1</Rate>
<Sequence>9</Sequence>
<StartDate xmlns:d5p1="http://schemas.datacontract.org/2004/07/EntireOne.Shared.Dates">
<d5p1:Year>1</d5p1:Year>
<d5p1:Month>2</d5p1:Month>
<d5p1:Day>3</d5p1:Day>
</StartDate>
</DivisionRateCodeRuleSubImportDTO>
</RateCodeRules>
</DivisionRateCodeImportDTO>
</ArrayOfDivisionRateCodeImportDTO>
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
Sample:
{
"newRecords": 1,
"updatedRecords": 2,
"errors": [
{
"index": 1,
"details": [
{
"propertyName": "sample string 1",
"arrayIndex": 1,
"errorMessages": [
"sample string 1",
"sample string 2"
]
},
{
"propertyName": "sample string 1",
"arrayIndex": 1,
"errorMessages": [
"sample string 1",
"sample string 2"
]
}
]
},
{
"index": 1,
"details": [
{
"propertyName": "sample string 1",
"arrayIndex": 1,
"errorMessages": [
"sample string 1",
"sample string 2"
]
},
{
"propertyName": "sample string 1",
"arrayIndex": 1,
"errorMessages": [
"sample string 1",
"sample string 2"
]
}
]
}
],
"newRecordKeys": [
{
"index": 1,
"key": "sample string 2"
},
{
"index": 1,
"key": "sample string 2"
}
],
"updatedRecordKeys": [
{
"index": 1,
"key": "sample string 2"
},
{
"index": 1,
"key": "sample string 2"
}
],
"importKey": "<empty>"
}
text/xml
Sample:
<ImportResultDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BDBPayroll.Integration.Data.Models">
<Errors>
<ImportErrorDTO>
<Details>
<ImportErrorDetailsDTO>
<ArrayIndex>1</ArrayIndex>
<ErrorMessages xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>sample string 1</d6p1:string>
<d6p1:string>sample string 2</d6p1:string>
</ErrorMessages>
<PropertyName>sample string 1</PropertyName>
</ImportErrorDetailsDTO>
<ImportErrorDetailsDTO>
<ArrayIndex>1</ArrayIndex>
<ErrorMessages xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>sample string 1</d6p1:string>
<d6p1:string>sample string 2</d6p1:string>
</ErrorMessages>
<PropertyName>sample string 1</PropertyName>
</ImportErrorDetailsDTO>
</Details>
<Index>1</Index>
</ImportErrorDTO>
<ImportErrorDTO>
<Details>
<ImportErrorDetailsDTO>
<ArrayIndex>1</ArrayIndex>
<ErrorMessages xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>sample string 1</d6p1:string>
<d6p1:string>sample string 2</d6p1:string>
</ErrorMessages>
<PropertyName>sample string 1</PropertyName>
</ImportErrorDetailsDTO>
<ImportErrorDetailsDTO>
<ArrayIndex>1</ArrayIndex>
<ErrorMessages xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>sample string 1</d6p1:string>
<d6p1:string>sample string 2</d6p1:string>
</ErrorMessages>
<PropertyName>sample string 1</PropertyName>
</ImportErrorDetailsDTO>
</Details>
<Index>1</Index>
</ImportErrorDTO>
</Errors>
<ImportKey xmlns:d2p1="http://schemas.datacontract.org/2004/07/BDBPayroll.Services.Data.Shared.Keys">
<d2p1:_entityKey>
<d2p1:_hasValue>false</d2p1:_hasValue>
<d2p1:_value>00000000-0000-0000-0000-000000000000</d2p1:_value>
</d2p1:_entityKey>
</ImportKey>
<NewRecordKeys>
<ImportKeyDTO>
<Index>1</Index>
<Key>sample string 2</Key>
</ImportKeyDTO>
<ImportKeyDTO>
<Index>1</Index>
<Key>sample string 2</Key>
</ImportKeyDTO>
</NewRecordKeys>
<NewRecords>1</NewRecords>
<UpdatedRecordKeys>
<ImportKeyDTO>
<Index>1</Index>
<Key>sample string 2</Key>
</ImportKeyDTO>
<ImportKeyDTO>
<Index>1</Index>
<Key>sample string 2</Key>
</ImportKeyDTO>
</UpdatedRecordKeys>
<UpdatedRecords>2</UpdatedRecords>
</ImportResultDTO>