Retrieve Quotes

Generate a Quote for the specified Unit and Date Range

Overview

The Retrieve Quote request provides functionality that allows the Agent to generate a detailed quote for a specific Unit and date range or multiple units and date ranges. By making this request, partners can receive comprehensive information about the pricing and availability of a property during the specified time frame.

The Retrieve Quote API offers partners the ability to accurately calculate costs for potential reservations. It takes into account various factors, such as rates, taxes, and any additional fees associated with the Booking.

Endpoints Available

MethodEndpointDescription
POSTv2023.07.31/quoteGenerate a Quote for a specific Unit and date range
POSTv2023.07.31/quotesGenerate multiple Quotes for Units and date ranges

Body Parameters

ParameterRequired / OptionalDescriptionData Type
"inventory_id"RequiredUnique Identifier for Unit in Inventoryint
"organization_id"OptionalThe organization under which the booking is made/quotedint
"source"RequiredThe source of the Quote. It indicates the origin or provider of the Quotestring
"source_id"RequiredUnique identifier from the source system. It uniquely identifies the data in the source systemstring
"optional_extras"OptionalTotal of Optional Extras to applyarray
"pool_heat"OptionalIndicates if you would like pool heat auto-quoted for youboolean
"length_of_stay_pricing"OptionalIndicates if length of stay pricing is included in the quoteboolean
"discount_code"OptionalInput discount code item code here to apply it to the quotestring
"details"RequiredAn object containing various details related to the bookingobject
"thread_id"OptionalUnique identifier for the conversation thread. Used to associate the Quote with a specific conversation or thread.string

"details" Object Body Parameters

ParameterRequired / OptionalDescriptionData Type
"arrival"RequiredA value specifying the arrival date for the bookingdate-time
"departure"RequiredA value specifying the departure date for the bookingdate-time
"origination_date"RequiredA value representing the date-time the quote was generateddate-time
"number_of_adults"RequiredNumber of Adultsint
"number_of_children"RequiredNumber of Childrenint
"number_of_pets"RequiredNumber of Petsint
"party_members"An array containing details about additional Party Membersarray

"party_members" Object Body Parameters

ParameterRequired / OptionalDescriptionData Type
"first_name"First name of a party memberstring
"last_name"Last name of a party memberstring
"age"Age of a party memberint

Response Definition

Response ItemDescriptionData Type
"financials"An object containing financial details related to the bookingobject
"payment_schedule"An array containing details about the payment schedule for the bookingarray
"inventory_id"The unique identifier for the Unit associated with the bookingint
"organization_id"The unique identifier for the Supplier associated with the bookingint
"details"An object containing specific details related to the bookingobject

"financials" Object

Response ItemDescriptionData Type
"charges"An array containing details about individual charges associated with the booking. Each element in the array represents a specific charge item, such as Rental Rate, Clean Fee, Taxes, or Extra Feesarray
"total_amount"The total amount of the booking, including all chargeslong
"amount_decimal_places"The number of decimal places in the "total_amount" valueint

"charges" Object

Response ItemDescriptionData Type
"item"The name or description of the charge itemstring
"id"The unique identifier for the charge itemstring
"code"A code representing the charge itemstring
"applies_to_id"The identifier indicating which item the charge applies tostring
"quantity"The quantity of the charge itemint
"type"The type of the charge item, which can be "RENTAL" for rental rate, "CLEAN_FEE" for cleaning fee, "TAX_ONE" for tax one, "TAX_TWO" for tax two, or "EXTRA" for additional feesstring
"amount"The amount of the charges itemlong
"amount_decimal_places"The number of decimal places in the "amount" valueint

"payment_schedule" Object

Response ItemDescriptionData Type
"amount_due"The amount due for the payment schedulelong
"rate_decimal_places"The number of decimal places in the "amount_due" valueint
"due_date"The due date for the payment schedule - ISO 8601 date-time formatstring

"details" Object

Response ItemDescriptionData Type
"arrival"The arrival date for the bookingstring
"departure"The departure date for the bookingstring
"number_of_adults"The number of adults included in the bookingint
"number_of_children"The number of children included in the bookingint
"number_of_pets"The number of pets included in the bookingint
"origination_date"The origination date of the bookingstring

Sample Request

curl --request POST \
     --url 'https://api.ciiruspartners.com/v2023.07.31/quote'
          --data '
{
  "source": "SupportTest",
  "source_id": "Test123456",
  "details": {
    "number_of_adults": 1,
    "number_of_children": 0,
    "number_of_pets": 0,
    "arrival": "2023-09-15",
    "departure": "2023-09-22",
    "origination_date": "2023-07-24"
  },
  "pool_heat": false,
  "length_of_stay_pricing": false,
  "inventory_id": 219264
}
'

Sample Response

{
    "financials": {
        "charges": [
            {
                "item": "Rental Rate",
                "id": "Rent",
                "code": "Rent",
                "applies_to_id": "Rent",
                "quantity": 1,
                "type": "RENTAL",
                "amount": 70000,
                "amount_decimal_places": 2
            },
            {
                "item": "Clean Fee",
                "id": "Clean",
                "code": "Clean",
                "applies_to_id": "Clean",
                "quantity": 1,
                "type": "CLEAN_FEE",
                "amount": 20000,
                "amount_decimal_places": 2
            },
            {
                "item": "Clean Fee Tax 1",
                "id": "Clean-Tax-1",
                "code": "Clean",
                "applies_to_id": "Clean",
                "quantity": 1,
                "type": "TAX_ONE",
                "amount": 1500,
                "amount_decimal_places": 2
            },
            {
                "item": "Clean Fee Tax 2",
                "id": "Clean-Tax-2",
                "code": "Clean",
                "applies_to_id": "Clean",
                "quantity": 1,
                "type": "TAX_TWO",
                "amount": 1200,
                "amount_decimal_places": 2
            },
            {
                "item": "Fee Exqmple 6 Tax 1",
                "id": "Fee Exqmple 6-Tax-1",
                "code": "Fee6",
                "applies_to_id": "7422",
                "quantity": 1,
                "type": "TAX_ONE",
                "amount": 37,
                "amount_decimal_places": 2
            },
            {
                "item": "Fee Exqmple 6 Tax 2",
                "id": "Fee Exqmple 6-Tax-2",
                "code": "Fee6",
                "applies_to_id": "7422",
                "quantity": 1,
                "type": "TAX_TWO",
                "amount": 30,
                "amount_decimal_places": 2
            },
            {
                "item": "Fee Exqmple 6",
                "id": "7422",
                "code": "Fee6",
                "applies_to_id": "7422",
                "quantity": 1,
                "type": "EXTRA",
                "amount": 500,
                "amount_decimal_places": 2
            },
            {
                "item": "Example Fee 2 Tax 1",
                "id": "Example Fee 2-Tax-1",
                "code": "Fee2",
                "applies_to_id": "7418",
                "quantity": 1,
                "type": "TAX_ONE",
                "amount": 525,
                "amount_decimal_places": 2
            },
            {
                "item": "Example Fee 2 Tax 2",
                "id": "Example Fee 2-Tax-2",
                "code": "Fee2",
                "applies_to_id": "7418",
                "quantity": 1,
                "type": "TAX_TWO",
                "amount": 420,
                "amount_decimal_places": 2
            },
            {
                "item": "Example Fee 2",
                "id": "7418",
                "code": "Fee2",
                "applies_to_id": "7418",
                "quantity": 1,
                "type": "EXTRA",
                "amount": 7000,
                "amount_decimal_places": 2
            },
            {
                "item": "Example Fee 3 Tax 1",
                "id": "Example Fee 3-Tax-1",
                "code": "Fee3",
                "applies_to_id": "7419",
                "quantity": 1,
                "type": "TAX_ONE",
                "amount": 75,
                "amount_decimal_places": 2
            },
            {
                "item": "Example Fee 3 Tax 2",
                "id": "Example Fee 3-Tax-2",
                "code": "Fee3",
                "applies_to_id": "7419",
                "quantity": 1,
                "type": "TAX_TWO",
                "amount": 60,
                "amount_decimal_places": 2
            },
            {
                "item": "Example Fee 3",
                "id": "7419",
                "code": "Fee3",
                "applies_to_id": "7419",
                "quantity": 1,
                "type": "EXTRA",
                "amount": 1000,
                "amount_decimal_places": 2
            },
            {
                "item": "Accidental Damage Insurance",
                "id": "21728",
                "code": "ADI",
                "applies_to_id": "21728",
                "quantity": 1,
                "type": "EXTRA",
                "amount": 7500,
                "amount_decimal_places": 2
            },
            {
                "item": "Daily Amount Fee Example",
                "id": "24651",
                "code": "DAY",
                "applies_to_id": "24651",
                "quantity": 1,
                "type": "EXTRA",
                "amount": 12250,
                "amount_decimal_places": 2
            },
            {
                "item": "Property Protection Fee",
                "id": "25011",
                "code": "CP-STD",
                "applies_to_id": "25011",
                "quantity": 1,
                "type": "EXTRA",
                "amount": 6500,
                "amount_decimal_places": 2
            },
            {
                "item": "Booking Fee",
                "id": "Booking",
                "code": "Booking",
                "applies_to_id": "Booking",
                "quantity": 1,
                "type": "EXTRA",
                "amount": 300,
                "amount_decimal_places": 2
            },
            {
                "item": "Booking Fee Tax 1",
                "id": "Booking-Tax-1",
                "code": "Booking",
                "applies_to_id": "Booking",
                "quantity": 1,
                "type": "TAX_ONE",
                "amount": 23,
                "amount_decimal_places": 2
            },
            {
                "item": "Booking Fee Tax 2",
                "id": "Booking-Tax-2",
                "code": "Booking",
                "applies_to_id": "Booking",
                "quantity": 1,
                "type": "TAX_TWO",
                "amount": 18,
                "amount_decimal_places": 2
            }
        ],
        "total_amount": 128938,
        "amount_decimal_places": 2
    },
    "payment_schedule": [
        {
            "amount_due": 128938,
            "rate_decimal_places": 2,
            "due_date": "2023-07-26T00:00:00Z"
        }
    ],
    "inventory_id": 219264,
    "organization_id": 42330,
    "details": {
        "arrival": "2023-09-15T00:00:00",
        "departure": "2023-09-22T00:00:00",
        "number_of_adults": 1,
        "number_of_children": 0,
        "number_of_pets": 0,
        "origination_date": "2023-07-26T00:00:00"
    }
}