Ask the hotel for its best price.
Send a hotel, a stay and what the guest wants. VistaLink emails the hotel from its own address, on behalf of a guest it does not name, and asks for a direct price that beats the best public one we know (or a price_to_beat you send). Most hotels reply within 6 hours: poll the quote or subscribe to quote.updated.
Each priced reply becomes one or more offers: total, room, board, cancellation terms, whether taxes are included, the hotel's own words as evidence, and beats_by against the price to beat. An offer with needs_review is checked by our team before you can accept it.
Accept an offer and we send the hotel one introduction email with your guest copied; the hotel then confirms the booking with the guest directly. hotel_commission_applies says whether the hotel pays a commission on the stay; half of it is yours.
What it costs and needs:
- $0.25 per quote the hotel answers with a price, charged once when the first priced offer arrives. It's reserved from your credit when you create the quote and released if the quote closes without one. Nothing when the hotel declines or doesn't reply.
- Accepting and cancelling are free. A quote cancelled before a priced offer costs nothing; one cancelled after keeps its charge.
- The quotes scope, the Build plan or higher (test keys excepted: the sandbox runs on Free too), and an Idempotency-Key on create. Asking again for the same hotel and stay while a quote is open returns that quote (X-Quote-Existing: true), with no second email and no second charge.
- Test keys never email anyone and cost nothing: a simulated hotel answers within seconds, and sandbox_outcome picks what it does.
/v2/quotes/v2/quotes/{quote_id}/v2/quotes/{quote_id}/cancel/v2/quotes/{quote_id}/offers/{offer_id}/acceptRequest a quote from a hotel
/v2/quotesAnswers 202 with the Quote; VistaLink then emails the hotel, from its own address and on behalf of a guest it does not name, for a direct price on the stay. Most hotels reply within 6 hours, some take a day: poll GET /v2/quotes/{quote_id} or subscribe to quote.updated. Costs $0.25 per quote the hotel answers with a price, charged once when the first priced offer arrives (reserved from your credit now, released when the quote closes without one); nothing when the hotel declines or does not reply. Needs the quotes scope, the Build plan or higher and an Idempotency-Key. Test keys never email anyone and cost nothing, on every plan, Free included: a simulated hotel answers within seconds, as sandbox_outcome says.
Reserved when the quote is created and charged once, when the hotel's first priced offer arrives. Released when the quote closes without one (declined, no reply, cancelled, failed). Returning your open quote for the same hotel and stay is free.
Parameters
Idempotency-KeyRequest body
hotel_idstaywantswants.refundablewants.boardnone, breakfast, half (breakfast and dinner), full (all meals) or all_inclusive.nonebreakfasthalffullall_inclusivewants.room_typedouble or junior suite; up to 60 characters, no links, email addresses or angle brackets (it is quoted to the hotel).price_to_beatauto (the default) quotes the best public price we know for the stay as the price to beat, when there is one; {total, currency} uses your own price instead. Default auto.deadline_hoursno_response and costs nothing. Default 48.localeen or it; the hotel's own language when omitted.sandbox_outcomeoffer (the default), declined or no_response. Rejected with 400 on a live key.offerdeclinedno_responseExample
curl -X POST 'https://api.vistalink.com/v2/quotes' \
-H "Authorization: Bearer $VISTALINK_API_KEY" \
-H 'Idempotency-Key: 4f1c2b8e-booking-ada-rossi' \
-H "Content-Type: application/json" \
-d '{
"hotel_id": "43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19",
"stay": {
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"rooms": [
{
"adults": 2,
"children_ages": []
}
]
},
"wants": {
"refundable": true,
"board": "breakfast",
"room_type": "double"
},
"price_to_beat": "auto",
"deadline_hours": 48,
"locale": "en"
}'vistalink quotes create \
--idempotency-key 4f1c2b8e-booking-ada-rossi \
--hotel-id 43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19 \
--stay '{"check_in":"2026-11-14","check_out":"2026-11-16","rooms":[{"adults":2,"children_ages":[]}]}' \
--wants '{"refundable":true,"board":"breakfast","room_type":"double"}' \
--price-to-beat auto \
--deadline-hours 48 \
--locale enconst res = await fetch("https://api.vistalink.com/v2/quotes", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VISTALINK_API_KEY}`,
"Idempotency-Key": "4f1c2b8e-booking-ada-rossi",
"Content-Type": "application/json",
},
body: JSON.stringify({
"hotel_id": "43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19",
"stay": {
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"rooms": [
{
"adults": 2,
"children_ages": []
}
]
},
"wants": {
"refundable": true,
"board": "breakfast",
"room_type": "double"
},
"price_to_beat": "auto",
"deadline_hours": 48,
"locale": "en"
}),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const data = await res.json();import os
import requests
resp = requests.post(
"https://api.vistalink.com/v2/quotes",
headers={"Authorization": f"Bearer {os.environ['VISTALINK_API_KEY']}", "Idempotency-Key": "4f1c2b8e-booking-ada-rossi"},
json={
"hotel_id": "43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19",
"stay": {
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"rooms": [
{
"adults": 2,
"children_ages": [],
},
],
},
"wants": {
"refundable": True,
"board": "breakfast",
"room_type": "double",
},
"price_to_beat": "auto",
"deadline_hours": 48,
"locale": "en",
},
)
resp.raise_for_status()
data = resp.json(){
"anchor": {
"currency": "EUR",
"nightly": "481.00",
"source": "third_party",
"total": "962.00"
},
"created_at": "2026-10-07T09:30:00Z",
"deadline_at": "2026-10-09T09:30:00Z",
"hotel_id": "43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19",
"next_step": "Email sent to the hotel; most hotels reply within 6 hours, some take a day.",
"offers": [],
"quote_id": "qte_7c2e9a4b1d8f3e6a0c5b",
"status": "waiting",
"stay": {
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"rooms": [
{
"adults": 2,
"children_ages": []
}
]
},
"updated_at": "2026-10-07T09:30:04Z",
"wants": {
"board": "breakfast",
"refundable": true,
"room_type": "double"
}
}{
"anchor": {
"currency": "EUR",
"nightly": "481.00",
"source": "third_party",
"total": "962.00"
},
"created_at": "2026-10-07T09:30:00Z",
"deadline_at": "2026-10-09T09:30:00Z",
"hotel_id": "43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19",
"next_step": "The hotel replied with an offer. Accept it to introduce your guest.",
"offers": [
{
"beats_by": "82.00",
"board": "breakfast",
"cancellation_deadline": "2026-11-12T23:59:00Z",
"confidence": 0.93,
"currency": "EUR",
"evidence": "We can offer the Superior Double with breakfast for EUR 880 for both nights, free cancellation until 12 November.",
"free_cancellation": true,
"includes_taxes": true,
"needs_review": false,
"nightly_avg": "440.00",
"offer_id": "qof_4a9d2c7e1b8f5a3d6e0c",
"rate_name": "Breakfast included, free cancellation",
"room_name": "Superior Double",
"source": "email",
"total": "880.00",
"valid_until": "2026-10-10"
}
],
"quote_id": "qte_7c2e9a4b1d8f3e6a0c5b",
"status": "offer_received",
"stay": {
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"rooms": [
{
"adults": 2,
"children_ages": []
}
]
},
"updated_at": "2026-10-07T14:52:10Z",
"wants": {
"board": "breakfast",
"refundable": true,
"room_type": "double"
}
}{
"accepted_offer_id": "qof_4a9d2c7e1b8f5a3d6e0c",
"anchor": {
"currency": "EUR",
"nightly": "481.00",
"source": "third_party",
"total": "962.00"
},
"created_at": "2026-10-07T09:30:00Z",
"deadline_at": "2026-10-09T09:30:00Z",
"hotel_commission_applies": false,
"hotel_id": "43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19",
"next_step": "Your guest has been introduced to the hotel by email; the hotel replies to them directly to confirm the booking.",
"offers": [
{
"beats_by": "82.00",
"board": "breakfast",
"cancellation_deadline": "2026-11-12T23:59:00Z",
"confidence": 0.93,
"currency": "EUR",
"evidence": "We can offer the Superior Double with breakfast for EUR 880 for both nights, free cancellation until 12 November.",
"free_cancellation": true,
"includes_taxes": true,
"needs_review": false,
"nightly_avg": "440.00",
"offer_id": "qof_4a9d2c7e1b8f5a3d6e0c",
"rate_name": "Breakfast included, free cancellation",
"room_name": "Superior Double",
"source": "email",
"total": "880.00",
"valid_until": "2026-10-10"
}
],
"quote_id": "qte_7c2e9a4b1d8f3e6a0c5b",
"status": "accepted",
"stay": {
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"rooms": [
{
"adults": 2,
"children_ages": []
}
]
},
"updated_at": "2026-10-07T15:10:31Z",
"wants": {
"board": "breakfast",
"refundable": true,
"room_type": "double"
}
}{
"anchor": {
"currency": "EUR",
"nightly": "481.00",
"source": "third_party",
"total": "962.00"
},
"created_at": "2026-10-07T09:30:00Z",
"deadline_at": "2026-10-09T09:30:00Z",
"hotel_id": "43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19",
"next_step": "Email sent to the hotel; most hotels reply within 6 hours, some take a day.",
"offers": [],
"quote_id": "qte_7c2e9a4b1d8f3e6a0c5b",
"status": "waiting",
"stay": {
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"rooms": [
{
"adults": 2,
"children_ages": []
}
]
},
"updated_at": "2026-10-07T09:30:04Z",
"wants": {
"board": "breakfast",
"refundable": true,
"room_type": "double"
}
}{
"anchor": {
"currency": "EUR",
"nightly": "481.00",
"source": "third_party",
"total": "962.00"
},
"created_at": "2026-10-07T09:30:00Z",
"deadline_at": "2026-10-09T09:30:00Z",
"hotel_id": "43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19",
"next_step": "The hotel replied with an offer. Accept it to introduce your guest.",
"offers": [
{
"beats_by": "82.00",
"board": "breakfast",
"cancellation_deadline": "2026-11-12T23:59:00Z",
"confidence": 0.93,
"currency": "EUR",
"evidence": "We can offer the Superior Double with breakfast for EUR 880 for both nights, free cancellation until 12 November.",
"free_cancellation": true,
"includes_taxes": true,
"needs_review": false,
"nightly_avg": "440.00",
"offer_id": "qof_4a9d2c7e1b8f5a3d6e0c",
"rate_name": "Breakfast included, free cancellation",
"room_name": "Superior Double",
"source": "email",
"total": "880.00",
"valid_until": "2026-10-10"
}
],
"quote_id": "qte_7c2e9a4b1d8f3e6a0c5b",
"status": "offer_received",
"stay": {
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"rooms": [
{
"adults": 2,
"children_ages": []
}
]
},
"updated_at": "2026-10-07T14:52:10Z",
"wants": {
"board": "breakfast",
"refundable": true,
"room_type": "double"
}
}{
"accepted_offer_id": "qof_4a9d2c7e1b8f5a3d6e0c",
"anchor": {
"currency": "EUR",
"nightly": "481.00",
"source": "third_party",
"total": "962.00"
},
"created_at": "2026-10-07T09:30:00Z",
"deadline_at": "2026-10-09T09:30:00Z",
"hotel_commission_applies": false,
"hotel_id": "43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19",
"next_step": "Your guest has been introduced to the hotel by email; the hotel replies to them directly to confirm the booking.",
"offers": [
{
"beats_by": "82.00",
"board": "breakfast",
"cancellation_deadline": "2026-11-12T23:59:00Z",
"confidence": 0.93,
"currency": "EUR",
"evidence": "We can offer the Superior Double with breakfast for EUR 880 for both nights, free cancellation until 12 November.",
"free_cancellation": true,
"includes_taxes": true,
"needs_review": false,
"nightly_avg": "440.00",
"offer_id": "qof_4a9d2c7e1b8f5a3d6e0c",
"rate_name": "Breakfast included, free cancellation",
"room_name": "Superior Double",
"source": "email",
"total": "880.00",
"valid_until": "2026-10-10"
}
],
"quote_id": "qte_7c2e9a4b1d8f3e6a0c5b",
"status": "accepted",
"stay": {
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"rooms": [
{
"adults": 2,
"children_ages": []
}
]
},
"updated_at": "2026-10-07T15:10:31Z",
"wants": {
"board": "breakfast",
"refundable": true,
"room_type": "double"
}
}Response 200
Your open quote for the same hotel and stay, returned instead of a new one (header X-Quote-Existing: true); no new email, no charge.
request_idquote_idqte_ plus 20 hex characters.statusqueued, contacting (the email is going out), waiting (sent, awaiting the reply), offer_received (see offers), then completed (the deadline passed with offers), accepted (your guest was introduced), no_response, declined, cancelled or failed.10 values
queuedcontactingwaitingoffer_receivedcompletedno_responsedeclinedcancelledfailedacceptedhotel_idstaystay.check_instay.check_outstay.roomsstay.rooms[].adultsstay.rooms[].children_ageswantswants.refundablewants.boardnonebreakfasthalffullall_inclusivewants.room_typeanchoranchor.totalcurrency.anchor.nightlytotal divided by the number of nights.anchor.currencytotal.anchor.sourcethird_party when it is the best public online price we know, partner when you sent it.third_partypartnerdeadline_atnext_stepcreated_atupdated_atoffersoffers[].offer_idqof_ plus 20 hex characters; pass it to accept.offers[].sourceemail: the hotel's emailed reply. Always email.offers[].room_nameoffers[].rate_nameBreakfast included, free cancellation.offers[].totalcurrency.offers[].currencyoffers[].nightly_avgtotal divided by the number of nights.offers[].includes_taxesoffers[].boardnonebreakfasthalffullall_inclusiveoffers[].free_cancellationoffers[].cancellation_deadlineoffers[].valid_untiloffers[].offer_linkoffers[].beats_byanchor price this offer is, in currency; null without a comparable anchor.offers[].evidenceoffers[].confidenceoffers[].needs_reviewoffer_needs_review) and it is not charged for. The hotel's first offer with needs_review false is the one the quote fee is charged on. Default false.accepted_offer_idstatus is accepted.hotel_commission_appliesfailure_reasonstatus is failed or declined: no_contact_email, hotel_suppressed, hotel_daily_ceiling (try again tomorrow), invalid_stay, opted_out, unreachable or rejected; null otherwise.8 values
no_contact_emailhotel_suppressedhotel_daily_ceilinginvalid_stayinvalid_requestopted_outunreachablerejectedbillingResponse 202
Successful Response
request_idquote_idqte_ plus 20 hex characters.statusqueued, contacting (the email is going out), waiting (sent, awaiting the reply), offer_received (see offers), then completed (the deadline passed with offers), accepted (your guest was introduced), no_response, declined, cancelled or failed.10 values
queuedcontactingwaitingoffer_receivedcompletedno_responsedeclinedcancelledfailedacceptedhotel_idstaystay.check_instay.check_outstay.roomsstay.rooms[].adultsstay.rooms[].children_ageswantswants.refundablewants.boardnonebreakfasthalffullall_inclusivewants.room_typeanchoranchor.totalcurrency.anchor.nightlytotal divided by the number of nights.anchor.currencytotal.anchor.sourcethird_party when it is the best public online price we know, partner when you sent it.third_partypartnerdeadline_atnext_stepcreated_atupdated_atoffersoffers[].offer_idqof_ plus 20 hex characters; pass it to accept.offers[].sourceemail: the hotel's emailed reply. Always email.offers[].room_nameoffers[].rate_nameBreakfast included, free cancellation.offers[].totalcurrency.offers[].currencyoffers[].nightly_avgtotal divided by the number of nights.offers[].includes_taxesoffers[].boardnonebreakfasthalffullall_inclusiveoffers[].free_cancellationoffers[].cancellation_deadlineoffers[].valid_untiloffers[].offer_linkoffers[].beats_byanchor price this offer is, in currency; null without a comparable anchor.offers[].evidenceoffers[].confidenceoffers[].needs_reviewoffer_needs_review) and it is not charged for. The hotel's first offer with needs_review false is the one the quote fee is charged on. Default false.accepted_offer_idstatus is accepted.hotel_commission_appliesfailure_reasonstatus is failed or declined: no_contact_email, hotel_suppressed, hotel_daily_ceiling (try again tomorrow), invalid_stay, opted_out, unreachable or rejected; null otherwise.8 values
no_contact_emailhotel_suppressedhotel_daily_ceilinginvalid_stayinvalid_requestopted_outunreachablerejectedbillingErrors
Retry-After seconds), or over its daily allowance of different hotels (details.reason: "daily_hotel_cap"; Retry-After runs to 00:00 UTC).Get a quote
/v2/quotes/{quote_id}Synchronous and free; needs the quotes scope. The quote's status, the hotel's offers and next_step, one sentence you can show as is.
Parameters
quote_idquote_id returned by POST /v2/quotes.Example
curl 'https://api.vistalink.com/v2/quotes/qte_7c2e9a4b1d8f3e6a0c5b' \
-H "Authorization: Bearer $VISTALINK_API_KEY"vistalink quotes get qte_7c2e9a4b1d8f3e6a0c5bconst res = await fetch("https://api.vistalink.com/v2/quotes/qte_7c2e9a4b1d8f3e6a0c5b", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.VISTALINK_API_KEY}`,
},
});
if (!res.ok) throw new Error((await res.json()).error.message);
const data = await res.json();import os
import requests
resp = requests.get(
"https://api.vistalink.com/v2/quotes/qte_7c2e9a4b1d8f3e6a0c5b",
headers={"Authorization": f"Bearer {os.environ['VISTALINK_API_KEY']}"},
)
resp.raise_for_status()
data = resp.json(){
"anchor": {
"currency": "EUR",
"nightly": "481.00",
"source": "third_party",
"total": "962.00"
},
"created_at": "2026-10-07T09:30:00Z",
"deadline_at": "2026-10-09T09:30:00Z",
"hotel_id": "43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19",
"next_step": "Email sent to the hotel; most hotels reply within 6 hours, some take a day.",
"offers": [],
"quote_id": "qte_7c2e9a4b1d8f3e6a0c5b",
"status": "waiting",
"stay": {
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"rooms": [
{
"adults": 2,
"children_ages": []
}
]
},
"updated_at": "2026-10-07T09:30:04Z",
"wants": {
"board": "breakfast",
"refundable": true,
"room_type": "double"
}
}{
"anchor": {
"currency": "EUR",
"nightly": "481.00",
"source": "third_party",
"total": "962.00"
},
"created_at": "2026-10-07T09:30:00Z",
"deadline_at": "2026-10-09T09:30:00Z",
"hotel_id": "43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19",
"next_step": "The hotel replied with an offer. Accept it to introduce your guest.",
"offers": [
{
"beats_by": "82.00",
"board": "breakfast",
"cancellation_deadline": "2026-11-12T23:59:00Z",
"confidence": 0.93,
"currency": "EUR",
"evidence": "We can offer the Superior Double with breakfast for EUR 880 for both nights, free cancellation until 12 November.",
"free_cancellation": true,
"includes_taxes": true,
"needs_review": false,
"nightly_avg": "440.00",
"offer_id": "qof_4a9d2c7e1b8f5a3d6e0c",
"rate_name": "Breakfast included, free cancellation",
"room_name": "Superior Double",
"source": "email",
"total": "880.00",
"valid_until": "2026-10-10"
}
],
"quote_id": "qte_7c2e9a4b1d8f3e6a0c5b",
"status": "offer_received",
"stay": {
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"rooms": [
{
"adults": 2,
"children_ages": []
}
]
},
"updated_at": "2026-10-07T14:52:10Z",
"wants": {
"board": "breakfast",
"refundable": true,
"room_type": "double"
}
}{
"accepted_offer_id": "qof_4a9d2c7e1b8f5a3d6e0c",
"anchor": {
"currency": "EUR",
"nightly": "481.00",
"source": "third_party",
"total": "962.00"
},
"created_at": "2026-10-07T09:30:00Z",
"deadline_at": "2026-10-09T09:30:00Z",
"hotel_commission_applies": false,
"hotel_id": "43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19",
"next_step": "Your guest has been introduced to the hotel by email; the hotel replies to them directly to confirm the booking.",
"offers": [
{
"beats_by": "82.00",
"board": "breakfast",
"cancellation_deadline": "2026-11-12T23:59:00Z",
"confidence": 0.93,
"currency": "EUR",
"evidence": "We can offer the Superior Double with breakfast for EUR 880 for both nights, free cancellation until 12 November.",
"free_cancellation": true,
"includes_taxes": true,
"needs_review": false,
"nightly_avg": "440.00",
"offer_id": "qof_4a9d2c7e1b8f5a3d6e0c",
"rate_name": "Breakfast included, free cancellation",
"room_name": "Superior Double",
"source": "email",
"total": "880.00",
"valid_until": "2026-10-10"
}
],
"quote_id": "qte_7c2e9a4b1d8f3e6a0c5b",
"status": "accepted",
"stay": {
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"rooms": [
{
"adults": 2,
"children_ages": []
}
]
},
"updated_at": "2026-10-07T15:10:31Z",
"wants": {
"board": "breakfast",
"refundable": true,
"room_type": "double"
}
}Response 200
Successful Response
request_idquote_idqte_ plus 20 hex characters.statusqueued, contacting (the email is going out), waiting (sent, awaiting the reply), offer_received (see offers), then completed (the deadline passed with offers), accepted (your guest was introduced), no_response, declined, cancelled or failed.10 values
queuedcontactingwaitingoffer_receivedcompletedno_responsedeclinedcancelledfailedacceptedhotel_idstaystay.check_instay.check_outstay.roomsstay.rooms[].adultsstay.rooms[].children_ageswantswants.refundablewants.boardnonebreakfasthalffullall_inclusivewants.room_typeanchoranchor.totalcurrency.anchor.nightlytotal divided by the number of nights.anchor.currencytotal.anchor.sourcethird_party when it is the best public online price we know, partner when you sent it.third_partypartnerdeadline_atnext_stepcreated_atupdated_atoffersoffers[].offer_idqof_ plus 20 hex characters; pass it to accept.offers[].sourceemail: the hotel's emailed reply. Always email.offers[].room_nameoffers[].rate_nameBreakfast included, free cancellation.offers[].totalcurrency.offers[].currencyoffers[].nightly_avgtotal divided by the number of nights.offers[].includes_taxesoffers[].boardnonebreakfasthalffullall_inclusiveoffers[].free_cancellationoffers[].cancellation_deadlineoffers[].valid_untiloffers[].offer_linkoffers[].beats_byanchor price this offer is, in currency; null without a comparable anchor.offers[].evidenceoffers[].confidenceoffers[].needs_reviewoffer_needs_review) and it is not charged for. The hotel's first offer with needs_review false is the one the quote fee is charged on. Default false.accepted_offer_idstatus is accepted.hotel_commission_appliesfailure_reasonstatus is failed or declined: no_contact_email, hotel_suppressed, hotel_daily_ceiling (try again tomorrow), invalid_stay, opted_out, unreachable or rejected; null otherwise.8 values
no_contact_emailhotel_suppressedhotel_daily_ceilinginvalid_stayinvalid_requestopted_outunreachablerejectedbillingErrors
Retry-After seconds), or over its daily allowance of different hotels (details.reason: "daily_hotel_cap"; Retry-After runs to 00:00 UTC).Cancel a quote
/v2/quotes/{quote_id}/cancelSynchronous and free; needs the quotes scope. Stops further emails to the hotel while the quote is queued, contacting, waiting or offer_received; cancelling twice returns the cancelled quote. A quote cancelled before a priced offer costs nothing; one cancelled after keeps its charge. A closed quote answers 409 conflict.
Parameters
quote_idquote_id returned by POST /v2/quotes.Example
curl -X POST 'https://api.vistalink.com/v2/quotes/qte_7c2e9a4b1d8f3e6a0c5b/cancel' \
-H "Authorization: Bearer $VISTALINK_API_KEY"vistalink quotes cancel qte_7c2e9a4b1d8f3e6a0c5bconst res = await fetch("https://api.vistalink.com/v2/quotes/qte_7c2e9a4b1d8f3e6a0c5b/cancel", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VISTALINK_API_KEY}`,
},
});
if (!res.ok) throw new Error((await res.json()).error.message);
const data = await res.json();import os
import requests
resp = requests.post(
"https://api.vistalink.com/v2/quotes/qte_7c2e9a4b1d8f3e6a0c5b/cancel",
headers={"Authorization": f"Bearer {os.environ['VISTALINK_API_KEY']}"},
)
resp.raise_for_status()
data = resp.json(){
"anchor": {
"currency": "EUR",
"nightly": "481.00",
"source": "third_party",
"total": "962.00"
},
"created_at": "2026-10-07T09:30:00Z",
"deadline_at": "2026-10-09T09:30:00Z",
"hotel_id": "43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19",
"next_step": "Email sent to the hotel; most hotels reply within 6 hours, some take a day.",
"offers": [],
"quote_id": "qte_7c2e9a4b1d8f3e6a0c5b",
"status": "waiting",
"stay": {
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"rooms": [
{
"adults": 2,
"children_ages": []
}
]
},
"updated_at": "2026-10-07T09:30:04Z",
"wants": {
"board": "breakfast",
"refundable": true,
"room_type": "double"
}
}{
"anchor": {
"currency": "EUR",
"nightly": "481.00",
"source": "third_party",
"total": "962.00"
},
"created_at": "2026-10-07T09:30:00Z",
"deadline_at": "2026-10-09T09:30:00Z",
"hotel_id": "43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19",
"next_step": "The hotel replied with an offer. Accept it to introduce your guest.",
"offers": [
{
"beats_by": "82.00",
"board": "breakfast",
"cancellation_deadline": "2026-11-12T23:59:00Z",
"confidence": 0.93,
"currency": "EUR",
"evidence": "We can offer the Superior Double with breakfast for EUR 880 for both nights, free cancellation until 12 November.",
"free_cancellation": true,
"includes_taxes": true,
"needs_review": false,
"nightly_avg": "440.00",
"offer_id": "qof_4a9d2c7e1b8f5a3d6e0c",
"rate_name": "Breakfast included, free cancellation",
"room_name": "Superior Double",
"source": "email",
"total": "880.00",
"valid_until": "2026-10-10"
}
],
"quote_id": "qte_7c2e9a4b1d8f3e6a0c5b",
"status": "offer_received",
"stay": {
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"rooms": [
{
"adults": 2,
"children_ages": []
}
]
},
"updated_at": "2026-10-07T14:52:10Z",
"wants": {
"board": "breakfast",
"refundable": true,
"room_type": "double"
}
}{
"accepted_offer_id": "qof_4a9d2c7e1b8f5a3d6e0c",
"anchor": {
"currency": "EUR",
"nightly": "481.00",
"source": "third_party",
"total": "962.00"
},
"created_at": "2026-10-07T09:30:00Z",
"deadline_at": "2026-10-09T09:30:00Z",
"hotel_commission_applies": false,
"hotel_id": "43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19",
"next_step": "Your guest has been introduced to the hotel by email; the hotel replies to them directly to confirm the booking.",
"offers": [
{
"beats_by": "82.00",
"board": "breakfast",
"cancellation_deadline": "2026-11-12T23:59:00Z",
"confidence": 0.93,
"currency": "EUR",
"evidence": "We can offer the Superior Double with breakfast for EUR 880 for both nights, free cancellation until 12 November.",
"free_cancellation": true,
"includes_taxes": true,
"needs_review": false,
"nightly_avg": "440.00",
"offer_id": "qof_4a9d2c7e1b8f5a3d6e0c",
"rate_name": "Breakfast included, free cancellation",
"room_name": "Superior Double",
"source": "email",
"total": "880.00",
"valid_until": "2026-10-10"
}
],
"quote_id": "qte_7c2e9a4b1d8f3e6a0c5b",
"status": "accepted",
"stay": {
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"rooms": [
{
"adults": 2,
"children_ages": []
}
]
},
"updated_at": "2026-10-07T15:10:31Z",
"wants": {
"board": "breakfast",
"refundable": true,
"room_type": "double"
}
}Response 200
Successful Response
request_idquote_idqte_ plus 20 hex characters.statusqueued, contacting (the email is going out), waiting (sent, awaiting the reply), offer_received (see offers), then completed (the deadline passed with offers), accepted (your guest was introduced), no_response, declined, cancelled or failed.10 values
queuedcontactingwaitingoffer_receivedcompletedno_responsedeclinedcancelledfailedacceptedhotel_idstaystay.check_instay.check_outstay.roomsstay.rooms[].adultsstay.rooms[].children_ageswantswants.refundablewants.boardnonebreakfasthalffullall_inclusivewants.room_typeanchoranchor.totalcurrency.anchor.nightlytotal divided by the number of nights.anchor.currencytotal.anchor.sourcethird_party when it is the best public online price we know, partner when you sent it.third_partypartnerdeadline_atnext_stepcreated_atupdated_atoffersoffers[].offer_idqof_ plus 20 hex characters; pass it to accept.offers[].sourceemail: the hotel's emailed reply. Always email.offers[].room_nameoffers[].rate_nameBreakfast included, free cancellation.offers[].totalcurrency.offers[].currencyoffers[].nightly_avgtotal divided by the number of nights.offers[].includes_taxesoffers[].boardnonebreakfasthalffullall_inclusiveoffers[].free_cancellationoffers[].cancellation_deadlineoffers[].valid_untiloffers[].offer_linkoffers[].beats_byanchor price this offer is, in currency; null without a comparable anchor.offers[].evidenceoffers[].confidenceoffers[].needs_reviewoffer_needs_review) and it is not charged for. The hotel's first offer with needs_review false is the one the quote fee is charged on. Default false.accepted_offer_idstatus is accepted.hotel_commission_appliesfailure_reasonstatus is failed or declined: no_contact_email, hotel_suppressed, hotel_daily_ceiling (try again tomorrow), invalid_stay, opted_out, unreachable or rejected; null otherwise.8 values
no_contact_emailhotel_suppressedhotel_daily_ceilinginvalid_stayinvalid_requestopted_outunreachablerejectedbillingErrors
Retry-After seconds), or over its daily allowance of different hotels (details.reason: "daily_hotel_cap"; Retry-After runs to 00:00 UTC).Accept a quote offer
/v2/quotes/{quote_id}/offers/{offer_id}/acceptFree; needs the quotes scope and the Build plan or higher (test keys: any plan). Sends the hotel one introduction email with your guest copied, on the same thread as the quote, and answers with the Quote in status accepted; the hotel then confirms the booking with the guest directly. Allowed while the quote is offer_received or completed. Repeating the same accept returns the accepted quote. hotel_commission_applies says whether the hotel pays a commission on the stay (half of it is yours).
Parameters
quote_idquote_id returned by POST /v2/quotes.offer_idoffer_id of one of the quote's offers.Idempotency-KeyRequest body
guestguest.first_nameguest.last_nameguest.emailExample
curl -X POST 'https://api.vistalink.com/v2/quotes/qte_7c2e9a4b1d8f3e6a0c5b/offers/qof_4a9d2c7e1b8f5a3d6e0c/accept' \
-H "Authorization: Bearer $VISTALINK_API_KEY" \
-H 'Idempotency-Key: 4f1c2b8e-booking-ada-rossi' \
-H "Content-Type: application/json" \
-d '{
"guest": {
"first_name": "Ada",
"last_name": "Rossi",
"email": "ada@example.com"
}
}'vistalink quotes accept qte_7c2e9a4b1d8f3e6a0c5b qof_4a9d2c7e1b8f5a3d6e0c \
--idempotency-key 4f1c2b8e-booking-ada-rossi \
--guest '{"first_name":"Ada","last_name":"Rossi","email":"ada@example.com"}'const res = await fetch("https://api.vistalink.com/v2/quotes/qte_7c2e9a4b1d8f3e6a0c5b/offers/qof_4a9d2c7e1b8f5a3d6e0c/accept", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VISTALINK_API_KEY}`,
"Idempotency-Key": "4f1c2b8e-booking-ada-rossi",
"Content-Type": "application/json",
},
body: JSON.stringify({
"guest": {
"first_name": "Ada",
"last_name": "Rossi",
"email": "ada@example.com"
}
}),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const data = await res.json();import os
import requests
resp = requests.post(
"https://api.vistalink.com/v2/quotes/qte_7c2e9a4b1d8f3e6a0c5b/offers/qof_4a9d2c7e1b8f5a3d6e0c/accept",
headers={"Authorization": f"Bearer {os.environ['VISTALINK_API_KEY']}", "Idempotency-Key": "4f1c2b8e-booking-ada-rossi"},
json={
"guest": {
"first_name": "Ada",
"last_name": "Rossi",
"email": "ada@example.com",
},
},
)
resp.raise_for_status()
data = resp.json(){
"anchor": {
"currency": "EUR",
"nightly": "481.00",
"source": "third_party",
"total": "962.00"
},
"created_at": "2026-10-07T09:30:00Z",
"deadline_at": "2026-10-09T09:30:00Z",
"hotel_id": "43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19",
"next_step": "Email sent to the hotel; most hotels reply within 6 hours, some take a day.",
"offers": [],
"quote_id": "qte_7c2e9a4b1d8f3e6a0c5b",
"status": "waiting",
"stay": {
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"rooms": [
{
"adults": 2,
"children_ages": []
}
]
},
"updated_at": "2026-10-07T09:30:04Z",
"wants": {
"board": "breakfast",
"refundable": true,
"room_type": "double"
}
}{
"anchor": {
"currency": "EUR",
"nightly": "481.00",
"source": "third_party",
"total": "962.00"
},
"created_at": "2026-10-07T09:30:00Z",
"deadline_at": "2026-10-09T09:30:00Z",
"hotel_id": "43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19",
"next_step": "The hotel replied with an offer. Accept it to introduce your guest.",
"offers": [
{
"beats_by": "82.00",
"board": "breakfast",
"cancellation_deadline": "2026-11-12T23:59:00Z",
"confidence": 0.93,
"currency": "EUR",
"evidence": "We can offer the Superior Double with breakfast for EUR 880 for both nights, free cancellation until 12 November.",
"free_cancellation": true,
"includes_taxes": true,
"needs_review": false,
"nightly_avg": "440.00",
"offer_id": "qof_4a9d2c7e1b8f5a3d6e0c",
"rate_name": "Breakfast included, free cancellation",
"room_name": "Superior Double",
"source": "email",
"total": "880.00",
"valid_until": "2026-10-10"
}
],
"quote_id": "qte_7c2e9a4b1d8f3e6a0c5b",
"status": "offer_received",
"stay": {
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"rooms": [
{
"adults": 2,
"children_ages": []
}
]
},
"updated_at": "2026-10-07T14:52:10Z",
"wants": {
"board": "breakfast",
"refundable": true,
"room_type": "double"
}
}{
"accepted_offer_id": "qof_4a9d2c7e1b8f5a3d6e0c",
"anchor": {
"currency": "EUR",
"nightly": "481.00",
"source": "third_party",
"total": "962.00"
},
"created_at": "2026-10-07T09:30:00Z",
"deadline_at": "2026-10-09T09:30:00Z",
"hotel_commission_applies": false,
"hotel_id": "43d0be71-5f3c-4c8e-9a52-1d7e2b6f0a19",
"next_step": "Your guest has been introduced to the hotel by email; the hotel replies to them directly to confirm the booking.",
"offers": [
{
"beats_by": "82.00",
"board": "breakfast",
"cancellation_deadline": "2026-11-12T23:59:00Z",
"confidence": 0.93,
"currency": "EUR",
"evidence": "We can offer the Superior Double with breakfast for EUR 880 for both nights, free cancellation until 12 November.",
"free_cancellation": true,
"includes_taxes": true,
"needs_review": false,
"nightly_avg": "440.00",
"offer_id": "qof_4a9d2c7e1b8f5a3d6e0c",
"rate_name": "Breakfast included, free cancellation",
"room_name": "Superior Double",
"source": "email",
"total": "880.00",
"valid_until": "2026-10-10"
}
],
"quote_id": "qte_7c2e9a4b1d8f3e6a0c5b",
"status": "accepted",
"stay": {
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"rooms": [
{
"adults": 2,
"children_ages": []
}
]
},
"updated_at": "2026-10-07T15:10:31Z",
"wants": {
"board": "breakfast",
"refundable": true,
"room_type": "double"
}
}Response 200
Successful Response
request_idquote_idqte_ plus 20 hex characters.statusqueued, contacting (the email is going out), waiting (sent, awaiting the reply), offer_received (see offers), then completed (the deadline passed with offers), accepted (your guest was introduced), no_response, declined, cancelled or failed.10 values
queuedcontactingwaitingoffer_receivedcompletedno_responsedeclinedcancelledfailedacceptedhotel_idstaystay.check_instay.check_outstay.roomsstay.rooms[].adultsstay.rooms[].children_ageswantswants.refundablewants.boardnonebreakfasthalffullall_inclusivewants.room_typeanchoranchor.totalcurrency.anchor.nightlytotal divided by the number of nights.anchor.currencytotal.anchor.sourcethird_party when it is the best public online price we know, partner when you sent it.third_partypartnerdeadline_atnext_stepcreated_atupdated_atoffersoffers[].offer_idqof_ plus 20 hex characters; pass it to accept.offers[].sourceemail: the hotel's emailed reply. Always email.offers[].room_nameoffers[].rate_nameBreakfast included, free cancellation.offers[].totalcurrency.offers[].currencyoffers[].nightly_avgtotal divided by the number of nights.offers[].includes_taxesoffers[].boardnonebreakfasthalffullall_inclusiveoffers[].free_cancellationoffers[].cancellation_deadlineoffers[].valid_untiloffers[].offer_linkoffers[].beats_byanchor price this offer is, in currency; null without a comparable anchor.offers[].evidenceoffers[].confidenceoffers[].needs_reviewoffer_needs_review) and it is not charged for. The hotel's first offer with needs_review false is the one the quote fee is charged on. Default false.accepted_offer_idstatus is accepted.hotel_commission_appliesfailure_reasonstatus is failed or declined: no_contact_email, hotel_suppressed, hotel_daily_ceiling (try again tomorrow), invalid_stay, opted_out, unreachable or rejected; null otherwise.8 values
no_contact_emailhotel_suppressedhotel_daily_ceilinginvalid_stayinvalid_requestopted_outunreachablerejectedbillingErrors
Retry-After seconds), or over its daily allowance of different hotels (details.reason: "daily_hotel_cap"; Retry-After runs to 00:00 UTC).Shared objects.
Objects that appear in more than one place. Billing is on the Billing page and ErrorBody under Errors & limits.
Stay
Dates and rooms of a stay, up to 30 nights and 9 rooms.
check_incheck_outcheck_in and at most 30 nights later.roomsrooms[].adults2.rooms[].children_ages