Quote
Quote & Save V2

Recalculate quote prices (V2)

Recalculates the quote prices after making changes. This endpoint calls the backend /v2/quote/recalculate endpoint.

post/v2/quote/recalculate

Headers

Authorizationstring

Bearer token

Request body

quoteHashstring

Quote hash identifier. Either quoteHash or groupHash must be provided.

groupHashstring

Group hash identifier for multi-quote. Either quoteHash or groupHash must be provided.

tripCostnumber

Cost of the trip

isAmendmentboolean

Whether this is an amendment

Example request

{
  "quoteHash": "abc123def456",
  "groupHash": "group123def456",
  "addons": [
    {
      "isSelected": true,
      "dates": [
        {
          "startDate": "2023-05-18",
          "endDate": "2023-05-19",
          "noOfCars": 1
        }
      ],
      "initialDepositDate": "2024-06-01"
    }
  ],
  "coverageOptions": {
    "cfarOption": {
      "initialDepositDate": "2023-05-18"
    },
    "carRentalOption": {
      "carDatesDto": [
        {
          "startDate": "2023-05-18",
          "endDate": "2023-05-19",
          "noOfCars": 1
        }
      ],
      "noOfCars": 2
    }
  },
  "tripCost": 5000
}

Response

The quote has been successfully recalculated. Always returns MultiQuoteResponseDto.

groupHashstring

The group_hash linking all quotes

isCompletedboolean

Whether the group was purchased

Example response

{
  "quotes": [
    {
      "quote": {
        "currentPrice": 100.24,
        "coverageOptions": {
          "petOption": {
            "price": 100.24
          },
          "trcOption": {
            "price": 100.24
          },
          "cfarOption": {
            "price": 100.24
          },
          "adventureOption": {
            "price": 100.24
          },
          "vacationRentalOption": {
            "price": 100.24
          },
          "carRentalOption": {
            "price": 100.24,
            "pricePerCarPerDay": 100.24
          }
        },
        "quoteHash": "abc123def456"
      }
    }
  ]
}

Changes