GetQuickQuoteWebService
This API allows you to run the legacy web service getQuickQuote, which has been deprecated and is no longer supported by Catch-e.
Supplementary SWAGGER documentation is available here: api.catch-e.com/docs/#/Web%20Services/getQuickQuoteWebService
Setup
Go to Setup / Reference Data and find the gbcontrols "apiwebserviceswrapper_login" control. Populate this control with a 'web_services' user login and password. This user will be used to run the API from within code.
Permissions
To run this API, the nominated 'web-services' role needs to be given permission.
If you are not actively using the API, leave the permission off for better security.
Go to Roles / APIs and check on WebServices.
Authentication
Authenticate with the API before running this API.
HTTP Method
GET
URL
https://api.catch-e.com/web-services/qq/lease/getQuote? Query Parameters
approximate_price vs. approximate_on_road_price
Either approximate_price or approximate_on_road_price is required.
When using approximate_price, you set the List Price (gross) and build vehicle pricing from ground up.
When using approximate_on_road_price, you set the Total On Road Price (gross) aka Drive Away price. List Price is calculated using all known price parameters: discounts, first year registration, luxury car tax, purchase stamp duty, optional equipment.
Input Example
https://api.catch-e.com/web-services/qq/lease/getQuote?variant_id=115637&approximate_price=36355&state_registered=VIC&annual_kilometres=20000&lease_period=36&annual_salary=70000&fields=quote_id,fbt_type_text,contract_type_name Response - 200 OK
{ "quote_id": 100000, "driver_email": "", "quote_date": "10-Mar-2022", "client": "Test Client", "valid_until": "09-Apr-2022" } The request was successful. This is a subset of results.
Response - 401 Unauthorized
{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unauthorized", "status": 401, "detail": "Unauthorized" } You have not authenticated or your token_timeout has passed. Authenticate again.
Response - 403 Forbidden
{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Forbidden", "status": 403, "detail": "Forbidden" } You do not have permissions. Go to System Roles, enter 'web_services', navigate to Roles / APIs and check permissions.
Response - 418 Invalid Credentials
{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Invalid Credentials", "status": 418, "detail": "Web services API wrapper credentials have not been configured" } Web Services setup required. Go to Setup / Reference Data and find apiwebserviceswrapper_login control. Populate with 'web_services' user login and password.
Response - 422 Unprocessable Entity
Missing annual_kilometres:
{ "annual_kilometres": { "isEmpty": "Value is required and can't be empty" } } Missing variant_id:
{ "variant_id": { "isEmpty": "Value is required and can't be empty", "noRecordFound": "No record matching the input was found" } } Quote validation failed:
{ "web_service_error": { "CATCH_E_ERROR_QUOTE_VALIDATION_FAILED": "Validation failed due to the following error(s):1. Vehicle make is required.2. Vehicle model is required.3. Vehicle model year is required.4. Vehicle variant is required." } } Selected variant has payload over allowable limit. Check Contract Types / Details "Quote Payload Maximum". Either remove restriction or limit variants.
422 Error Codes
Response - 424 Failed Dependency
{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Failed Dependency", "status": 424, "detail": "Upstream service temporarily unavailable. Please retry." } API cannot run at this time. Service resource limits exceeded or system in maintenance mode.
GetQuoteEvent
Returns details for a single Quote Event.
Permissions
To run this API, the nominated 'web-services' role needs to be given permission.
If you are not actively using the API, leave the permission off for better security.
Go to Roles / APIs and check on QuoteEvents:Get.
Authentication
Authenticate with the API before running this API.
HTTP Method
GET
URL
https://api.catch-e.com/qt/quote-events/{quote_event_id} Path Variables
Response - 200 OK
{ "quote_event_id": "100096", "quote_id": "132580", "quote_event_code_id": "100001", "event_date": "2022-11-09", "description": "Re-Test#2: Event Code: Notes (API)", "event_amount": 1.02, "quote_event_action_id": "100001", "due_date": "2022-11-11", "completed_flag": "yes", "attachment_id": null, "user_id_edit": "11212", "last_edit": "2022-11-13 23:28:59", "status_flag": "active", "_links": { "self": { "href": "https://api.catch-e.com/qt/quote-events/100096" } }, "_embedded": { "quote_event_code": { "quote_event_code_id": "100001", "quote_event_code": "Notes", "name": "Notes", "description": "Quote Note", "template_id": "0", "status_flag": "active" }, "quote_event_action": { "quote_event_action_id": "100001", "name": "Request Docs" } } } The request was successful.
Response - 401 Unauthorized
{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unauthorized", "status": 401, "detail": "Unauthorized" } You have not authenticated or your token_timeout has passed. Authenticate again.
Response - 403 Forbidden
{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Forbidden", "status": 403, "detail": "Forbidden" } You do not have permissions. Go to System Roles, enter 'web_services', navigate to Roles / APIs and check permissions.
Response - 422 Unprocessable Entity
{ "validation_messages": { "quote_event_id": { "noRecordFound": "No record matching the input was found" } }, "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unprocessable Entity", "status": 422, "detail": "Failed Validation" } Quote Event ID not found.