Quote & Lease Operations API: Qq Lease getQuote
API endpoints for quote (Qt_*) and lease (Qq_*) operations and fleet reports
Qq Lease getQuote
Warning: This web service has been deprecated and is no longer supported by Catch-e.
You must use getQuickQuoteWebService instead.
Does a full quote calculation for a salary packaged novated vehicle lease with ecm, and returns individually requested fields or all fields if none are requested.
How it works
The gbcontrol) qq.clientcodedefault stores the default Client Code used when calculating the quote if a specific client code is not sent. The generated quote is stored in qtquotes with a status of 'external', The same quote id is used repeatedly for storing the results unless the quote is locked by an existing calculation request.
Where the Client selected has a 'Channel', and that channel has a separate Quote template, the calculations used will be based on the Channel quote template.
Only variants with an active status in qtvariants and qtvariant_profiles are allowed to be selected.
Comprehensive insurance is calculated using the given postcode (or a state specific default postcode) and target rates specific to the vehicle value and default insurer. Where accurate rates are not available, a default monthly rate of 2.5% of the vehicle value is used. Contact Catch-e support to customize your comprehensive insurance settings.
Input Fields
- See Field Names below
** ** approximateprice vs. approximateonroadprice**
Either approximateprice or approximateonroadprice is required
When using approximate_price you are effectively setting the 'List Price' (gross) and building the vehicles pricing from the 'ground up'.
When using approximateonroad_price you are effectively setting the 'Total On Road Price' (gross) aka Drive Away price. The 'List Price' is then calculated using all known price parameters such as discounts, first year registration, luxury car tax (where applicable), purchase stamp duty and optional equipment.
Input URL Example
Example returns all fields;
https://yourname.catch-e.net.au/services/qq/lease/getQuote/?login=######&password=######&variant_id=115637&approximate_price=36355&state_registered=VIC&annual_kilometres=20000&lease_period=36&annual_salary=70000Example returning selected fields;
https://yourname.catch-e.net.au/services/qq/lease/getQuote/?login=######&password=######&variant_id=115637&approximate_price=8000&state_registered=VIC&annual_kilometres=20000&lease_period=70&annual_salary=700000&return_ecm_gross_per_year&return_salary_gross_per_year&return_packaged_tax_payableOutput Fields
- See Field Names below
Output Example
700000.000000000000000
1732.000000
295732.99
Error Codes
| 26 | CATCHEERRORQUOTEVALIDATIONFAILED | There is a data set up issue. This error returns an additional details of the error (see example below). | | CATCHEERRORQUOTEVALIDATIONFAILED Validation failed due to the following error(s): 1. Contract Term(Months) must be between 1 and 60. 2. A valid Insurance Postcode is required!
Hint: If the error returned is 1. Insurance Location is required! - check that the qtinsurerlocationsbypostcode table has the required postcode or state based entries for the default insurer. | | |
| 27 | CATCHEERRORMISSINGFIELDPOSTCODE | Input field missing and gbcontrol postcodebystatedefault not setup |
| 28 | CATCHEERRORNEWUSEDINVALID | Input field invalid. Must be one of new, used or demonstrator |
| 29 | CATCHEERRORODOMETERINVALID | Input field invalid. Must be a numeric value |
| 30 | CATCHEERRORCONTRACTTYPENOTFOUND | Input field invalid. Must be a valid contract type |
| 31 | CATCHEERRORFBTBENEFITTYPEINVALID | Input field invalid. Must be one of statutory, operating or exempt |
| 32 | CATCHEERRORFBTBUSINESSUSEINVALID | Input field invalid. Must be a decimal value |
| 33 | CATCHEERRORFUELFLAGINVALID | Input field invalid. Expected input values are either 'yes' or 'no'. || 34 | CATCHEERRORTYRESFLAGINVALID | Input field invalid. Expected input values are either 'yes' or 'no'. |
| 35 | CATCHEERRORMAINTENANCESERVICEFLAGINVALID | Input field invalid. Expected input values are either 'yes' or 'no'. |
| 36 | CATCHEERRORREGCTPFLAGINVALID | Input field invalid. Expected input values are either 'yes' or 'no'. |
| 37 | CATCHEERRORINSURANCEFLAGINVALID | Input field invalid. Expected input values are either 'yes' or 'no'. || 38 | CATCHEERRORTOOMANYREQUESTS | Rest call requests exceeded the limit set in ). |
| | BLANK SCREEN | A blank screen will be returned if included_flag='no' and = 0. |
Error Output Example
CATCHEERRORMISSINGFIELD_POSTCODE
**Use this query to find vehicles that contain missing parameters that may cause a 'CATCHEERRORQUOTEVALIDATION_FAILED' error. **
SELECT t2.variantprofileid, t2.variantid, t2.maintenanceserviceprofileid, t2.tyreid, t2.tyresperset, t2.tyrekminterval, t2.vehicletypeid, t2.date, t2.deliverymetro, t2.deliverycountry, t2.residualadjustmentrate, t2.insurancetypeid, t2.reliefvehicle
FROM qtvariants AS t1 INNER JOIN qtvariantprofiles AS t2 ON t2.variantid = t1.variantidWHERE (t2.maintenanceserviceprofileid = * OR t2.tyreid = * OR t2.tyrekminterval = * OR t2.vehicletypeid = * OR t2.insurancetypeid = '')AND t1.statusflag = 'active';
Sample Field Names
Note these fields are examples only and may not match those used in your Quote calculations. To see a full list of your available fields run the Input URL without the "return_" parameter and view the xml results.
Qq Lease getQuote Setup
Set-up
Warning: This web service has been deprecated and is no longer supported by Catch-e.
You must use getQuickQuoteWebService instead.
getQuote uses a default client for quotes. The client code is stored in the gbcontrol qq / clientcode_default. Unless changed, this will be WSQ :- Web Services Quotes. Setting up a client with this code will default in various client specific quote values for the calculations. The default client can be changed or a specific client used as a parameter to the web service.
The insurer for the target client will be used for quote calculations. The insurance rates and default state locations must be configured for this insurer. Contact Catch-e support for assistance.
The getQuote web service uses state specific default postcodes for calculating insurance. Regardless of whether insurance is calculated by postcode or whether the insurer rates are used to calculate insurance, the 7 default postcodes (1 per state) need to be entered into the database. Without these records, quote calculation will fail. Contact Catch-e support to have these configured.
The gbcontrol qq / defaultpostingmapid must be set unless a value for contract_type is going to be provided with every web service call. If not, a system error will be sent to Helpdesk.
Qq Vehicle lookup getBodyTypes
Synopsis
Warning: This web service has been deprecated and is no longer supported by Catch-e.
You must use Quotes / Variants APIs instead.
Get a list of bodytypeid / body_type pairs for a given vehicle model and model year. Suitable for use in a list box.
Body Types are linked to Varaiants, and Variants are excluded if they have a status of 'pending'. So if all the Variants for a particular Body Type are at status 'pending', that Body Type will not be returned in the list.
Input Fields
Input URL Example
https://yourname.catch-e.net.au/services/qq/vehicle_lookup/getBodyTypes/?model_id= 100063&model_year=2007Output Fields
Output Example
100006
HATCHBACK
Error Codes
Error output
CATCHEERRORNOBODYTYPESFOUND