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": "31282825-f5f9-4920-a1c4-c4de83b76727",
"IdentificationsType": 1,
"IdIdentificationsTypeModel": "d8c92fc5-9db9-4c24-8daa-0a33d20333b8",
"IdProgram": "21ad8278-9b4a-4e6c-96cc-cb15a065c794",
"IdLoyaltyProgram": "1b7bba95-99ac-4420-aad2-ebadc2bbc612",
"IdHologramTypeModel": "57788a84-e4b3-4070-a1a2-98f43ff77983",
"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": "92ce1739-67bf-4934-80f9-a645e60dfe9c",
"IdState": "8918ee35-ea5f-4895-a295-d7094fdf0281",
"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": "857bd099-7761-4786-8b8b-5ef68d921f3d",
"CompanyId": "fa83bf81-e2dc-485a-8836-ce7531004eef",
"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>92ce1739-67bf-4934-80f9-a645e60dfe9c</IdCountry>
<IdState>8918ee35-ea5f-4895-a295-d7094fdf0281</IdState>
<Street1>sample string 1</Street1>
<Street2>sample string 2</Street2>
<ZipCode>sample string 3</ZipCode>
</Address>
<CompanyId>fa83bf81-e2dc-485a-8836-ce7531004eef</CompanyId>
<Culture>sample string 2</Culture>
<File>QEA=</File>
<IdCompanyContract>31282825-f5f9-4920-a1c4-c4de83b76727</IdCompanyContract>
<IdHologramTypeModel>57788a84-e4b3-4070-a1a2-98f43ff77983</IdHologramTypeModel>
<IdIdentificationsTypeModel>d8c92fc5-9db9-4c24-8daa-0a33d20333b8</IdIdentificationsTypeModel>
<IdLoyaltyProgram>1b7bba95-99ac-4420-aad2-ebadc2bbc612</IdLoyaltyProgram>
<IdProgram>21ad8278-9b4a-4e6c-96cc-cb15a065c794</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>857bd099-7761-4786-8b8b-5ef68d921f3d</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": "7b6c914f-88cc-4afe-a19d-293e6f37879d",
"IdentificationsType": 1,
"IdIdentificationsTypeModel": "404f4cfb-f392-44b7-9992-8117279b46a4",
"IdProgram": "7e50b4c1-aaac-4ba5-bad7-659247e082bc",
"IdLoyaltyProgram": "e391a54b-e267-44d5-856f-1ae23a6af4b7",
"IdHologramTypeModel": "e77daf08-7a4c-47d3-a9c7-ea4090f1d1bb",
"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": "f1b1bd85-c24c-41d9-93ee-26f222c32932",
"IdState": "7f89c67b-483e-410a-9fb2-dc23d45ce260",
"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": "36ce53f1-8a68-419c-8927-b5436760ffd2",
"CompanyId": "92f86646-0643-4639-84b8-4688860940ca",
"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>f1b1bd85-c24c-41d9-93ee-26f222c32932</IdCountry>
<IdState>7f89c67b-483e-410a-9fb2-dc23d45ce260</IdState>
<Street1>sample string 1</Street1>
<Street2>sample string 2</Street2>
<ZipCode>sample string 3</ZipCode>
</Address>
<CompanyId>92f86646-0643-4639-84b8-4688860940ca</CompanyId>
<Culture>sample string 2</Culture>
<File>QEA=</File>
<IdCompanyContract>7b6c914f-88cc-4afe-a19d-293e6f37879d</IdCompanyContract>
<IdHologramTypeModel>e77daf08-7a4c-47d3-a9c7-ea4090f1d1bb</IdHologramTypeModel>
<IdIdentificationsTypeModel>404f4cfb-f392-44b7-9992-8117279b46a4</IdIdentificationsTypeModel>
<IdLoyaltyProgram>e391a54b-e267-44d5-856f-1ae23a6af4b7</IdLoyaltyProgram>
<IdProgram>7e50b4c1-aaac-4ba5-bad7-659247e082bc</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>36ce53f1-8a68-419c-8927-b5436760ffd2</NetworkId>
</ImportVehiclesDto>