POST v1/imports/company-tax-codes?action={action}&allowSameFile={allowSameFile}
Import Company Tax Codes
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| action |
The import action. |
ImportAction |
Default value is Merge |
| 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 CompanyTaxCodeImportDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| TaxCode | string |
Required |
|
| StartDate | date |
Required |
|
| TaxRate | decimal number |
Required |
|
| CompanyCode | string |
Required |
Request Formats
application/json, text/json
Sample:
[
{
"taxCode": "sample string 1",
"startDate": "0001-02-03",
"taxRate": 2.0,
"companyCode": "sample string 3"
},
{
"taxCode": "sample string 1",
"startDate": "0001-02-03",
"taxRate": 2.0,
"companyCode": "sample string 3"
}
]
text/xml
Sample:
<ArrayOfCompanyTaxCodeImportDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BDBPayroll.Integration.ServiceContracts.Data.Models">
<CompanyTaxCodeImportDTO>
<CompanyCode>sample string 3</CompanyCode>
<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>
<TaxCode>sample string 1</TaxCode>
<TaxRate>2</TaxRate>
</CompanyTaxCodeImportDTO>
<CompanyTaxCodeImportDTO>
<CompanyCode>sample string 3</CompanyCode>
<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>
<TaxCode>sample string 1</TaxCode>
<TaxRate>2</TaxRate>
</CompanyTaxCodeImportDTO>
</ArrayOfCompanyTaxCodeImportDTO>
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.