POST ImportVehicles
Creates vehicles using an uploaded Excel file.
Request Information
URI Parameters
None.
Body Parameters
The data of the vehicles.
ImportVehiclesDto| Name | Description | Type | Additional information |
|---|---|---|---|
| File | Collection of byte |
None. |
|
| NeedIdentification | boolean |
None. |
|
| IdCompanyContract | globally unique identifier |
None. |
|
| IdentificationsType | integer |
None. |
|
| IdIdentificationsTypeModel | globally unique identifier |
None. |
|
| IdProgram | globally unique identifier |
None. |
|
| IdLoyaltyProgram | globally unique identifier |
None. |
|
| IdHologramTypeModel | globally unique identifier |
None. |
|
| Address | ImportDocumentParameterAddressDto |
None. |
|
| ImportResult | ImportDto |
None. |
|
| NetworkId | globally unique identifier |
None. |
|
| CompanyId | globally unique identifier |
None. |
|
| Culture | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"File": "QEA=",
"NeedIdentification": true,
"IdCompanyContract": "daf8f0b3-b2bd-44ca-949e-c52dbd32cc5a",
"IdentificationsType": 1,
"IdIdentificationsTypeModel": "4679db19-f830-4980-8751-837b58cc043d",
"IdProgram": "a5556c96-fd56-4cdc-b632-61b52613223d",
"IdLoyaltyProgram": "8743981a-2090-46ab-9651-8e245bbb6609",
"IdHologramTypeModel": "b6d4784c-65c1-45f7-98a0-623406059119",
"Address": {
"Street1": "sample string 1",
"Street2": "sample string 2",
"ZipCode": "sample string 3",
"City": "sample string 4",
"ContactName": "sample string 5",
"ContactPhone": "sample string 6",
"IdCountry": "f2f8884a-e310-4a9b-9444-253ff5775751",
"IdState": "53fc503d-b52a-4ec5-a5f1-e8f7bd884d2e",
"DeliveryAddressIsLocation": true
},
"ImportResult": {
"listItemError": [
{
"row": 1,
"errorList": [
"sample string 1",
"sample string 2"
]
},
{
"row": 1,
"errorList": [
"sample string 1",
"sample string 2"
]
}
],
"correctProcessedQuantity": 1,
"errorProcessedQuantity": 2,
"totalProcessedQuantity": 3,
"withErrors": true,
"successfullyImportedTotal": "Successfully Imported Total 1",
"failedToBeImportedTotal": "Failed To Be imported Total 2",
"successfullyUpdatedTotal": "Total Successfully Updated: 1",
"failedToBeUpdatedTotal": "Total Not Updated: 2",
"totalProcessed": "Total processed: 3",
"needIdentification": true,
"IdentificationResult": true,
"identificationOrderNumber": "sample string 3",
"identificationErrorText": "sample string 4",
"identificationSuccessQuantity": 5,
"identificationErrorQuantity": 6,
"identificationMessageResult": "Identifier request created. Order Number: sample string 3"
},
"NetworkId": "555a06da-00ca-43a4-9c78-71711979160c",
"CompanyId": "7fa1e8e5-0bbe-4c76-b62c-2257fddacaa7",
"Culture": "sample string 2"
}
application/xml, text/xml
Sample:
<ImportVehiclesDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ationet.Model">
<Address>
<City>sample string 4</City>
<ContactName>sample string 5</ContactName>
<ContactPhone>sample string 6</ContactPhone>
<DeliveryAddressIsLocation>true</DeliveryAddressIsLocation>
<IdCountry>f2f8884a-e310-4a9b-9444-253ff5775751</IdCountry>
<IdState>53fc503d-b52a-4ec5-a5f1-e8f7bd884d2e</IdState>
<Street1>sample string 1</Street1>
<Street2>sample string 2</Street2>
<ZipCode>sample string 3</ZipCode>
</Address>
<CompanyId>7fa1e8e5-0bbe-4c76-b62c-2257fddacaa7</CompanyId>
<Culture>sample string 2</Culture>
<File>QEA=</File>
<IdCompanyContract>daf8f0b3-b2bd-44ca-949e-c52dbd32cc5a</IdCompanyContract>
<IdHologramTypeModel>b6d4784c-65c1-45f7-98a0-623406059119</IdHologramTypeModel>
<IdIdentificationsTypeModel>4679db19-f830-4980-8751-837b58cc043d</IdIdentificationsTypeModel>
<IdLoyaltyProgram>8743981a-2090-46ab-9651-8e245bbb6609</IdLoyaltyProgram>
<IdProgram>a5556c96-fd56-4cdc-b632-61b52613223d</IdProgram>
<IdentificationsType>1</IdentificationsType>
<ImportResult>
<IdentificationResult>true</IdentificationResult>
<correctProcessedQuantity>1</correctProcessedQuantity>
<errorProcessedQuantity>2</errorProcessedQuantity>
<identificationErrorQuantity>6</identificationErrorQuantity>
<identificationErrorText>sample string 4</identificationErrorText>
<identificationOrderNumber>sample string 3</identificationOrderNumber>
<identificationSuccessQuantity>5</identificationSuccessQuantity>
<listItemError>
<ImportItemDto>
<errorList xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>sample string 1</d5p1:string>
<d5p1:string>sample string 2</d5p1:string>
</errorList>
<row>1</row>
</ImportItemDto>
<ImportItemDto>
<errorList xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>sample string 1</d5p1:string>
<d5p1:string>sample string 2</d5p1:string>
</errorList>
<row>1</row>
</ImportItemDto>
</listItemError>
<needIdentification>true</needIdentification>
<totalProcessedQuantity>3</totalProcessedQuantity>
</ImportResult>
<NeedIdentification>true</NeedIdentification>
<NetworkId>555a06da-00ca-43a4-9c78-71711979160c</NetworkId>
</ImportVehiclesDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Object of ImportDto class.
ImportVehiclesDto| Name | Description | Type | Additional information |
|---|---|---|---|
| File | Collection of byte |
None. |
|
| NeedIdentification | boolean |
None. |
|
| IdCompanyContract | globally unique identifier |
None. |
|
| IdentificationsType | integer |
None. |
|
| IdIdentificationsTypeModel | globally unique identifier |
None. |
|
| IdProgram | globally unique identifier |
None. |
|
| IdLoyaltyProgram | globally unique identifier |
None. |
|
| IdHologramTypeModel | globally unique identifier |
None. |
|
| Address | ImportDocumentParameterAddressDto |
None. |
|
| ImportResult | ImportDto |
None. |
|
| NetworkId | globally unique identifier |
None. |
|
| CompanyId | globally unique identifier |
None. |
|
| Culture | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"File": "QEA=",
"NeedIdentification": true,
"IdCompanyContract": "bf146555-422f-4895-9094-24d2d4dd95bc",
"IdentificationsType": 1,
"IdIdentificationsTypeModel": "f5488ebd-bf69-44b8-84f5-7ba997f8c52b",
"IdProgram": "2813514e-59ba-4e86-880c-1b93c830bf57",
"IdLoyaltyProgram": "6fc8bfb6-c353-4e94-9093-f35ee0944bc3",
"IdHologramTypeModel": "cff924f7-7b21-4f17-9a23-ad87d964a0e8",
"Address": {
"Street1": "sample string 1",
"Street2": "sample string 2",
"ZipCode": "sample string 3",
"City": "sample string 4",
"ContactName": "sample string 5",
"ContactPhone": "sample string 6",
"IdCountry": "a5a7ed67-d063-4986-9c31-330af6a6d5b2",
"IdState": "7632eb44-aa02-4d2d-a891-1b7edc1c833f",
"DeliveryAddressIsLocation": true
},
"ImportResult": {
"listItemError": [
{
"row": 1,
"errorList": [
"sample string 1",
"sample string 2"
]
},
{
"row": 1,
"errorList": [
"sample string 1",
"sample string 2"
]
}
],
"correctProcessedQuantity": 1,
"errorProcessedQuantity": 2,
"totalProcessedQuantity": 3,
"withErrors": true,
"successfullyImportedTotal": "Successfully Imported Total 1",
"failedToBeImportedTotal": "Failed To Be imported Total 2",
"successfullyUpdatedTotal": "Total Successfully Updated: 1",
"failedToBeUpdatedTotal": "Total Not Updated: 2",
"totalProcessed": "Total processed: 3",
"needIdentification": true,
"IdentificationResult": true,
"identificationOrderNumber": "sample string 3",
"identificationErrorText": "sample string 4",
"identificationSuccessQuantity": 5,
"identificationErrorQuantity": 6,
"identificationMessageResult": "Identifier request created. Order Number: sample string 3"
},
"NetworkId": "0205f81a-ac01-4a36-aa08-3b405d541d3b",
"CompanyId": "9b264744-d652-4dab-99cf-b79cdcd5c82b",
"Culture": "sample string 2"
}
application/xml, text/xml
Sample:
<ImportVehiclesDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ationet.Model">
<Address>
<City>sample string 4</City>
<ContactName>sample string 5</ContactName>
<ContactPhone>sample string 6</ContactPhone>
<DeliveryAddressIsLocation>true</DeliveryAddressIsLocation>
<IdCountry>a5a7ed67-d063-4986-9c31-330af6a6d5b2</IdCountry>
<IdState>7632eb44-aa02-4d2d-a891-1b7edc1c833f</IdState>
<Street1>sample string 1</Street1>
<Street2>sample string 2</Street2>
<ZipCode>sample string 3</ZipCode>
</Address>
<CompanyId>9b264744-d652-4dab-99cf-b79cdcd5c82b</CompanyId>
<Culture>sample string 2</Culture>
<File>QEA=</File>
<IdCompanyContract>bf146555-422f-4895-9094-24d2d4dd95bc</IdCompanyContract>
<IdHologramTypeModel>cff924f7-7b21-4f17-9a23-ad87d964a0e8</IdHologramTypeModel>
<IdIdentificationsTypeModel>f5488ebd-bf69-44b8-84f5-7ba997f8c52b</IdIdentificationsTypeModel>
<IdLoyaltyProgram>6fc8bfb6-c353-4e94-9093-f35ee0944bc3</IdLoyaltyProgram>
<IdProgram>2813514e-59ba-4e86-880c-1b93c830bf57</IdProgram>
<IdentificationsType>1</IdentificationsType>
<ImportResult>
<IdentificationResult>true</IdentificationResult>
<correctProcessedQuantity>1</correctProcessedQuantity>
<errorProcessedQuantity>2</errorProcessedQuantity>
<identificationErrorQuantity>6</identificationErrorQuantity>
<identificationErrorText>sample string 4</identificationErrorText>
<identificationOrderNumber>sample string 3</identificationOrderNumber>
<identificationSuccessQuantity>5</identificationSuccessQuantity>
<listItemError>
<ImportItemDto>
<errorList xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>sample string 1</d5p1:string>
<d5p1:string>sample string 2</d5p1:string>
</errorList>
<row>1</row>
</ImportItemDto>
<ImportItemDto>
<errorList xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>sample string 1</d5p1:string>
<d5p1:string>sample string 2</d5p1:string>
</errorList>
<row>1</row>
</ImportItemDto>
</listItemError>
<needIdentification>true</needIdentification>
<totalProcessedQuantity>3</totalProcessedQuantity>
</ImportResult>
<NeedIdentification>true</NeedIdentification>
<NetworkId>0205f81a-ac01-4a36-aa08-3b405d541d3b</NetworkId>
</ImportVehiclesDto>