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": "329fe5de-f284-4746-83bd-c67295d9e955", "IdentificationsType": 1, "IdIdentificationsTypeModel": "4f2c5fa0-bd1a-48eb-bd86-b082404e7726", "IdProgram": "42f72e15-55bd-4873-b4a7-99473aae33b8", "IdLoyaltyProgram": "c21f19ff-a8f6-46e7-9463-417020b3fe80", "IdHologramTypeModel": "37a6b81e-3868-4294-949a-ea88fcd68d65", "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": "eac6f989-7828-40e5-9692-15609725325e", "IdState": "4a6c539c-2ea2-42fe-a84b-eb8ca41a50a5", "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>eac6f989-7828-40e5-9692-15609725325e</IdCountry> <IdState>4a6c539c-2ea2-42fe-a84b-eb8ca41a50a5</IdState> <Street1>sample string 1</Street1> <Street2>sample string 2</Street2> <ZipCode>sample string 3</ZipCode> </Address> <File>QEA=</File> <IdCompanyContract>329fe5de-f284-4746-83bd-c67295d9e955</IdCompanyContract> <IdHologramTypeModel>37a6b81e-3868-4294-949a-ea88fcd68d65</IdHologramTypeModel> <IdIdentificationsTypeModel>4f2c5fa0-bd1a-48eb-bd86-b082404e7726</IdIdentificationsTypeModel> <IdLoyaltyProgram>c21f19ff-a8f6-46e7-9463-417020b3fe80</IdLoyaltyProgram> <IdProgram>42f72e15-55bd-4873-b4a7-99473aae33b8</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": "45015ac7-3a68-4821-b2ae-c172d879cde8", "IdentificationsType": 1, "IdIdentificationsTypeModel": "22e8871a-16a7-4ec6-8eb4-db2a46ea4d78", "IdProgram": "f149f2de-5257-4049-ac6c-d742bd61547a", "IdLoyaltyProgram": "4d91e12c-cfcd-4d38-9a7c-cc6315a49fc0", "IdHologramTypeModel": "acea8e21-0e72-4044-8f84-eeb181d76c16", "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": "41f99ade-19fa-4b3f-90b7-507ad5a4af2b", "IdState": "cee1d8de-44ef-402f-bc1b-112c59a898e9", "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>41f99ade-19fa-4b3f-90b7-507ad5a4af2b</IdCountry> <IdState>cee1d8de-44ef-402f-bc1b-112c59a898e9</IdState> <Street1>sample string 1</Street1> <Street2>sample string 2</Street2> <ZipCode>sample string 3</ZipCode> </Address> <File>QEA=</File> <IdCompanyContract>45015ac7-3a68-4821-b2ae-c172d879cde8</IdCompanyContract> <IdHologramTypeModel>acea8e21-0e72-4044-8f84-eeb181d76c16</IdHologramTypeModel> <IdIdentificationsTypeModel>22e8871a-16a7-4ec6-8eb4-db2a46ea4d78</IdIdentificationsTypeModel> <IdLoyaltyProgram>4d91e12c-cfcd-4d38-9a7c-cc6315a49fc0</IdLoyaltyProgram> <IdProgram>f149f2de-5257-4049-ac6c-d742bd61547a</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>