Update Quote Endpoints: PatchQuoteEventList

API endpoints for patching and updating quotes

PatchQuoteEventList

This API permits you to edit multiple Quote Events.

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:Update.

Authentication

Authenticate with the API before running this API.

HTTP Method

Use the HTTP Method 'PATCH' for consuming this web service.

URL Examples

https://api.catch-e.com/qt/quote-events/

Body (JSON)

KeyFormatNotesMandatory
quoteeventidstringQuote Event IDYes
quote_idstringQuote IDYes
quoteeventcode_idstringEvent Code IDYes
event_datestringEvent DateYes
event_amountstringEvent AmountNo
attachment_idstringLink a Quote Event to an Attachment ID.No
quoteeventaction_idstringEvent Action IDYes
due_datestringDue DateNo
completed_flagstringCompleted Flag ('yes','no')No
userideditstringLast Edit By (User ID)No
last_editstringLast Edit timestampNo
status_flagstringEvent Status ('active','deleted')No

JSON Sample

[ { "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": "0", "status_flag": "active" }, { "quote_event_id": "100097", "quote_id": "132580", "quote_event_code_id": "100000", "event_date": "2022-11-08", "description": "Re-Test#3: Event Code: Dealer Pricing (API)", "event_amount": "1.01", "quote_event_action_id": "100000", "due_date": "2022-11-10", "completed_flag": "no", //"attachment_id": "0", "status_flag": "active" }]

Response Details

Validation MessagesComments
200 OK
{ "_links": { "self": { "href": "https://api.test.catch-e.com/qt/quote-events/" } }, "_embedded": { "qt_quote_events": [ { "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.test.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" } } }, { "quote_event_id": "100097", "quote_id": "132580", "quote_event_code_id": "100000", "event_date": "2022-11-08", "description": "Re-Test#3: Event Code: Dealer Pricing (API)", "event_amount": 1.01, "quote_event_action_id": "100000", "due_date": "2022-11-10", "completed_flag": "no", "attachment_id": null, "user_id_edit": "11212", "last_edit": "2022-11-13 23:28:59", "status_flag": "active", "_links": { "self": { "href": "https://api.test.catch-e.com/qt/quote-events/100097" } }, "_embedded": { "quote_event_code": { "quote_event_code_id": "100000", "quote_event_code": "Dealer", "name": "Dealer Pricing", "description": "Dealer Pricing Attached", "template_id": "0", "status_flag": "active" }, "quote_event_action": { "quote_event_action_id": "100000", "name": "Follow Up" } } } ] }, "total_items": 2}

| The request was successful request. |
| 401 - Unauthorized | | |

{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unauthorized", "status": 401, "detail": "Unauthorized"}

| You have not authenticated before running this API or The token_timeout of the current session has passed. You need to authenticate again. |
| 403 - Forbidden | | |

{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Forbidden", "status": 403, "detail": "Forbidden"}

| You do not have permissions for this request. Go to System Roles and enter 'web_services' Navigate to the Roles / APIs tab to make sure the permission you need to run this API is checked. |
| 422 - Unprocessable Content | | |

{ "validation_messages": [ { "attachment_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"}

| Attachment ID not found/valid. |

PatchQuoteEvents

This API permits you to edit a 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:Update.

Authentication

Authenticate with the API before running this API.

HTTP Method

Use the HTTP Method 'PATCH' for consuming this web service.

URL Examples

https://api.catch-e.com/qt/quote-events/{quote_event_id}

Body (JSON)

KeyFormatNotesMandatory
quote_idstringQuote IDYes
quoteeventcode_idstringEvent Code IDYes
event_datestringEvent DateYes
event_amountstringEvent AmountNo
attachment_idstringLink a Quote Event to an Attachment ID.No
quoteeventaction_idstringEvent Action IDYes
due_datestringDue DateNo
completed_flagstringCompleted Flag ('yes','no')No
userideditstringLast Edit By (User ID)No
last_editstringLast Edit timestampNo
status_flagstringEvent Status ('active','deleted')No

JSON Sample

 { "quote_id": "132580", "quote_event_code_id": "100000", "event_date": "2022-11-08", "description": "Event Code: Dealer Pricing (API)", "event_amount": "1.01", "quote_event_action_id": "100000", "due_date": "2022-11-10", "completed_flag": "no", "status_flag": "active" }

Response Details

Validation MessagesComments
200 OK
{ "quote_event_id": "100095", "quote_id": "132580", "quote_event_code_id": "100000", "event_date": "2022-11-08", "description": "Re-Test#1: Event Code: Dealer Pricing (API) Edited via patchQuoteEvent", "event_amount": 1.03, "quote_event_action_id": "100000", "due_date": "2022-11-10", "completed_flag": "yes", "attachment_id": null, "user_id_edit": "11212", "last_edit": "2022-11-14 01:10:43", "status_flag": "active", "_links": { "self": { "href": "https://api.test.catch-e.com/qt/quote-events/100095" } }, "_embedded": { "quote_event_code": { "quote_event_code_id": "100000", "quote_event_code": "Dealer", "name": "Dealer Pricing", "description": "Dealer Pricing Attached", "template_id": "0", "status_flag": "active" }, "quote_event_action": { "quote_event_action_id": "100000", "name": "Follow Up" } }}

| The request was successful request. |
| 401 - Unauthorized | | |

{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unauthorized", "status": 401, "detail": "Unauthorized"}

| You have not authenticated before running this API or The token_timeout of the current session has passed. You need to authenticate again. |
| 403 - Forbidden | | |

{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Forbidden", "status": 403, "detail": "Forbidden"}

| You do not have permissions for this request. Go to System Roles and enter 'web_services' Navigate to the Roles / APIs tab to make sure the permission you need to run this API is checked. |
| 422 - Unprocessable Content | | |

{ "validation_messages": [ { "attachment_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"}

| Attachment ID not found/valid. |

PatchQuote - Contract tab

The fields listed on this page are all found primarily on the Quotes / Contract tab.

Note: Not all fields are supported yet. If a field is listed below it is supported.

Refer to main page for full details of patchQuote functionality.

Supplementary SWAGGER documentation is available here: api.catch-e.com/docs/#/Quotes/patchQuote

Body - JSON

JSON FieldFormatNotesMandatory
Contract
datedateUpdates the Effective Date.No
quote_datedateQuote DateNo
durationnumberValid for {duration} daysNo
quotestatusidlistboxUpdates the Quote StatusNo
competitor_idnumberCompetitorNo
competitormarginidnumberLost byNo
dealtypeidlistboxUpdates the Deal TypeNo
postingmapidnumberUpdate the Quotes / Contract β€œType Code” field. This field will not automatically update when changing clientid. To update the postingmap_id you must include it in your payload.No
termnumberUpdates the Term (Months)No
contractkms or annualkmsstringUpdates the Contract KMs or Annual KMs respectively. The Global Control (qt) 'contractkmasannualflag determines if the "Contract KMs" is displayed as "Annual KMs" (and subsequently recalculated and stored as . You would not typically include both contractkms & annualkms in your patchQuote payload request. If you do, 'annual_kms' will be ignored.No
statestringDelivery StateNo
location_namestringUpdates the LocationNo
locationregistrationidnumberLocation RegoNo
vehicleusagetype_idnumberUsage TypeNo
vehicletrackingsystem_flagcheckboxUpdates the Vehicle Tracking System flagNo
parentquoteidnumberUpdates the Parent Quote IDNo
opportunity_idstringUpdates the Opportunity IDNo
opportunity_numberstringUpdates the Opportunity NoNo
opportunitystageidstringUpdates the Opportunity Stage (hidden field)No
lockquoteflagstringUpdates the Lock Quote checkboxNo
Client Details
client_idnumberClient Code. This field will not automatically update the postingmapid when changing clientid. To update the postingmap_id you must include it in your payload.No
clientgroupflagstringGroupNo
client_namestringUpdates the Client Name (on the Quote. This does not update the Client Name).No
clientcontactnamestringUpdates the Contact Name (on the Quote. This does not update the Contact Name).No
client_emailstringUpdates the Email (on the Quote. This does not update the Client Email).No
client_phonestringUpdates the Phone (on the Quote. This does not update the Client Phone).No
client_faxstringUpdates the Fax (on the Quote. This does not update the Client Fax).No
useridclient_managerlistboxUpdates the A/C Manager (on the Quote. This does not update the Client A/C Manager).No
Inclusions
excesskmflagstringExcess KM ChargeNo
redundancyinsuranceflagstringUpdates the Redundancy Insurance checkboxNo
gapinsuranceflagstringGap Insurance. To leave the Gap Insurance profile as is, do not include this JSON content at all. Set to 'yes' when you want to include "Gap Insurance" in your Quote. Visit the Gap Insurance page to review the rules that are applied. Set to 'no' to turn the "Gap Insurance" flag off.No
afterhoursassistance_flagstringAfter Hours AssistanceNo
reliefvehicleflagstringUpdates the Relief Vehicle checkboxNo
commentsstringUpdates the Quote CommentsNo
comments_internalstringPopulate Internal Comments field from Quote Internal NoteNo
Driver Details
driver_idnumberDriver IDNo
driver_surnamestringUpdates the Surname (on the Quote. This does not update the Driver Surname).No
drivergivennamestringUpdates the Given Name (on the Quote. This does not update the Driver Given Name).No
driver_emailstringUpdates the Email (on the Quote. This does not update the Driver Email).No
driver_phonestringUpdates the Phone (on the Quote. This does not update the Driver Phone).No
paycycleidstringUpdates the Pay Cycle. To find paycycleid use getPayCycles.No
annual_salarynumberUpdates the SalaryNo
allowancesnumberAllowancesNo
superannuationnumberSuperannuationNo
reducedsuperflagstringReduced SuperNo
atoloanflagstringHELP DebtNo
pretaxexistingnumberPre TaxNo
posttaxexistingnumberPost TaxNo
packagingadvicefeenumberAdvice FeeNo
packagingadminfeenumberPackaging Admin FeeNo
driver_faxstringUpdates the Fax (on the Quote. This does not update the Driver Fax).No
employerfbttypestringUpdates the (Quote) Employer FBT Type. Please see Employer FBT Type for validation rules for this field.No
fbtbenefittypestringUpdates the FBT Type. See FBT Type for validation rules.No
fbtbusinessusenumberUpdates the Bus. Use%No
ecm_flagstringUpdates the Use ECM? flagNo
previousleasestartdateUpdates the Previous Lease StartNo
previousfbtvaluenumberUpdates the Previous FBT ValueNo
useridassignedlistboxUpdates the Assigned userNo

Validations and Alerts

Alert
Term must be greater than Months Deferred
The input is not between '1' and '120' inclusively

PatchQuote - Events tab

The fields listed on this page are all found primarily on the Quotes:Events tab.

Note: Not all fields are supported yet. If a field is listed below it is supported.

Refer to main page for full details of patchQuote functionality.

Supplementary SWAGGER documentation is available here: api.catch-e.com/docs/#/Quotes/patchQuote

Body - JSON

JSON FieldFormatNotesMandatory
Column 1
No fields are currently supported on this screen.

PatchQuote - Finance tab

The fields listed on this page are all found on the Quotes:Finance tab.

Note: Not all fields are supported yet. If a field is listed below it is supported.

Refer to main page for full details of patchQuote functionality.

Supplementary SWAGGER documentation is available here: api.catch-e.com/docs/#/Quotes/patchQuote

Body - JSON

JSON FieldFormatNotesMandatory
Financier (Column One)
financetypeidlistboxUpdates the Finance TypeNo
base_ratenumberUpdates the Base Rate. Example: To update Base Rate to 10.50% use "0.1050" in payload.No
deposit_netnumberUpdates the Deposit Net (shown as a calculated Deposit Gross in UI)No
deposit_gstnumberUpdates the Deposit GSTNo
tradeinreg_nostringUpdates the Trade in RegistrationNo
tradeinamount_netnumberUpdates the Trade in Gross (shown as a calculated Trade in Gross in UI)No
tradeinamount_gstnumberUpdates the Trade in GSTNo
claimable_gstnumberUpdates the GST ClaimableNo
Broker (Column Two)
commission_ratenumberUpdates the Commission RateNo
commissionnumberUpdates the Commission FeeNo
establishment_feenumberUpdates the Establishment / Admin FeeNo
originator_feenumberUpdates the Originator FeeNo
Residual (Column Three)
residual_netnumberUpdates the Residual Exc GST. Residual GST and Residual Inc GST will be auto calculated.No
Finance Application
originator_idstringUpdates the Originator (if configured)No
application_referencestringUpdates the Application ReferenceNo
application_datetimestampUpdates the Application DateNo
applicationstatusflaglistboxUpdates the StatusNo