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": "45b42e65-4bba-4747-86d6-bd8b261b387d", "IdentificationsType": 1, "IdIdentificationsTypeModel": "d00cb7df-09bd-4c7c-91a2-8869ba774e5a", "IdProgram": "b85f0e3e-8beb-4813-a089-07697ce18179", "IdLoyaltyProgram": "5b0ee93b-d64c-4306-b049-0a46ee2abd4f", "IdHologramTypeModel": "a8f0c437-968a-4ab9-bbc6-36eef3e71ff2", "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": "2d038d0f-da19-4649-a963-d48633349765", "IdState": "c16e0227-d00f-40a0-83cc-1629d3766ec4", "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>2d038d0f-da19-4649-a963-d48633349765</IdCountry> <IdState>c16e0227-d00f-40a0-83cc-1629d3766ec4</IdState> <Street1>sample string 1</Street1> <Street2>sample string 2</Street2> <ZipCode>sample string 3</ZipCode> </Address> <File>QEA=</File> <IdCompanyContract>45b42e65-4bba-4747-86d6-bd8b261b387d</IdCompanyContract> <IdHologramTypeModel>a8f0c437-968a-4ab9-bbc6-36eef3e71ff2</IdHologramTypeModel> <IdIdentificationsTypeModel>d00cb7df-09bd-4c7c-91a2-8869ba774e5a</IdIdentificationsTypeModel> <IdLoyaltyProgram>5b0ee93b-d64c-4306-b049-0a46ee2abd4f</IdLoyaltyProgram> <IdProgram>b85f0e3e-8beb-4813-a089-07697ce18179</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": "e6e3a9da-6588-4180-8bd3-a820fc39b846", "IdentificationsType": 1, "IdIdentificationsTypeModel": "2011d2fb-4823-432d-b896-697eaa3baa43", "IdProgram": "f1d7e7f0-dbff-4d49-9ac6-34e398a862a1", "IdLoyaltyProgram": "55a89f3f-f81f-4421-85a2-266210f642ee", "IdHologramTypeModel": "30adf66e-ab46-4f77-b856-ea869eb4e3c5", "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": "8b060595-7f32-47ab-b9e9-f0ab4d41080a", "IdState": "3583d62c-1ed3-4eef-bc2c-113efb1dc398", "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>8b060595-7f32-47ab-b9e9-f0ab4d41080a</IdCountry> <IdState>3583d62c-1ed3-4eef-bc2c-113efb1dc398</IdState> <Street1>sample string 1</Street1> <Street2>sample string 2</Street2> <ZipCode>sample string 3</ZipCode> </Address> <File>QEA=</File> <IdCompanyContract>e6e3a9da-6588-4180-8bd3-a820fc39b846</IdCompanyContract> <IdHologramTypeModel>30adf66e-ab46-4f77-b856-ea869eb4e3c5</IdHologramTypeModel> <IdIdentificationsTypeModel>2011d2fb-4823-432d-b896-697eaa3baa43</IdIdentificationsTypeModel> <IdLoyaltyProgram>55a89f3f-f81f-4421-85a2-266210f642ee</IdLoyaltyProgram> <IdProgram>f1d7e7f0-dbff-4d49-9ac6-34e398a862a1</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>