CADDownloadedReport

Report for the CAD files downloaded

Introduction

This API provides the report which is related to the CAD files downloaded during a period of time.

API Key

This web service requires an API Key. Please use the form to request your API Key.

Description

The API returns an export file, available in a ZIP file, from TraceParts Analytics. Each CAD file delivered through the TraceParts Publishing Network is returned in the file. The information related to the user is directly displayed in the export file. The information which categorizes the user is available with a second web service.

Building a URL

The CADDownloadedReport API request takes the following form:

https://ws.tracepartsonline.net/tpowebservices/CADDownloadedReport?parameters

Parameters

Certain parameters are required while others are optional. As it is standard in URLs, all parameters are separated using the ampersand (&) character. The list of parameters and their possible values are enumerated below.

Required parameters

Parameter NameData typeDefault valueDescription
ApiKeystringnoneCode calling an API to track and control how the API is used
FormatstringnoneAnswer file type (xml, json or csv)
ExportFormatstringnoneExport file type (xml, json or csv) returned in the zip file
DateStartstringnoneStart date on format DD/MM/YYYY
DateStopstringnoneStop date on format DD/MM/YYYY (day excluded in the date range)

Optional parameters

Parameter NameData typeDefault valueDescription
ActiveJsonLightboolean0Enables the light version when json is the answer file type
FilterCountryISO 3166 2 charactersnoneFilter the export on a list of user country IDs, separated by a semicolon
FilterLanguagestringnoneFilter the export on a LanguageID given by the LanguagesList API
JobIDstringnoneTo use for the calls following the first call, to know the status of the request and to access the path to the export file
httpsboolean0URL returned in the answer will use the https protocol

Example of CADDownloadedReport API

The request below returns the information related to the users who downloaded CAD files from Germany or France in June 2016, as a CSV file.

https://ws.tracepartsonline.net/tpowebservices/CADDownloadedReport?DateStart=01/06/2016&DateStop=01/07/2016&format=json&ExportFormat=csv&FilterCountry=DE;FR&ApiKey={ApiKey}&https=1

CADDownloadedReport responses

CADDownloadedReport responses are returned in the format indicated by the Format parameter within the URL request’s path.

JSON Output

A sample HTTP request is shown below, displaying a report ready to download.

{
"JobId":"123",
"State":"COMPLETE"
"FilePath":"https://ws.tracepartsonline.net/Downloads/CADDownloadedReport/CADDownloadedReport123.zip"
}

XML Output

Same example as above.

<WsCADDownloadedReportResult>
<CADDownloadedListResult>
<WsCADDownloadedResult>
<Jobid>123</Jobid>
<State>COMPLETE</State>
<FilePath>https://ws.tracepartsonline.net/Downloads/CADDownloadedReport/CADDownloadedReport123.zip</FilePath>
</WsCADDownloadedResult>
</CADDownloadedListResult>
</WsCADDownloadedReportResult>

CADDownloadedReport response elements

CADDownloadedReport responses contain three elements:

  • “JobId”: ID of your request as described before in the list of parameters.
  • “State”: “WORKING” when the asynchronous task is running to extract the data. “COMPLETE” when the export is ready and the file is ready to download.
  • “FilePath”: path where the export file is stored and ready to be downloaded.

Content of the report

FieldData typeDescription
UserEmailstringUser’s email address
f_CivilitystringID of the Civility value. Please use the FormsData web service to collect the list of values.
NamestringUser’s last name
FirstNamestringUser’s first name
CompanystringUser’s company
f_CompanySizestringID of the CompanySize value. Please use the FormsData web service to collect the list of values.
f_ActivitystringID of the Activity value. Please use the FormsData web service to collect the list of values.
f_ServicestringID of the Service value. Please use the FormsData web service to collect the list of values.
f_JobstringID of the Job value. Please use the FormsData web service to collect the list of values.
PhonestringUser’s phone number
Address1stringField #1 of the user’s postal address
Address2stringField #2 of the user’s postal address
Address3stringField #3 of the user’s postal address
CitystringUser’s city
ZipCodestringUser’s zip code
f_CountrystringUser’s country following the ISO 3166 standard
f_NAStatestringID of the NAState (state of North America) value. Please use the FormsData web service to collect the list of values.
PartNumberstringPart number of the downloaded CAD file
PartDescriptionstringDescription of the downloaded CAD file
CADFormatstringCADFormatID given by the CADFormatsList API
LanguagestringLanguageID given by the LanguagesList API
DatestringCAD file downloaded date
Statusstring“downloaded” for the CAD file directly saved from the website. “e-mailed” for the CAD file sent by the TraceParts email server. “inserted” for the CAD file directly inserted in the CAD software.
OriginstringID of the website of the TraceParts Publishing Network
CatalogstringCatalogID given by the CatalogsList API
CatalogNamestringLabel of the catalog
PartnersMailsstringThe value is “no” when the user does not consent to receive information by email from TraceParts’s partners

Developer support

Please contact us for any problems, questions or comments related to this web service.

Last updated March 14, 2018