Skip to navigation

get_quote_request

Get a quote request
View as Markdown
  • Callers: API key and signed in
  • Label: Read
  • Side effects: None.
  • Limits: Signed in: 60 reads a minute per person. API key, sandbox: 600 reads a minute per key, 1,800 a minute per organization. Live: 3,600 reads a minute per organization by default, and 60 times the key’s own bound when it has one.
  • Hints: readOnlyHint: true, destructiveHint: false
  • Result: quote_request, the quote request as HTTP returns it, and quotes, each of its quotes in full.
  • HTTP: GET /v1/quote-requests/{id}

Input

FieldTypeDescription
id
Required
stringThe quote request ID, which starts with qreq_.
wait_secondsinteger, 0 to 20The longest the read waits for a change, in seconds. 20 when you leave it out.
since_versionintegerThe version from your last answer, so a newer version answers at once.
read_handle
Required
stringOnly for a call with no sign-in or API key. The read_handle that start_quote_request returned for the request.

Description

tools/list returns this description to an API key:

Reads a quote request: its status, the terms and next actions of each quote, and the result from each carrier. It starts no new quote. While the request is in_progress, the answer waits for the request to change: a new quote or a new status. wait_seconds, from 0 to 20, is the longest it waits, and 20 when you leave it out. If the server can’t hold the read open, it answers at once. Wait 1 second before you read again. Send since_version with the version from your last answer, so a change since then answers at once. The status is in_progress, action_required, completed, incomplete, or failed: branch on it. status_details.message says why, in words you can show the person. New reasons can arrive; handle unknown values. When a request failed, follow status_details.retry_action. When it is incomplete, follow it only if you try a new request. Tell the person about the quotes. When there are none, use status_details.message. incomplete is final. Quotes are ordered by answer time, not ranked. Each quote’s price.premium, in US cents (amount_minor), is the price for the whole term of term_months months, even when billed monthly. Divided by term_months, it gives a monthly figure: the premium spread over the term, not a payment plan. A renters premium already includes every fee in price.fees. On other lines, the quote doesn’t say whether it does. Give the person a continue_on_carrier_site url exactly as returned, in the sandbox too, where it opens a Truvo sandbox page. The url is a Truvo link that stays valid until the quote expires. Some carrier links open only once, so don’t fetch or preview the url.

Try it

POST
https://api.truvo.com/v1/mcp#get_quote_request
Headers
Body