ReportListImportHistory
The ReportListImportHistory method retrieves a collection of import result metrics for the specified list and date range. This method gives users access to the report data available through the application’s Import Summary Report. Users can specify a ListID and date range. The method will return a list of import files and their corresponding import file metrics including their ImportFileID. This ImportFileID can then be used with the ReportImportContactDetail method to get lists of contacts who meet a specific import file result. Import history data is retained for 30 days.
SOAP 1.1 Request
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /v31/IntegrationService.asmx HTTP/1.1 Host: webservices.listrak.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://webservices.listrak.com/v31/ReportListImportHistory" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <WSUser xmlns="http://webservices.listrak.com/v31/"> <UserName>string</UserName> <Password>string</Password> </WSUser> </soap:Header> <soap:Body> <ReportListImportHistory xmlns="http://webservices.listrak.com/v31/"> <ListID>int</ListID> <Page>int</Page> <StartDate>dateTime</StartDate> <EndDate>dateTime</EndDate> <WSException> <SoapMethod>string</SoapMethod> <DateTime>dateTime</DateTime> <Description>string</Description> </WSException> </ReportListImportHistory> </soap:Body> </soap:Envelope>
SOAP 1.1 Response
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ReportListImportHistoryResponse xmlns="http://webservices.listrak.com/v31/"> <ReportListImportHistoryResult> <WSImportHistory> <ImportFileID>int</ImportFileID> <ImportSource>string</ImportSource> <ImportType>string</ImportType> <ProfileImportType>string</ProfileImportType> <FileName>string</FileName> <FileSize>int</FileSize> <StartDate>dateTime</StartDate> <EndDate>dateTime</EndDate> <ProcessedCount>int</ProcessedCount> <InvalidEmailCount>int</InvalidEmailCount> <SubscribedCount>int</SubscribedCount> <UnSubscribedCount>int</UnSubscribedCount> <AlreadySubscribedCount>int</AlreadySubscribedCount> <AlreadyUnsubscribedCount>int</AlreadyUnsubscribedCount> <PreviouslyUnsubscribedCount>int</PreviouslyUnsubscribedCount> <SuppressedCount>int</SuppressedCount> <BannedCount>int</BannedCount> <SkippedCount>int</SkippedCount> </WSImportHistory> <WSImportHistory> <ImportFileID>int</ImportFileID> <ImportSource>string</ImportSource> <ImportType>string</ImportType> <ProfileImportType>string</ProfileImportType> <FileName>string</FileName> <FileSize>int</FileSize> <StartDate>dateTime</StartDate> <EndDate>dateTime</EndDate> <ProcessedCount>int</ProcessedCount> <InvalidEmailCount>int</InvalidEmailCount> <SubscribedCount>int</SubscribedCount> <UnSubscribedCount>int</UnSubscribedCount> <AlreadySubscribedCount>int</AlreadySubscribedCount> <AlreadyUnsubscribedCount>int</AlreadyUnsubscribedCount> <PreviouslyUnsubscribedCount>int</PreviouslyUnsubscribedCount> <SuppressedCount>int</SuppressedCount> <BannedCount>int</BannedCount> <SkippedCount>int</SkippedCount> </WSImportHistory> </ReportListImportHistoryResult> <WSException> <SoapMethod>string</SoapMethod> <DateTime>dateTime</DateTime> <Description>string</Description> </WSException> </ReportListImportHistoryResponse> </soap:Body> </soap:Envelope>
SOAP 1.2 Request
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /v31/IntegrationService.asmx HTTP/1.1 Host: webservices.listrak.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <WSUser xmlns="http://webservices.listrak.com/v31/"> <UserName>string</UserName> <Password>string</Password> </WSUser> </soap12:Header> <soap12:Body> <ReportListImportHistory xmlns="http://webservices.listrak.com/v31/"> <ListID>int</ListID> <Page>int</Page> <StartDate>dateTime</StartDate> <EndDate>dateTime</EndDate> <WSException> <SoapMethod>string</SoapMethod> <DateTime>dateTime</DateTime> <Description>string</Description> </WSException> </ReportListImportHistory> </soap12:Body> </soap12:Envelope>
SOAP 1.2 Response
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <ReportListImportHistoryResponse xmlns="http://webservices.listrak.com/v31/"> <ReportListImportHistoryResult> <WSImportHistory> <ImportFileID>int</ImportFileID> <ImportSource>string</ImportSource> <ImportType>string</ImportType> <ProfileImportType>string</ProfileImportType> <FileName>string</FileName> <FileSize>int</FileSize> <StartDate>dateTime</StartDate> <EndDate>dateTime</EndDate> <ProcessedCount>int</ProcessedCount> <InvalidEmailCount>int</InvalidEmailCount> <SubscribedCount>int</SubscribedCount> <UnSubscribedCount>int</UnSubscribedCount> <AlreadySubscribedCount>int</AlreadySubscribedCount> <AlreadyUnsubscribedCount>int</AlreadyUnsubscribedCount> <PreviouslyUnsubscribedCount>int</PreviouslyUnsubscribedCount> <SuppressedCount>int</SuppressedCount> <BannedCount>int</BannedCount> <SkippedCount>int</SkippedCount> </WSImportHistory> <WSImportHistory> <ImportFileID>int</ImportFileID> <ImportSource>string</ImportSource> <ImportType>string</ImportType> <ProfileImportType>string</ProfileImportType> <FileName>string</FileName> <FileSize>int</FileSize> <StartDate>dateTime</StartDate> <EndDate>dateTime</EndDate> <ProcessedCount>int</ProcessedCount> <InvalidEmailCount>int</InvalidEmailCount> <SubscribedCount>int</SubscribedCount> <UnSubscribedCount>int</UnSubscribedCount> <AlreadySubscribedCount>int</AlreadySubscribedCount> <AlreadyUnsubscribedCount>int</AlreadyUnsubscribedCount> <PreviouslyUnsubscribedCount>int</PreviouslyUnsubscribedCount> <SuppressedCount>int</SuppressedCount> <BannedCount>int</BannedCount> <SkippedCount>int</SkippedCount> </WSImportHistory> </ReportListImportHistoryResult> <WSException> <SoapMethod>string</SoapMethod> <DateTime>dateTime</DateTime> <Description>string</Description> </WSException> </ReportListImportHistoryResponse> </soap12:Body> </soap12:Envelope>