POST ImportDrivers
Creates drivers using an uploaded Excel file.
Request Information
URI Parameters
None.
Body Parameters
The data of the drivers.
ImportDriversDtoName | 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. |
Request Formats
application/json, text/json
Sample:
{ "File": "QEA=", "NeedIdentification": true, "IdCompanyContract": "976fe91e-8b3c-4cd8-b333-6b1dfe70c782", "IdentificationsType": 1, "IdIdentificationsTypeModel": "1418088a-6e4c-49e5-bb3c-6b7ee765d47b", "IdProgram": "5ef4543d-e176-4c07-9225-7914c1ba9c74", "IdLoyaltyProgram": "68446071-3fd8-4816-9577-9b27c66e622e", "IdHologramTypeModel": "30c07a72-1e53-43f8-851f-077c65fa50d1", "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": "f73eece8-00e7-4229-8c80-6e5329577caa", "IdState": "fb4cefc6-1f37-402c-abfd-60f8ca87496b", "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", "identificationMessageResult": "Identifier request created. Order Number: sample string 3" } }
application/xml, text/xml
Sample:
<ImportDriversDto 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>f73eece8-00e7-4229-8c80-6e5329577caa</IdCountry> <IdState>fb4cefc6-1f37-402c-abfd-60f8ca87496b</IdState> <Street1>sample string 1</Street1> <Street2>sample string 2</Street2> <ZipCode>sample string 3</ZipCode> </Address> <File>QEA=</File> <IdCompanyContract>976fe91e-8b3c-4cd8-b333-6b1dfe70c782</IdCompanyContract> <IdHologramTypeModel>30c07a72-1e53-43f8-851f-077c65fa50d1</IdHologramTypeModel> <IdIdentificationsTypeModel>1418088a-6e4c-49e5-bb3c-6b7ee765d47b</IdIdentificationsTypeModel> <IdLoyaltyProgram>68446071-3fd8-4816-9577-9b27c66e622e</IdLoyaltyProgram> <IdProgram>5ef4543d-e176-4c07-9225-7914c1ba9c74</IdProgram> <IdentificationsType>1</IdentificationsType> <ImportResult> <IdentificationResult>true</IdentificationResult> <correctProcessedQuantity>1</correctProcessedQuantity> <errorProcessedQuantity>2</errorProcessedQuantity> <identificationErrorText>sample string 4</identificationErrorText> <identificationOrderNumber>sample string 3</identificationOrderNumber> <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> </ImportDriversDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Object of ImportDto class.
ImportDriversDtoName | 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. |
Response Formats
application/json, text/json
Sample:
{ "File": "QEA=", "NeedIdentification": true, "IdCompanyContract": "023d4906-b52b-4305-a3b3-a44524e4cc29", "IdentificationsType": 1, "IdIdentificationsTypeModel": "bc5a512a-75a2-4525-903c-10892cce1f42", "IdProgram": "041f2696-b15d-4941-8366-b0062152fc1d", "IdLoyaltyProgram": "77a8ab4c-a090-4ccd-b7b4-b113b1640bde", "IdHologramTypeModel": "1757196d-9e9c-4c06-9fe0-a5cd737844c4", "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": "d8b02cde-96a7-457e-902b-85516b345e78", "IdState": "e8f02d1e-f614-45c0-9a80-cda4fa9eae81", "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", "identificationMessageResult": "Identifier request created. Order Number: sample string 3" } }
application/xml, text/xml
Sample:
<ImportDriversDto 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>d8b02cde-96a7-457e-902b-85516b345e78</IdCountry> <IdState>e8f02d1e-f614-45c0-9a80-cda4fa9eae81</IdState> <Street1>sample string 1</Street1> <Street2>sample string 2</Street2> <ZipCode>sample string 3</ZipCode> </Address> <File>QEA=</File> <IdCompanyContract>023d4906-b52b-4305-a3b3-a44524e4cc29</IdCompanyContract> <IdHologramTypeModel>1757196d-9e9c-4c06-9fe0-a5cd737844c4</IdHologramTypeModel> <IdIdentificationsTypeModel>bc5a512a-75a2-4525-903c-10892cce1f42</IdIdentificationsTypeModel> <IdLoyaltyProgram>77a8ab4c-a090-4ccd-b7b4-b113b1640bde</IdLoyaltyProgram> <IdProgram>041f2696-b15d-4941-8366-b0062152fc1d</IdProgram> <IdentificationsType>1</IdentificationsType> <ImportResult> <IdentificationResult>true</IdentificationResult> <correctProcessedQuantity>1</correctProcessedQuantity> <errorProcessedQuantity>2</errorProcessedQuantity> <identificationErrorText>sample string 4</identificationErrorText> <identificationOrderNumber>sample string 3</identificationOrderNumber> <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> </ImportDriversDto>