Create Quote Endpoints: CreateQuotes — Unsuccessful Response Details
API endpoints for creating quotes and variants
Unsuccessful Response Details
{ "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 Entity | | |
"client_id": { "noRecordFound": "No record matching the input was found" }, "posting_map_id": { "isEmpty": "Value is required and can't be empty" }| Invalid Client ID. | |
"client_name": { "stringLengthTooLong": "The input is more than 100 characters long"| client_name must be 100 characters or less. Pass a shorter name. | |
"client_id": { "clientQuotingDenied": "Client not profiled for quoting. Refer to management." }| Clients / Quote Defaults "Allow Quoting" is unchecked. | |
"driver_id": { "callbackInvalid": "You cannot specify both the driver_id field and driver element" }| If you specify a driver_id, the driver is assumed to be pre-configured with all details, including addresses.Do not include the driver object—doing so causes a conflict and the API will return an error.
Example:- The payload below will cause this error, so not allowed. "driver_id": "271772", "driver": { "addresses": { "home": { "address_1": "Address 1", "address_2": "Address 2", "area": "Address Area", "state": "NSW", "postcode": "3001", "country_id": "16238953344683478812" }, "post": { "address_1": "Address 1", "address_2": "Address 2", "area": "Address Area", "state": "NSW", "postcode": "3002", "country_id": "16238953344683478812" } }}, "new_used": { "invalidOdometer": "When vehicle is 'used' or 'demonstrator', odometer must be greater than zero" }| Input field "odometer" is missing, this only applicable if NEW_USED is not 'new' e.g. 'used' or 'demonstrator' | |
{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unprocessable Entity", "status": 422, "detail": "Unrecognized fields: carbon_emission_offset"}| Issue unknown | |
{ "validation_messages": { "driver_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"}| Driver id Does not exist |