Request a Glass vehicle data import
The import of Glass data generally creates new records and updates existing records where required.
This API will initiate a Glass vehicle data import process. The process is asynchronous. The API will return the associated import_id immediately on success.
This API can support both FTP and SFTP protocol endpoints.
This method requires the VehicleData:ImportGlass permission to be associated with your role.
Audit Records
The import records created and changed in the gb_audit_import file. Reports and queries can be run over this file using the timestamp of each import to identify new records created and existing records updated. Contact Catch-e for the sample queries named:
- Variants created and updated
- Variant residuals updated
- Other tables updated
Validation
The import process will validate the 'NVIC' code for each row in each file. NVIC codes must be 6 characters. If any of the NVIC code fields are not 6 characters long the file will fail. No vehicles will be imported in this instance. Catch-e support will be notified.
Set Up
Clients using Glass data require the following gb_controls to be as follows:
| Module | Name | Value |
|---|---|---|
| gb | data_source_default | s:5:"glass"; |
| gb | quotes_data_source_override | s:5:"glass"; |
Client specific values must be configured for the following gb_controls:
| Module | Name | Notes |
|---|---|---|
| qt | glass_import_photos_flag | |
| qt | glass_sftp_connection | Use if client has SFTP credentials |
| qt | glass_ftp_connection | Use if client has legacy FTP credentials |
If both SFTP and FTP connection controls are specified, the SFTP control will take precedence.
Required files in Glass (monthly) archive
| Key | |
|---|---|
| CVG | Commercial Vehicles up to 10 years old includes 4WDs and vans with a load carrying capacity of less than 3510kg. |
| PVG | Passenger Vehicles up to 10 years old inclusive |
| N12 | Contains only new vehicles and prices released in the current year with NVIC and contains no alphanumeric prices. |
| U12 | Contains all vehicles with second hand prices with no alphanumeric prices and contains NVIC. |
Same rules apply to PVG, HCV and CVG files. OCG AND OLC prefixes are NOT used.
In some circumstances a client's Glass's ftp site may contain both Service 11 and Service 14 data files. The difference is Service 11 files with the file extension .U12 contain used vehicle values, whereas Service 14 files with the file extension .U12 do not.
Where both files are present the Catch-e default is to import Service 11 .U12 data.
| Filename | Inclusion Notes |
|---|---|
| CVG11xxx.N12 | Required if client wants new vehicles and pricing |
| CVG14xxx.N12 | Required if client wants new vehicles and no pricing |
| CVG14xxx.U12 | Required if client wants all vehicles and no pricing |
| CVG73xxx.GRN | CO2 Emission Data Pack |
| CVG78xxx.FUE | Fuel code long description |
| CVG78xxx.STR | Steering code long description |
| CVG83xxx.OCD | Optional equipment |
| CVG86xxx.SPE | Vehicle Specifications e.g. RELEASE, DISCON, DRV, TORQUE, KW etc |
| CVG87xxx.SPE | Vehicle Specifications e.g. VEHICLE SEGMENT, COUNTRY OF, ORIGIN, FUEL H/WAY, FUEL CITY etc |
| CVG89xxx.OPT | Standard equipment |
| CVG93xxx.SUS | Suspension |
| CVG99xxx.BDY | Body code long description |
| CVG99xxx.MAK | qt_makes |
| CVG11xxx.U12 | (Optional) All vehicles and second-hand pricing |
| CVG75xxx.SPE | (Optional) Vehicle Specifications e.g. KW_RPM, NM_RPM, No. OF DOORS, GRD CLEARANCE etc |
For accessing the API a valid token must be passed in all the queries in the 'Authorization' header.
A valid token is generated by the API and returned by the /authenticate method by supplying a valid username and password.
The following syntax must be used in the 'Authorization' header :
Bearer aaaaaa/bbbbbb.ccccccc.dddddd(Optional) User Id to use for audit purposes. This header requires the Audit:UserIdOverride permission to be associated with your role.
5^[1-9]{1}[0-9]*$The timezone value can be given in several formats, none of which are case sensitive:
- As a named time zone, such as 'Europe/Helsinki', 'US/Eastern', or 'MET'.
- As a string indicating an offset from UTC of the form [H]H:MM, prefixed with a + or -, such as '+10:00', '-6:00', or '+05:30'. A leading zero can optionally be used for hours values less than 10;
100^[a-zA-Z0-9\/\:\+\-\_]+$Body
Perform duplicate gb_imports checksum check
yes, no(Optional) File name
If not supplied, value will default to:
%My%eis.zip (monthly) weekly%dmy%.zip (weekly)
Where %My% is dynamically replaced with current Month and Year. For example, Sep20eis.zip.
Response
Success
More in Interfaces / Vehicle Data
PUTTrigger Glass vehicle data import procedurePOSTRequest a JATO vehicle data importGETGet JATO vehicle data import statusPUTTrigger JATO vehicle data import procedureStill need help? Ask the team