The Quotations / Reservations API will show you all your active quotations and reservations that are in the Toursys platform.
With the ID that appears on this API, you can consult its service lines.
[ENDPOINT]/ToursysConnectionApi/api/quotations/all
X-API-KEY (requiered, String) generatedToken
trueText (optional, Boolean) true = HTML tags will be removed, and only text will be shown of the descriptions
false = HTML tags will remain on the descriptions
status (optional, String) "quotations" = only quotations will be shown
"reservations" = only reservations will be shown
exported (optional, Boolean) true = The API will only show quotations or reservations that have been marked as exported
false = The API will only show quotations or reservations that have
NOT been marked as exported
confirmed (optional, Boolean) true = The API will only show quotations or reservations that have been confirmed in Toursys
false = The API will only show quotations or reservations that have
NOT been confirmed in Toursys
filterAllActive (optional, Boolean) "1" = Only quotations/reservations that are currently active will be shown — meaning their end date. is greater than or equal to the current date, AND they are NOT marked as cancelled
"0" = Only quotations/reservations that are expired OR marked as cancelled will be shown.
If the parameter is not sent (or sent with a value other than "1" or "0"), no additional filter is applied for this criterion. Meaning all the quotations/reservations will be shown, but this can be a heavy call.
updatedAfter (Date) (opcional) Filter to fetch quotations / reservation that have been created or updated from the specified date and forward. Format: yyyy-MM-dd
curl --location -g --request GET '[ENDPOINT]/ToursysConnectionApi/api/quotations/all' \
--header 'X-API-KEY: generatedToken'
--data '[
{
"quotation_id": 24500,
"quotation_name": "Testing Quotation",
"quotation_status": "QUOTATION",
"quotation_was_exported": "False",
"quotation_start_date": "27-Jan-2027",
"quotation_end_date": "31-Jan-2027",
"quotation_created_by": "550",
"quotation_created_date": "19-Jan-2023 2:10 PM",
"quotation_updated_by": "550",
"quotation_updated_date": "19-Jan-2023 2:23 PM",
"quotation_internal_comments": "VIP Client",
"quotation_observations": "They have two children, we will need special car chairs",
"quotation_special_remarks": "They want water bottles when they are traveling.",
"quotation_business_currency_code": "USD",
"quotation_business_currency_symbol": "$",
"quotation_net_sub_total": 350.0,
"quotation_net_tax": 0.0,
"quotation_net_total": 350.0,
"quotation_rack_sub_total": 455.0,
"quotation_rack_tax": 81.9,
"quotation_rack_total": 536.9,
"quotation_customer_currency_code": "USD",
"quotation_customer_currency_symbol": "$",
"quotation_customer_rack_sub_total": 455.0,
"quotation_customer_rack_tax": 81.9,
"quotation_customer_rack_total": 536.9,
"quotation_customer_code": "LatinTours",
"quotation_customer_name": "LatinTours",
"quotation_customer_language": "English"
},
{...}
]'