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": "eb7f0322-d9c2-4f59-bbb4-f3cc17ac3c01",
"IdentificationsType": 1,
"IdIdentificationsTypeModel": "a775b778-0bf4-4681-8d64-f6ec8cc49806",
"IdProgram": "e45379fe-f367-468e-a622-69c701bdefeb",
"IdLoyaltyProgram": "e97846ec-3653-424b-b441-0e6ae4bf48fc",
"IdHologramTypeModel": "a98c7e29-ba60-4908-b8e2-6b992401d665",
"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": "06a17e21-effc-490f-9bfb-1edca56abc90",
"IdState": "9410c35f-a714-46bf-9d3a-568127b9d90b",
"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": "f86a1ff2-2915-4990-801c-eea427034f76",
"CompanyId": "20fa71d9-78df-4b9b-9f90-df4700c2300c",
"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>06a17e21-effc-490f-9bfb-1edca56abc90</IdCountry>
<IdState>9410c35f-a714-46bf-9d3a-568127b9d90b</IdState>
<Street1>sample string 1</Street1>
<Street2>sample string 2</Street2>
<ZipCode>sample string 3</ZipCode>
</Address>
<CompanyId>20fa71d9-78df-4b9b-9f90-df4700c2300c</CompanyId>
<Culture>sample string 2</Culture>
<File>QEA=</File>
<IdCompanyContract>eb7f0322-d9c2-4f59-bbb4-f3cc17ac3c01</IdCompanyContract>
<IdHologramTypeModel>a98c7e29-ba60-4908-b8e2-6b992401d665</IdHologramTypeModel>
<IdIdentificationsTypeModel>a775b778-0bf4-4681-8d64-f6ec8cc49806</IdIdentificationsTypeModel>
<IdLoyaltyProgram>e97846ec-3653-424b-b441-0e6ae4bf48fc</IdLoyaltyProgram>
<IdProgram>e45379fe-f367-468e-a622-69c701bdefeb</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>f86a1ff2-2915-4990-801c-eea427034f76</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": "ba4cc85a-c882-4689-93fd-f889a755bdef",
"IdentificationsType": 1,
"IdIdentificationsTypeModel": "ca5db5d9-4ef2-4d57-8e03-a456011f5410",
"IdProgram": "384de93e-5c22-40a2-8193-d3d0a0da8b99",
"IdLoyaltyProgram": "d6f46129-f337-427d-a895-c2d217079633",
"IdHologramTypeModel": "b86873f1-34e9-472c-bbf4-3be6211825ee",
"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": "b0a29a67-bb22-47ac-bd14-beb1151c3cee",
"IdState": "29e0b56e-93ad-4faa-a645-28da93c55b4b",
"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": "da6f0d32-a85a-45c9-8838-82488a0bdd7c",
"CompanyId": "d54c088b-5247-4032-9c9b-3f730fe5971b",
"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>b0a29a67-bb22-47ac-bd14-beb1151c3cee</IdCountry>
<IdState>29e0b56e-93ad-4faa-a645-28da93c55b4b</IdState>
<Street1>sample string 1</Street1>
<Street2>sample string 2</Street2>
<ZipCode>sample string 3</ZipCode>
</Address>
<CompanyId>d54c088b-5247-4032-9c9b-3f730fe5971b</CompanyId>
<Culture>sample string 2</Culture>
<File>QEA=</File>
<IdCompanyContract>ba4cc85a-c882-4689-93fd-f889a755bdef</IdCompanyContract>
<IdHologramTypeModel>b86873f1-34e9-472c-bbf4-3be6211825ee</IdHologramTypeModel>
<IdIdentificationsTypeModel>ca5db5d9-4ef2-4d57-8e03-a456011f5410</IdIdentificationsTypeModel>
<IdLoyaltyProgram>d6f46129-f337-427d-a895-c2d217079633</IdLoyaltyProgram>
<IdProgram>384de93e-5c22-40a2-8193-d3d0a0da8b99</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>da6f0d32-a85a-45c9-8838-82488a0bdd7c</NetworkId>
</ImportVehiclesDto>