Quote & Lease Operations API: Qt Salesforce createQuote — Audit History

API endpoints for quote (Qt_*) and lease (Qq_*) operations and fleet reports

Audit History

Audit history is created when using this web service. The history is attributed to the userid passed in the parameter 'useridclientmanager'.

Input Fields

SortQuery string keyFormatNotesMandatory
1annual_kilometresintegerNon-zero positive numberyes
2client_codestringCatch-e client_code, a short text string identifying the clientyes
3driverannualsalarydecimalAnnual gross salaryyes
4driver_surnamestringSurname of the driveryes
5state_registeredstringState codes, VIC, NSW, ACT, NT, TAS, WA, SA, QLD, NZ. When is 'AUS' then it must be either 'NSW', 'VIC', 'QLD', 'ACT', 'TAS', 'SA', 'WA', or 'NT'. When is 'NZ' then it must be 'NZ'.yes
6terminteger1 - 60yes
7useridclient_managerintActive Catch-e user_id i.e. not at 'deleted' statusyes
8variant_idintCatch-e variant identifieryes
9aftermarketrequestedflagstringOverride the default Aftermarket inclusion flag, 'yes' or 'no'no
10colour_preferencestringSet the colour preferenceno
11createnewdriver_flagstringSet this to 'yes' to create a new Driver. Requires driverexternalcode if set to 'yes'.no
12deal_typestringDeal Type field in Salesforceno
13driveraddress1stringPostal / Home address line 1 e.g. Level 1, 30 Coora Road'no
14driveraddress2stringPostal / Home address line 2no
15driver_areastringPostal / Home area e.g. 'Oakleigh South'no
16driverexternalcodestringPacman Unique reference used to identify this driverno
17drivergivennamestringGiven nameno
18driverhomeemailstringHome emailno
19driver_idstringAn alternative to passing the driverexternalcode. The driverid passed in here will be updated with data submitted in this call. If URL contains: ‘driverid=100000’ then, If driverid match is found, update Driver record (if any changes required). If URL contains: ‘driverid=0’ or not passed then, Do not create a new Driver Record. Simply add the driversurname to driversurname and driverannualsalary to annualsalary. If URL contains: ‘createnewdriverflag=yes’ then, Create a new Driver.no
20driver_phonestringHome phone number for Driverno
21driver_postcodestringPostal / Home postcodeno
22driver_statestringPostal / Home stateno
23driverworkphonestringWork phone numberno
24fbt_valuedecimalSets the FBT Value in the quote and turn on the lockfbtvalue_flagno
25inclusion{inclusioncode}_flagstringSetting this to ‘yes’ will select and apply the defined inclusion to the quote. ‘no’ or omitting this key will set the plan as unchecked in the quote. If there is only one available plan, the second key is not required as the default plan will be used. eg: inclusionINC1flag = ‘yes’ would populate this inclusion into the quote.no
26inclusion{inclusionplancode}planstringIf there are multiple plans available for an inclusion, the plan to use must also be defined. eg:inclusionINC1plan = ‘LIPLAN2’ would populate this plan into the quote.no
27insuranceloadingtypedriverrestrictionstringOne of nodriverslessthan26yo, alldrivers, nodriverslessthan22yo. Insert one of the 'loadingcode' values stored inno
28insuranceloadingtype_licencestringOne of noloss, lossin2to5years, lossin0to2years. Insert one of the 'loadingcode' values stored inno
29insuranceloadingtypepastclaimsstringOne of noclaims0to5years, 1claimin12months, 1claimin1to3years, 2+claims0to3years, 3+claimsin0to5years. Insert one of the 'loading_code' values stored inno
30insurerlocationpostcodeintegerUse this if your insurance set-up is configured by postcode, otherwise locationname should be used. The postcode must be valid for the supplied stateregistered. If not passed in the respective postcode from Global Controls 'postcodebystate_default' will be used to determine the Insurance price.no
31listpricegrossdecimalNumeric dollar value, takes precedent over listpricenet i.e. if this is set then listpricenet is ignoredno
32listpricegstdecimalNumeric dollar valueno
33listpricenetdecimalNumeric dollar valueno
34location_namestringSet the Insurance location you want applied. This will display on the Quotes → Contract tab.no
35new_usedstringIndicates whether the vehicle is new or used, defaults to 'new'no
36odometerstringIf 'new_used' is set to 'used' or 'demonstrator' this value must bet set to a non-zero integerno
37opportunity_idstringSalesforce opportunity idno
38opportunity_numberstringSalesforce opportunity #no
39parentquoteidintQuote ID to use as the parent of the new quoteno
40paycyclecodestringAllows you to set the Pay Cycle for this quote. The list of available codes is stored in If not passed the Client Pay Cycle will be used.no
41postingmapcodestringContract type codeno
42procurement_flagstringSets the quote vehicle procurement flagno
43productcarbonemissionsoffsetflagstringOverride the default Carbon Emissions profile flag, 'yes' or 'no'no
44productcomprehensiveinsurance_flagstringOverride the default Comprehensive Insurance profile flag, 'yes' or 'no'no
45productextendedwarranty_flagstringOverride the default Extended Warranty profile flag, 'yes' or 'no'no
46productltitopupbenefit_namestringIf more than one active “Top Up Benefit” exists for the “Plan” passed, then a ‘productltitopupbenefit_name’ should be passed as well. The Quote created should pre-populate the “Plan” and “Top Up Benefit” and include the “Premium” in its calculations.no
47productnlpiflagstringOverride the default NLPI inclusion flag, 'yes' or 'no'no
48productroadsideassistance_flagstringOverride the default Roadside Asistance inclusion flag, 'yes' or 'no'no
49productrvehamount_netstringAdd the Relief Vehicle monthly cost to the Profile (Quotes / Lease -> 'Monthly Budget')no
50productrvehflagstringOverride the default Relief Vehicle inclusion flag, 'yes' or 'no'no
51productsmalldamagerepairsflagstringOverride the default Small Damage Repairs profile flag, 'yes' or 'no'. If the quote term does not match one of the SDR profile records, SDR will be checked on but the premium will not calculate.no
52producttyreandrimflagstringOverride the default Tyre and Rim inclusion flag, 'yes' or 'no'no
53productvehiclemaintenanceprogramflagstringOverride the default Vehicle Maintenanace profile flag, 'yes' or 'no'no
54productwalkawayflagstringOverride the default Walkaway inclusion flag, 'yes' or 'no'no
55purchasestampdutydecimalSets the Purchase Stamp Duty in the quote and turn on the lockpurchasestampdutyflagno
56suppliercodefinancierstringSet an alternative Financier. This will override the Financier default set on the Quote Defaults and must map to a Supplier with a 'Supplier Type' set to "Financier" on the Suppliers / Account tab.no
57useridassignedintSet the Quote 'Assigned' user. Must be an active Catch-e user_id i.e. not at 'deleted' statusno
58driverdriverlicencestringIf Driver found or new Driver created, Driver's "Licence No" will be updated.no
59driverdriverlicence_statestringIf Driver found or new Driver created, Driver's "Licence State" will be updated.no
60driver_mobilestringIf Driver found or new Driver created, Driver's "Mobile" will be updated.no
61previousfbtvalueintegerIt's optional and can only be a positive number.no
62previousleasestartintegerUser can give a previous lease start dateno
63productltiflagstringEither yes or no are the only acceptable values to be passed,if the fag is set to yes, If ‘productltiflag’ = yes is passed, and only one active “Plan” / “Top Up Benefit” is found, the Quote created should pre-populate the “Plan” and “Top Up Benefit” and include the “Premium” in its calculations.no
64productltiplan_codestringIf the ‘productltiplan_code’ passed has only one active “Top Up Benefit”, the Quote created should pre-populate the “Plan” and “Top Up Benefit” and include the “Premium” in its calculations.no
65status_flagstringMust be one of values. Default value is stored in .no
66cost_centrestringMust be one of values.no
67divisionstringMust be one of values.no
68plate_yearstringPass a value to specify the Plate Year. The plateyear can be any year between 1900-2099. If plateyear not passed, the value for Default Year is used.no
69driver_salutationstringenum('Mr','Mrs','Ms','Miss','Dr','Prof','Rev','Capt')no
70driver_genderstringenum('Male','Female','Other')no
71driverdateof_birthstringDate of Birthno
72employerfbttypestringChoose from 'full-fbt-payable', 'concessional-30000-exempt', 'concessional-17000-exempt', 'rebatable' or 'not-applicable'. If this field is passed, the value must conform to the Employer FBT Type business rules, otherwise the call is rejected. If this field is not passed, the quote will update based on the Employer FBT Type business rules.no
73fbtbenefittypestringChoose from 'statutory','operating' or 'exempt'. If Clients:Quote defaultsClients / Quote Defaults "Allow Operating FBT Type" is un-checked, then you cannot use 'operating'.
74fbtbusinessusestringBus. Use%no

Input URL Example

https://yourname.catch-e.net.au/services/qt/salesforce/createQuote/?opportunity_id=006O0000001sxBWIAY&opportunity_number=61&variant_id=123456&state_registered=VIC&annual_kilometres=20000&term=36&client_code=ABC&driver_annual_salary=70000&driver_external_code=1233456&driver_surname=smith&deal_type=dealer-sourced&insurer_location_postcode=3000&login=yourlogin&password=yourpassword
https://yourname.catch-e.net.au/services/qt/salesforce/createQuote?login=yourlogin&password=yourpassword&variant_id=163522&user_id_client_manager=10133&term=36&annual_kilometres=5000&state_registered=WA&client_code=ABC&driver_annual_salary=100000&driver_surname=DSurname&posting_map_code=NOFB&location_name=location test

Output Example

1

123456

Error Codes

Error CodesNotes
1CATCHEERROROPPORTUNITYID_MISSINGInput field missing
2CATCHEERROROPPORTUNITYNUMBER_MISSINGInput field missing
3CATCHEERRORVARIANTID_MISSINGInput field missing
4CATCHEERRORUSERIDCLIENTMANAGER_MISSINGInput field missing
5CATCHEERRORMISSINGFIELDLEASEPERIODInput field missing
6CATCHEERRORMISSINGFIELDANNUALKILOMETRESInput field missing
7CATCHEERRORTERMMISSINGInput field missing
8CATCHEERRORANNUALKILOMETRES_MISSINGInput field missing
9CATCHEERRORSTATEREGISTERED_MISSINGInput field missing
10CATCHEERRORINSURERLOCATIONPOSTCODEMISSINGInput field missing
11CATCHEERRORCLIENTCODE_MISSINGInput field missing
12CATCHEERRORDRIVERANNUALSALARYMISSINGInput field missing
13CATCHEERRORDRIVEREXTERNALCODEMISSINGInput field missing
14CATCHEERRORDRIVERSURNAME_MISSINGInput field missing
15CATCHEERRORDEALTYPE_MISSINGInput field missing
16CATCHEERRORDEALTYPE_INVALIDInput field invalid, must be either 'dealer-non-sourced', 'dealer-sourced', 'private-sale', 'refinance', 'sale-and-leaseback', or 'generic-quote'
17CATCHEERRORSTATEREGISTERED_MISSINGInput field missing
18CATCHEERRORLISTPRICENETMISSINGInput field missing, this only occurs if the listpricegst has been included
19CATCHEERRORLISTPRICEGSTMISSINGInput field missing, this only occurs if the listpricenet has been included
20CATCHEERRORODOMETERMISSINGInput field missing, this only applicable if NEW_USED is not 'new' e.g. 'used' or 'demonstrator'
21CATCHEERROROPPORTUNITYID_INVALIDInput field is empty
22CATCHEERROROPPORTUNITYNUMBER_INVALIDInput field is empty
23CATCHEERRORVARIANTID_INVALIDInput field invalid record not found
24CATCHEERRORLISTPRICEGROSSINVALIDInput field invalid evaluates to zero
25CATCHEERRORLISTPRICENETINVALIDInput field invalid evaluates to zero
26CATCHEERRORANNUALKILOMETRES_INVALIDInput field invalid evaluates to zero
27CATCHEERRORSTATEREGISTERED_INVALIDInput field invalid. When [ is 'AUS' then it must be either 'NSW', 'VIC', 'QLD', 'ACT', 'TAS', 'SA', 'WA', or 'NT' When is 'NZ' then it must be 'NZ'.
28CATCHEERRORTERMINVALIDInput field invalid evaluates to zero
29CATCHEERRORUSERIDCLIENTMANAGER_INVALIDInput field contains unknown account manager
30CATCHEERRORDRIVERANNUALSALARYINVALIDInput field invalid evaluates to zero
31CATCHEERRORBADQUOTE_TEMPLATEData set up issue

| 32 | 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. Procurement fee must contain a value. :

In this example, the default = '0', but the = 'no'.
To fix this, update to contain a value or set the input field procurementflag = 'no' or remove it from the call. | | || 33 | CATCHEERRORCLIENTCODEINVALID | Client cannot be read |
| 34 | CATCHEERRORDRIVEREXTERNALCODEINVALID | Input field is blank |
| 35 | CATCHEERRORDRIVERSURNAMEINVALID | Input field is blank || 36 | CATCHEERRORPARENTQUOTEIDINVALID | Quote cannot be read || 37 | CATCHEERRORFAILEDCREATINGDRIVER | Driver record insert failed |
| 38 | CATCHEERRORFAILEDUPDATINGDRIVER | Driver record update failed || 39 | CATCHEERRORINSURERLOCATIONPOSTCODEINVALID | Input field not an int || 40 | CATCHEERRORNEWUSEDINVALID | Input field invalid |
| 41 | CATCHEERRORODOMETERINVALID | Input field evaluates to zero, this is only applicable if NEWUSED is not 'new', e.g. 'used' or 'demonstrator' || 42 | CATCHEERRORREADINGENCRYPTEDFIELDS | Error reading encrypted fields on callback |
| 43 | CATCHEERRORPOSTINGMAPCODEINVALID | Invalid contract type |
| 44 | CATCHEERRORFBTVALUEINVALID | Must be a non-zero currency value || 45 | CATCHEERRORUPDATINGOPPORTUNITY | Failed to update Salesforce database || 46 | CATCHEERRORQUOTESAVEFAILED | Failed saving quote in Catch-e database |
| 47 | CATCHEERRORBADCONTRACTTYPEDEFAULT | Bad setup in Catch-e. Contract Type "Status" may be 'inactive' or missing Quote Template value. |
| 48 | CATCHEERRORLOADINGTYPEPASTCLAIMSINVALID | Input field invalid || 49 | CATCHEERRORLOADINGTYPELICENCEINVALID | Input field invalid || 50 | CATCHEERRORLOADINGTYPEDRIVERRESTRICTIONINVALID | Input field invalid |
| 51 | CATCHEERRORPROCUREMENTFLAGINVALID | Input field invalid || 52 | CATCHEERRORFINANCIERCODEINVALID | An invalid suppliercodefinancier has been set. The code must map to a Supplier with a 'Supplier Type' set to "Financier" on the Suppliers / Account tab. |
| 53 | CATCHEERRORPAYCYCLECODEINVALID | The Pay Cycle Code is invalid. |
| 54 | CATCHEERRORLTIPLANCODEMISSING | If more than one active “Plan” is found and ‘productltiplancode’ not passed. || 55 | CATCHEERRORLTIPLANCODEINVALID | If ‘productltiplancode’ not found. |
| 56 | CATCHEERRORLTITOPUPBENEFITNAMEMISSING | If more than one active “Top Up Benefit” is found and ‘productltitopupbenefitname’ not passed. || 57 | CATCHEERRORLTITOPUPBENEFITNAMEINVALID | If ‘productltitopupbenefitname’ not found. |
| 58 | CATCHEERRORINCLUSIONPLAN{CODE}INVALID | No match found for nominated Inclusion Plan Code |
| 59 | CATCHEERRORINCLUSIONSELECTIONINVALID | No match has been found for against the Inclusion for one or more nominated plans || 60 | CATCHEERRORQUOTEVALIDATIONFAILED | Previous FBT Value must be 0 or a positive number. |
| 61 | CATCHEERRORINVALIDCOSTCENTRE | The costcentre passed is not stored in the database for the Client. |
| 62 | CATCHEERRORINVALIDDIVISION | The division passed is not stored in the database for the Client. |
| 63 | CATCHEERRORINVALIDPLATEYEAR | The plateyear is not within valid range 1900-2099. |
| 64 | CATCHEERROREMPLOYERFBTTYPEINVALID | employerfbttype is not valid for this client. See Employer FBT Type for full details of validation. |
| 65 | CATCHEERROROPERATINGFBTBENEFITTYPENOTALLOWED | Operating FBT type is not allowed due to Client "Allow Operating FBT Type" configuration |

Error Output Example 1

CATCHEERRORVARIANTID_MISSING