Cover Details

Once a user has confirmed their identity they may specify the details of the cover they wish to buy.

Quote Request (Create)

The cover is saved by creating a new quote request.

cover details

Cover Details

Notes

Request

curl -X 'POST' \
  'https://st.igate-test.co.uk/api/v1/quote-requests/' \
  -H 'Authorization: Bearer abc123xyz...' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "policy_start_date": "2025-01-29",
  "vehicle": "https://st.igate-test.co.uk/api/v1/user/vehicles/09eef7c7-e1b3-4574-ab7b-2d935cf209fc/",
  "vehicle_keeper": "https://st.igate-test.co.uk/api/v1/user/vehicle-keepers/d0373a50-8ed8-4ac9-a1bf-a964c8915699/",
  "days_required": 5,
  "reason_id": 1,
  "reason_name": "Borrowing someone's car"
}'

Response

  • Type: 201 Created

{
  "url": "https://st.igate-test.co.uk/api/v1/quote-requests/b224f44b-d620-4176-bccb-104a61175e84/",
  "uuid": "b224f44b-d620-4176-bccb-104a61175e84",
  "policy_start_date": "2025-01-20",
  "vehicle": "https://st.igate-test.co.uk/api/v1/user/vehicles/09eef7c7-e1b3-4574-ab7b-2d935cf209fc/",
  "vehicle_keeper": "https://st.igate-test.co.uk/api/v1/user/vehicle-keepers/d0373a50-8ed8-4ac9-a1bf-a964c8915699/",
  "days_required": 5,
  "reason_id": "1",
  "reason_name": "Borrowing someone's car"
  "completed": false,
  "quote_pitch": null,
  "quotes": []
}

Notes

  • completed is false.

  • quotes is an empty list.

Once a Quote Request is created the quoting process is started.